change the paramInfoModel
This commit is contained in:
parent
4aec35152c
commit
dc6a73393e
|
@ -1,8 +1,10 @@
|
|||
package org.bench4q.share.models.master.plugin;
|
||||
|
||||
|
||||
import javax.xml.bind.JAXBException;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import org.bench4q.share.helper.MarshalHelper;
|
||||
|
||||
import com.sun.xml.internal.txw2.annotation.XmlElement;
|
||||
|
||||
@XmlRootElement
|
||||
|
@ -13,6 +15,14 @@ public class ParamInfoModel {
|
|||
private String type;
|
||||
private ParamTypeClassAndContnet paramTypeClassAndContnet;
|
||||
|
||||
public ParamTypeModel createParamTypeModel() throws JAXBException {
|
||||
System.out.println("class--"+paramTypeClassAndContnet.getClass());
|
||||
ParamTypeModel unmarshal = (ParamTypeModel) MarshalHelper.unmarshal(
|
||||
paramTypeClassAndContnet.getParamTypeClass(),
|
||||
paramTypeClassAndContnet.getContent());
|
||||
return unmarshal;
|
||||
}
|
||||
|
||||
@XmlElement
|
||||
public String getName() {
|
||||
return name;
|
||||
|
@ -50,5 +60,4 @@ public class ParamInfoModel {
|
|||
this.type = type;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue