refactor the plugin
This commit is contained in:
parent
7ba32b6cf6
commit
845e5d3a34
|
@ -1,21 +0,0 @@
|
|||
package org.bench4q.share.models.master.plugin;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
@XmlRootElement(name = "checkBox")
|
||||
public class CheckBoxModel extends ParamTypeModel {
|
||||
private String rows;
|
||||
@XmlElement
|
||||
public String getRows() {
|
||||
return rows;
|
||||
}
|
||||
|
||||
public void setRows(String rows) {
|
||||
this.rows = rows;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package org.bench4q.share.models.master.plugin;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
@XmlRootElement(name = "field")
|
||||
public class FieldModel extends ParamTypeModel {
|
||||
private int size;
|
||||
|
||||
@XmlElement
|
||||
public int getSize() {
|
||||
return size;
|
||||
}
|
||||
|
||||
public void setSize(int size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
package org.bench4q.share.models.master.plugin;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
@ -8,7 +9,10 @@ import javax.xml.bind.annotation.XmlRootElement;
|
|||
public class MethodParamModel {
|
||||
private String name;
|
||||
private String lable;
|
||||
private ParamTypeModel paramTypeModel;
|
||||
private ParamTypeEnum paramType;
|
||||
private String valueSeperator = ";";
|
||||
private String fieldSeperator = ",";
|
||||
private Set<MethodParamPropertyModel> methodParamProperties;
|
||||
|
||||
@XmlElement
|
||||
public String getName() {
|
||||
|
@ -27,14 +31,39 @@ public class MethodParamModel {
|
|||
public void setLable(String lable) {
|
||||
this.lable = lable;
|
||||
}
|
||||
@XmlElement
|
||||
public ParamTypeEnum getParamType() {
|
||||
return paramType;
|
||||
}
|
||||
|
||||
public void setParamType(ParamTypeEnum paramType) {
|
||||
this.paramType = paramType;
|
||||
}
|
||||
@XmlElement
|
||||
public ParamTypeModel getParamTypeModel() {
|
||||
return paramTypeModel;
|
||||
public String getValueSeperator() {
|
||||
return valueSeperator;
|
||||
}
|
||||
|
||||
public void setParamTypeModel(ParamTypeModel paramTypeModel) {
|
||||
this.paramTypeModel = paramTypeModel;
|
||||
public void setValueSeperator(String valueSeperator) {
|
||||
this.valueSeperator = valueSeperator;
|
||||
}
|
||||
@XmlElement
|
||||
public String getFieldSeperator() {
|
||||
return fieldSeperator;
|
||||
}
|
||||
|
||||
public void setFieldSeperator(String fieldSeperator) {
|
||||
this.fieldSeperator = fieldSeperator;
|
||||
}
|
||||
@XmlElement
|
||||
public Set<MethodParamPropertyModel> getMethodParamProperties() {
|
||||
return methodParamProperties;
|
||||
}
|
||||
|
||||
public void setMethodParamProperties(
|
||||
Set<MethodParamPropertyModel> methodParamProperties) {
|
||||
this.methodParamProperties = methodParamProperties;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
package org.bench4q.share.models.master.plugin;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
@XmlRootElement
|
||||
public class MethodParamPropertyModel {
|
||||
|
||||
private String key;
|
||||
private String value;
|
||||
|
||||
@XmlElement
|
||||
public String getKey() {
|
||||
return key;
|
||||
}
|
||||
|
||||
public void setKey(String key) {
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
@XmlElement
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
package org.bench4q.share.models.master.plugin;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
|
||||
public class MultiFieldModel extends ParamTypeModel {
|
||||
private int size;
|
||||
|
||||
@XmlElement
|
||||
public int getSize() {
|
||||
return size;
|
||||
}
|
||||
|
||||
public void setSize(int size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
package org.bench4q.share.models.master.plugin;
|
||||
|
||||
public enum ParamTypeEnum {
|
||||
Field, MultiField, CheckBox, Table
|
||||
|
||||
}
|
|
@ -1,69 +0,0 @@
|
|||
package org.bench4q.share.models.master.plugin;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
@XmlRootElement
|
||||
public class ParamTypeModel {
|
||||
|
||||
private String type;
|
||||
private String valueSeperator = ";";
|
||||
private String fieldSeperator = ",";
|
||||
|
||||
private int size;
|
||||
private String rows;
|
||||
|
||||
@XmlElement
|
||||
public int getSize() {
|
||||
return size;
|
||||
}
|
||||
|
||||
public void setSize(int size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
@XmlElement
|
||||
public String getRows() {
|
||||
return rows;
|
||||
}
|
||||
|
||||
public void setRows(String rows) {
|
||||
this.rows = rows;
|
||||
}
|
||||
private String cols;
|
||||
@XmlElement
|
||||
public String getCols() {
|
||||
return cols;
|
||||
}
|
||||
|
||||
public void setCols(String cols) {
|
||||
this.cols = cols;
|
||||
}
|
||||
@XmlElement
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
@XmlElement
|
||||
public String getValueSeperator() {
|
||||
return valueSeperator;
|
||||
}
|
||||
|
||||
public void setValueSeperator(String valueSeperator) {
|
||||
this.valueSeperator = valueSeperator;
|
||||
}
|
||||
|
||||
@XmlElement
|
||||
public String getFieldSeperator() {
|
||||
return fieldSeperator;
|
||||
}
|
||||
|
||||
public void setFieldSeperator(String fieldSeperator) {
|
||||
this.fieldSeperator = fieldSeperator;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
package org.bench4q.share.models.master.plugin;
|
||||
|
||||
public class ParamTypeString {
|
||||
|
||||
public static final String FIELD = "field";
|
||||
|
||||
public static final String MULTIFIELD = "multiField";
|
||||
public static final String CHECKBOX = "checkBox";
|
||||
public static final String TABLE = "table";
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
package org.bench4q.share.models.master.plugin;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
@XmlRootElement(name = "table")
|
||||
public class TableModel extends ParamTypeModel {
|
||||
private String cols;
|
||||
|
||||
@XmlElement
|
||||
public String getCols() {
|
||||
return cols;
|
||||
}
|
||||
|
||||
public void setCols(String cols) {
|
||||
this.cols = cols;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue