public final class ListConstraint extends Object
The enumeration can be presented when HTMLComponent.isHTMLComponentForEnumeration() returns true.
ParameterDefinition.isList(),
HTMLComponent| Constructor and Description |
|---|
ListConstraint(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.
|
| Modifier and Type | Method and Description |
|---|---|
Set<PredefinedValue> |
getDefaultPredefinedValues()
Returns the list of the predefined default values.
|
List<String> |
getDefaultValues()
Deprecated.
As of v1.4.0, replaced by
getDefaultPredefinedValues(). |
int |
getMaxOccurs()
Returns the maximum occurrence number.
|
int |
getMinOccurs()
Returns the minimum occurrence number.
|
Set<PredefinedValue> |
getPossibleValues()
Returns the list of possible values in case of enumeration.
|
boolean |
isEnum()
Returns
true in case of enumeration. |
boolean |
isList()
Returns
true if the maximum occurrence number is greater than 1. |
boolean |
isUnbounded()
|
public ListConstraint(int minOccurs,
int maxOccurs,
List<String> defaultValues)
public ListConstraint(int minOccurs,
int maxOccurs,
Set<PredefinedValue> defaultValues)
public ListConstraint(Set<PredefinedValue> possibleValues, Set<PredefinedValue> defaultValues)
possibleValues - All possible enumeration values.defaultValues - The selected values on the UI.public ListConstraint(int minOccurs,
int maxOccurs,
Set<PredefinedValue> possibleValues,
Set<PredefinedValue> defaultValues)
minOccurs - The minimum occurrence number.maxOccurs - The maximum occurrence number.possibleValues - All possible enumeration values.defaultValues - The selected values on the user interface.public int getMinOccurs()
public int getMaxOccurs()
@Deprecated public List<String> getDefaultValues()
getDefaultPredefinedValues().public Set<PredefinedValue> getDefaultPredefinedValues()
public Set<PredefinedValue> getPossibleValues()
public boolean isUnbounded()
public boolean isEnum()
true in case of enumeration.public boolean isList()
true if the maximum occurrence number is greater than 1.