add scriptResultModel

This commit is contained in:
fanfuxiaoran 2014-03-24 09:21:00 +08:00
parent c8136a4953
commit 3f51106f0a
3 changed files with 46 additions and 3 deletions

View File

@ -44,6 +44,7 @@ public class MarshalHelper {
try { try {
return unmarshal(classToUnmarshal, input); return unmarshal(classToUnmarshal, input);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace();
return null; return null;
} }
} }

View File

@ -7,12 +7,10 @@ import javax.xml.bind.annotation.XmlRootElement;
public class PluginGUI { public class PluginGUI {
private PluginModel plugin; private PluginModel plugin;
@XmlElement
@XmlElement(name = "name")
public PluginModel getPlugin() { public PluginModel getPlugin() {
return plugin; return plugin;
} }
public void setPlugin(PluginModel plugin) { public void setPlugin(PluginModel plugin) {
this.plugin = plugin; this.plugin = plugin;
} }

View File

@ -0,0 +1,44 @@
package org.bench4q.share.models.master.statistics;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class ScriptResultModel extends SampleModel {
private ScriptBriefResultModel scriptBriefResultModel;
private ScriptBehaviorsBriefModel scriptBehaviorsBriefModel;
private ScriptPagesBriefModel scriptPagesBriefModel;
@XmlElement
public ScriptBriefResultModel getScriptBriefResultModel() {
return scriptBriefResultModel;
}
public void setScriptBriefResultModel(
ScriptBriefResultModel scriptBriefResultModel) {
this.scriptBriefResultModel = scriptBriefResultModel;
}
@XmlElement
public ScriptBehaviorsBriefModel getScriptBehaviorsBriefModel() {
return scriptBehaviorsBriefModel;
}
public void setScriptBehaviorsBriefModel(
ScriptBehaviorsBriefModel scriptBehaviorsBriefModel) {
this.scriptBehaviorsBriefModel = scriptBehaviorsBriefModel;
}
@XmlElement
public ScriptPagesBriefModel getScriptPagesBriefModel() {
return scriptPagesBriefModel;
}
public void setScriptPagesBriefModel(
ScriptPagesBriefModel scriptPagesBriefModel) {
this.scriptPagesBriefModel = scriptPagesBriefModel;
}
}