Package com.orchestranetworks.addon.dqid
Class ListConstraint
java.lang.Object
com.orchestranetworks.addon.dqid.ListConstraint
Definition of a constraint for a multiple occurred parameter or enumeration.
 
The enumeration can be presented when HTMLComponent.isHTMLComponentForEnumeration() returns true.
- Since:
 - 1.3.0
 - See Also:
 
- 
Constructor Summary
ConstructorsConstructorDescriptionListConstraint(int minOccurs, int maxOccurs, List<String> defaultValues) Initializes in the case the parameter is a list.ListConstraint(int minOccurs, int maxOccurs, Set<PredefinedValue> defaultValues) Initializes in the case the parameter is a list.ListConstraint(int minOccurs, int maxOccurs, Set<PredefinedValue> possibleValues, Set<PredefinedValue> defaultValues) Initializes in the case the parameter is an enumeration type and is multiple-occurrenced.ListConstraint(Set<PredefinedValue> possibleValues, Set<PredefinedValue> defaultValues) Initializes in the case the parameter is an enumeration type. - 
Method Summary
Modifier and TypeMethodDescriptionReturns the list of the predefined default values.Deprecated.intReturns the maximum occurrence number.intReturns the minimum occurrence number.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.boolean 
- 
Constructor Details
- 
ListConstraint
Initializes in the case the parameter is a list. - 
ListConstraint
Initializes in the case the parameter is a list. - 
ListConstraint
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, Set<PredefinedValue> possibleValues, 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 Details
- 
getMinOccurs
public int getMinOccurs()Returns the minimum occurrence number. - 
getMaxOccurs
public int getMaxOccurs()Returns the maximum occurrence number. - 
getDefaultValues
Deprecated.As of v1.4.0, replaced bygetDefaultPredefinedValues().Returns the list of the predefined default values. - 
getDefaultPredefinedValues
Returns the list of the predefined default values.- Since:
 - 1.4.0
 
 - 
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
 
 
 - 
 
getDefaultPredefinedValues().