2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017,2019 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.onap.policy.rest.util;
23 import java.util.HashMap;
26 public class MSAttributeObject {
28 private String className;
29 private Map<String, String> attribute = new HashMap<>();
30 private Map<String, String> refAttribute = new HashMap<>();
31 private Map<String, Object> subClass = new HashMap<>();
32 private String dependency;
33 private Map<String, String> enumType = new HashMap<>();
34 private Map<String, String> matchingSet = new HashMap<>();
35 private boolean policyTempalate;
36 private String ruleFormation;
37 private String dataOrderInfo;
39 public Map<String, String> getRefAttribute() {
43 public void setRefAttribute(Map<String, String> refAttribute) {
44 this.refAttribute = refAttribute;
47 public String getClassName() {
51 public void setClassName(String className) {
52 this.className = className;
55 public Map<String, String> getAttribute() {
59 public void setAttribute(Map<String, String> attribute) {
60 this.attribute = attribute;
63 public Map<String, String> getEnumType() {
67 public void setEnumType(Map<String, String> enumType) {
68 this.enumType = enumType;
71 public void addAttribute(String key, String value) {
72 this.attribute.put(key, value);
75 public void addRefAttribute(String key, String value) {
76 this.refAttribute.put(key, value);
79 public void addAllAttribute(Map<String, String> map) {
80 this.attribute.putAll(map);
83 public void addAllRefAttribute(Map<String, String> map) {
84 this.refAttribute.putAll(map);
87 public Map<String, Object> getSubClass() {
91 public void setSubClass(Map<String, Object> subClass) {
92 this.subClass = subClass;
95 public void addAllSubClass(Map<String, Object> subClass) {
96 this.subClass.putAll(subClass);
99 public String getDependency() {
103 public void setDependency(String dependency) {
104 this.dependency = dependency;
107 public void addSingleEnum(String key, String value) {
108 this.enumType.put(key, value);
111 public Map<String, String> getMatchingSet() {
115 public void setMatchingSet(Map<String, String> matchingSet) {
116 this.matchingSet = matchingSet;
119 public void addMatchingSet(String key, String value) {
120 this.matchingSet.put(key, value);
123 public void addMatchingSet(Map<String, String> matchingSet) {
124 this.matchingSet.putAll(matchingSet);
127 public boolean isPolicyTempalate() {
128 return policyTempalate;
131 public void setPolicyTempalate(boolean policyTempalate) {
132 this.policyTempalate = policyTempalate;
135 public String getRuleFormation() {
136 return ruleFormation;
139 public void setRuleFormation(String ruleFormation) {
140 this.ruleFormation = ruleFormation;
143 public String getDataOrderInfo() {
144 return dataOrderInfo;
147 public void setDataOrderInfo(String dataOrderInfo) {
148 this.dataOrderInfo = dataOrderInfo;