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, 30 insertions, 13 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 8a20c16d38..9bb83ddf41 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 @@ -20,39 +20,56 @@ package org.openecomp.sdc.be.datatypes.elements; import com.fasterxml.jackson.annotation.JsonIgnore; -import java.util.List; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; import org.openecomp.sdc.be.datatypes.tosca.ToscaDataDefinition; -@Getter -@Setter -@NoArgsConstructor +import java.util.List; + 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 static String getForceAll() { - return FORCE_ALL; + public List<String> getRule() { + return rule; } - public static String getALL() { - return ALL; + public void setRule(List<String> rule) { + this.rule = rule; } - public static String getRuleAnyMatch() { - return RULE_ANY_MATCH; + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; } @JsonIgnore |