X-Git-Url: https://gerrit.onap.org/r/gitweb?p=policy%2Fengine.git;a=blobdiff_plain;f=ECOMP-REST%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenecomp%2Fpolicy%2Frest%2Fjpa%2FConstraintType.java;h=60923d5a85e045e44c002f73d908615262f66e18;hp=d7f5a720fe605db93b04904c0a7031e0b15381b2;hb=d80880b097d08f9ab9dda54355216890a4b345dc;hpb=e92ff832cf993db876f22b2d27562fedf59f5043 diff --git a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/jpa/ConstraintType.java b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/jpa/ConstraintType.java index d7f5a720f..60923d5a8 100644 --- a/ECOMP-REST/src/main/java/org/openecomp/policy/rest/jpa/ConstraintType.java +++ b/ECOMP-REST/src/main/java/org/openecomp/policy/rest/jpa/ConstraintType.java @@ -51,7 +51,7 @@ public class ConstraintType implements Serializable { defaults.put(RANGE_TYPE, "Set a range of min and/or max integer/double values the attribute can be set to during policy creation."); defaults.put(REGEXP_TYPE, "Define a regular expression the attribute must match against during policy creation."); } - protected static final String[] RANGE_TYPES = {"minExclusive", "minInclusive", "maxExclusive", "maxInclusive"}; + private static final String[] RANGE_TYPES = {"minExclusive", "minInclusive", "maxExclusive", "maxInclusive"}; @Id @GeneratedValue(strategy = GenerationType.AUTO) @@ -114,4 +114,8 @@ public class ConstraintType implements Serializable { this.attributes = attributes; } + public static String[] getRangeTypes() { + return RANGE_TYPES; + } + }