Package com.orchestranetworks.addon.dqid
Class ListConstraint
- java.lang.Object
-
- com.orchestranetworks.addon.dqid.ListConstraint
-
public final class ListConstraint extends java.lang.ObjectDefinition of a constraint for a multiple occurred parameter or enumeration.The enumeration can be presented when
HTMLComponent.isHTMLComponentForEnumeration()returnstrue.- Since:
- 1.3.0
- See Also:
ParameterDefinition.isList(),HTMLComponent
-
-
Constructor Summary
Constructors Constructor Description ListConstraint(int minOccurs, int maxOccurs, java.util.List<java.lang.String> defaultValues)Initializes in the case the parameter is a list.ListConstraint(int minOccurs, int maxOccurs, java.util.Set<PredefinedValue> defaultValues)Initializes in the case the parameter is a list.ListConstraint(int minOccurs, int maxOccurs, java.util.Set<PredefinedValue> possibleValues, java.util.Set<PredefinedValue> defaultValues)Initializes in the case the parameter is an enumeration type and is multiple-occurrenced.ListConstraint(java.util.Set<PredefinedValue> possibleValues, java.util.Set<PredefinedValue> defaultValues)Initializes in the case the parameter is an enumeration type.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.Set<PredefinedValue>getDefaultPredefinedValues()Returns the list of the predefined default values.java.util.List<java.lang.String>getDefaultValues()Deprecated.As of v1.4.0, replaced bygetDefaultPredefinedValues().intgetMaxOccurs()Returns the maximum occurrence number.intgetMinOccurs()Returns the minimum occurrence number.java.util.Set<PredefinedValue>getPossibleValues()Returns the list of possible values in case of enumeration.booleanisEnum()Returnstruein case of enumeration.booleanisList()Returnstrueif the maximum occurrence number is greater than 1.booleanisUnbounded()
-
-
-
Constructor Detail
-
ListConstraint
public ListConstraint(int minOccurs, int maxOccurs, java.util.List<java.lang.String> defaultValues)Initializes in the case the parameter is a list.
-
ListConstraint
public ListConstraint(int minOccurs, int maxOccurs, java.util.Set<PredefinedValue> defaultValues)Initializes in the case the parameter is a list.
-
ListConstraint
public ListConstraint(java.util.Set<PredefinedValue> possibleValues, java.util.Set<PredefinedValue> defaultValues)
Initializes in the case the parameter is an enumeration type.- Parameters:
possibleValues- All possible enumeration values.defaultValues- The selected values on the UI.- Since:
- 1.4.0
-
ListConstraint
public ListConstraint(int minOccurs, int maxOccurs, java.util.Set<PredefinedValue> possibleValues, java.util.Set<PredefinedValue> defaultValues)Initializes in the case the parameter is an enumeration type and is multiple-occurrenced.- Parameters:
minOccurs- The minimum occurrence number.maxOccurs- The maximum occurrence number.possibleValues- All possible enumeration values.defaultValues- The selected values on the user interface.- Since:
- 1.4.0
-
-
Method Detail
-
getMinOccurs
public int getMinOccurs()
Returns the minimum occurrence number.
-
getMaxOccurs
public int getMaxOccurs()
Returns the maximum occurrence number.
-
getDefaultValues
@Deprecated public java.util.List<java.lang.String> getDefaultValues()
Deprecated.As of v1.4.0, replaced bygetDefaultPredefinedValues().Returns the list of the predefined default values.
-
getDefaultPredefinedValues
public java.util.Set<PredefinedValue> getDefaultPredefinedValues()
Returns the list of the predefined default values.- Since:
- 1.4.0
-
getPossibleValues
public java.util.Set<PredefinedValue> getPossibleValues()
Returns the list of possible values in case of enumeration.- Since:
- 1.4.0
-
isUnbounded
public boolean isUnbounded()
-
isEnum
public boolean isEnum()
Returnstruein case of enumeration.- Since:
- 1.4.0
-
isList
public boolean isList()
Returnstrueif the maximum occurrence number is greater than 1.- Since:
- 1.4.0
-
-