aboutsummaryrefslogtreecommitdiffstats
path: root/ECOMP-REST/src/main/java/org/openecomp/policy/rest/util/MSAttributeObject.java
diff options
context:
space:
mode:
Diffstat (limited to 'ECOMP-REST/src/main/java/org/openecomp/policy/rest/util/MSAttributeObject.java')
-rw-r--r--ECOMP-REST/src/main/java/org/openecomp/policy/rest/util/MSAttributeObject.java33
1 files changed, 27 insertions, 6 deletions
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..c912374ef 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 {
@@ -31,8 +30,9 @@ public class MSAttributeObject {
private HashMap<String, String> refAttribute = new HashMap<String, String>();
private HashMap<String, String> subClass = new HashMap<String, String>();
private String dependency;
- private List<String> enumType;
-
+ private HashMap<String, String> enumType = new HashMap<String, String>();
+ private HashMap<String, String> matchingSet = new HashMap<String, String>();
+ private boolean policyTempalate;
public Map<String, String> getRefAttribute() {
return refAttribute;
@@ -52,10 +52,10 @@ public class MSAttributeObject {
public void setAttribute(HashMap<String, String> attribute) {
this.attribute = attribute;
}
- public List<String> getEnumType() {
+ public HashMap<String, String> getEnumType() {
return enumType;
}
- public void setEnumType(List<String> enumType) {
+ public void setEnumType(HashMap<String, String> enumType) {
this.enumType = enumType;
}
public void addAttribute(String key, String value){
@@ -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<String, String> getMatchingSet() {
+ return matchingSet;
+ }
+ public void setMatchingSet(HashMap<String, String> matchingSet) {
+ this.matchingSet = matchingSet;
+ }
+ public void addMatchingSet(String key, String value){
+ this.matchingSet.put(key, value);
+ }
+ public void addMatchingSet(HashMap<String, String> matchingSet){
+ this.matchingSet.putAll(matchingSet);
+ }
+ public boolean isPolicyTempalate() {
+ return policyTempalate;
+ }
+ public void setPolicyTempalate(boolean policyTempalate) {
+ this.policyTempalate = policyTempalate;
+ }
+} \ No newline at end of file