X-Git-Url: https://gerrit.onap.org/r/gitweb?p=policy%2Fengine.git;a=blobdiff_plain;f=ONAP-REST%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fpolicy%2Frest%2Futil%2FMSAttributeObject.java;h=3410dd7f629c1a80b0ce32249ce7f295c9f62aad;hp=b5d359fd623ab07cc4d0018f7b6b1c14a45bf40c;hb=401b48bc573561f097960a9ca7abe6d788456f28;hpb=9301fed7c290f52208922f780fdfe4b5a880b5aa diff --git a/ONAP-REST/src/main/java/org/onap/policy/rest/util/MSAttributeObject.java b/ONAP-REST/src/main/java/org/onap/policy/rest/util/MSAttributeObject.java index b5d359fd6..3410dd7f6 100644 --- a/ONAP-REST/src/main/java/org/onap/policy/rest/util/MSAttributeObject.java +++ b/ONAP-REST/src/main/java/org/onap/policy/rest/util/MSAttributeObject.java @@ -26,18 +26,18 @@ import java.util.Map; public class MSAttributeObject { private String className; - private HashMap attribute = new HashMap<>(); - private HashMap refAttribute = new HashMap<>(); - private HashMap subClass = new HashMap<>(); + private Map attribute = new HashMap<>(); + private Map refAttribute = new HashMap<>(); + private Map subClass = new HashMap<>(); private String dependency; - private HashMap enumType = new HashMap<>(); - private HashMap matchingSet = new HashMap<>(); + private Map enumType = new HashMap<>(); + private Map matchingSet = new HashMap<>(); private boolean policyTempalate; public Map getRefAttribute() { return refAttribute; } - public void setRefAttribute(HashMap refAttribute) { + public void setRefAttribute(Map refAttribute) { this.refAttribute = refAttribute; } public String getClassName() { @@ -49,13 +49,13 @@ public class MSAttributeObject { public Map getAttribute() { return attribute; } - public void setAttribute(HashMap attribute) { + public void setAttribute(Map attribute) { this.attribute = attribute; } - public HashMap getEnumType() { + public Map getEnumType() { return enumType; } - public void setEnumType(HashMap enumType) { + public void setEnumType(Map 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 Map getSubClass() { return subClass; } - public void setSubClass(HashMap subClass) { + public void setSubClass(Map subClass) { this.subClass = subClass; } - public void addAllSubClass(HashMap subClass){ + public void addAllSubClass(Map subClass){ this.subClass.putAll(subClass); } public String getDependency() { @@ -88,16 +88,16 @@ public class MSAttributeObject { public void addSingleEnum(String key, String value){ this.enumType.put(key, value); } - public HashMap getMatchingSet() { + public Map getMatchingSet() { return matchingSet; } - public void setMatchingSet(HashMap matchingSet) { + public void setMatchingSet(Map matchingSet) { this.matchingSet = matchingSet; } public void addMatchingSet(String key, String value){ this.matchingSet.put(key, value); } - public void addMatchingSet(HashMap matchingSet){ + public void addMatchingSet(Map matchingSet){ this.matchingSet.putAll(matchingSet); } public boolean isPolicyTempalate() {