X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ECOMP-REST%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenecomp%2Fpolicy%2Frest%2Futil%2FMSAttributeObject.java;h=a04f77e7ed55252a1fea19f6d91760defc4ce0ac;hb=dda032f8bb161d54eb1f59de2b4a3efb774fc4d1;hp=45b5aefb8a26d2ca0109eff0cfcedb6cc026e0a4;hpb=91d04c64771832a0b8815ffbe1f0f9920320d94d;p=policy%2Fengine.git diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/util/MSAttributeObject.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/util/MSAttributeObject.java index 45b5aefb8..a04f77e7e 100644 --- a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/util/MSAttributeObject.java +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/util/MSAttributeObject.java @@ -21,7 +21,6 @@ package org.openecomp.policy.rest.util; import java.util.HashMap; -import java.util.List; import java.util.Map; public class MSAttributeObject { @@ -29,10 +28,11 @@ public class MSAttributeObject { private String className; private HashMap attribute = new HashMap(); private HashMap refAttribute = new HashMap(); - private HashMap subClass = new HashMap(); + private HashMap subClass = new HashMap(); private String dependency; - private List enumType; - + private HashMap enumType = new HashMap(); + private HashMap matchingSet = new HashMap(); + private boolean policyTempalate; public Map getRefAttribute() { return refAttribute; @@ -52,10 +52,10 @@ public class MSAttributeObject { public void setAttribute(HashMap attribute) { this.attribute = attribute; } - public List getEnumType() { + public HashMap getEnumType() { return enumType; } - public void setEnumType(List enumType) { + public void setEnumType(HashMap enumType) { this.enumType = enumType; } public void addAttribute(String key, String value){ @@ -70,13 +70,13 @@ public class MSAttributeObject { public void addAllRefAttribute(Map map){ this.refAttribute.putAll(map); } - public HashMap getSubClass() { + public HashMap getSubClass() { return subClass; } - public void setSubClass(HashMap subClass) { + public void setSubClass(HashMap subClass) { this.subClass = subClass; } - public void addAllSubClass(HashMap subClass){ + public void addAllSubClass(HashMap subClass){ this.subClass.putAll(subClass); } public String getDependency() { @@ -85,4 +85,25 @@ public class MSAttributeObject { public void setDependency(String dependency) { this.dependency = dependency; } -} + public void addSingleEnum(String key, String value){ + this.enumType.put(key, value); + } + public HashMap getMatchingSet() { + return matchingSet; + } + public void setMatchingSet(HashMap matchingSet) { + this.matchingSet = matchingSet; + } + public void addMatchingSet(String key, String value){ + this.matchingSet.put(key, value); + } + public void addMatchingSet(HashMap matchingSet){ + this.matchingSet.putAll(matchingSet); + } + public boolean isPolicyTempalate() { + return policyTempalate; + } + public void setPolicyTempalate(boolean policyTempalate) { + this.policyTempalate = policyTempalate; + } +} \ No newline at end of file