Improve policy ui config structure

reporting
tcdlpds@gmail.com 5 years ago
parent 0fdcc6cbd8
commit 6e0f386664

@ -19,15 +19,13 @@ package org.wso2.carbon.device.mgt.common.policy.mgt.ui;
import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;
@XmlRootElement(name = "Feature") @XmlRootElement(name = "Feature")
public class Feature { public class Feature {
private String featureCode; private String featureCode;
private List<Content> contents; private Content content;
@XmlAttribute(name = "code", required = true) @XmlAttribute(name = "code", required = true)
public String getFeatureCode() { public String getFeatureCode() {
@ -38,13 +36,12 @@ public class Feature {
this.featureCode = featureCode; this.featureCode = featureCode;
} }
@XmlElementWrapper(name = "Contents")
@XmlElement(name = "Content") @XmlElement(name = "Content")
public List<Content> getContents() { public Content getContent() {
return contents; return content;
} }
public void setContents(List<Content> contents) { public void setContent(Content content) {
this.contents = contents; this.content = content;
} }
} }

Loading…
Cancel
Save