diff options
Diffstat (limited to 'common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/PropertyRule.java')
-rw-r--r-- | common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/PropertyRule.java | 43 |
1 files changed, 13 insertions, 30 deletions
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/PropertyRule.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/PropertyRule.java index f0fc8b7dac..8a99bf812d 100644 --- a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/PropertyRule.java +++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/PropertyRule.java @@ -21,56 +21,39 @@ package org.openecomp.sdc.be.datatypes.elements; import com.fasterxml.jackson.annotation.JsonIgnore; -import org.openecomp.sdc.be.datatypes.tosca.ToscaDataDefinition; - import java.util.List; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; +import org.openecomp.sdc.be.datatypes.tosca.ToscaDataDefinition; +@Getter +@Setter +@NoArgsConstructor public class PropertyRule extends ToscaDataDefinition { private static final String FORCE_ALL = "FORCE_ALL"; private static final String ALL = "ALL"; private static final String RULE_ANY_MATCH = ".+"; - - public static String getForceAll() { - return FORCE_ALL; - } - - public static String getALL() { - return ALL; - } - - public static String getRuleAnyMatch() { - return RULE_ANY_MATCH; - } - - private List<String> rule; private String value; - public PropertyRule() { - super(); - } - public PropertyRule(List<String> rule, String value) { super(); this.rule = rule; this.value = value; } - public List<String> getRule() { - return rule; - } - - public void setRule(List<String> rule) { - this.rule = rule; + public static String getForceAll() { + return FORCE_ALL; } - public String getValue() { - return value; + public static String getALL() { + return ALL; } - public void setValue(String value) { - this.value = value; + public static String getRuleAnyMatch() { + return RULE_ANY_MATCH; } @JsonIgnore |