Improve Input class in policy ui Configuration

corrective-policy
Kaveesha 4 years ago
parent 56dec687c0
commit f99bbe36de

@ -28,6 +28,9 @@ public class Input {
private String type; private String type;
private String placeholderValue; private String placeholderValue;
private List<Rule> rules; private List<Rule> rules;
private String apiUrl;
private String arrayPath;
private String dataKey;
@XmlElement(name = "Type") @XmlElement(name = "Type")
public String getType() { public String getType() {
@ -52,4 +55,31 @@ public class Input {
public List<Rule> getRules() { return rules; } public List<Rule> getRules() { return rules; }
public void setRules(List<Rule> rules) { this.rules = rules; } public void setRules(List<Rule> rules) { this.rules = rules; }
@XmlElement(name = "Url")
public String getUrl() {
return apiUrl;
}
public void setUrl(String url) {
this.apiUrl = url;
}
@XmlElement(name = "ArrayPath")
public String getArrayPath() {
return arrayPath;
}
public void setArrayPath(String arrayPath) {
this.arrayPath = arrayPath;
}
@XmlElement(name = "DataKey")
public String getDataKey() {
return dataKey;
}
public void setDataKey(String dataKey) {
this.dataKey = dataKey;
}
} }

@ -45,6 +45,7 @@ public class Item {
private InputList inputList; private InputList inputList;
private String nullableValue; private String nullableValue;
private String divider; private String divider;
private boolean isHidden;
@XmlElement(name = "Label") @XmlElement(name = "Label")
public String getLabel() { public String getLabel() {
@ -207,4 +208,13 @@ public class Item {
public void setDivider(String divider) { public void setDivider(String divider) {
this.divider = divider; this.divider = divider;
} }
@XmlElement(name = "Hidden")
public boolean isHidden() {
return isHidden;
}
public void setHidden(boolean hidden) {
isHidden = hidden;
}
} }

Loading…
Cancel
Save