public final class ParameterConstraint extends Object
ParameterDefinition| Constructor and Description |
|---|
ParameterConstraint() |
| Modifier and Type | Method and Description |
|---|---|
String |
getMaxValue()
Returns the maximum value.
|
String |
getMinValue()
Returns the minimum value.
|
boolean |
isNegativeSupported()
Returns
true if the data type is Number and negative values are allowed. |
boolean |
isUnboundedSupported()
Returns
true if the data type is Number, and the unbounded value is allowed. |
boolean |
isUndefinedValueSupported()
Returns
true if the data type is Boolean, and undefined values are allowed. |
void |
setMaxValue(String maxValue)
Defines the maximum value allowed for this parameter.
|
void |
setMinValue(String minValue)
Defines the minimum value allowed for this parameter.
|
void |
setNegativeSupported(boolean negativeSupported)
Sets negative number support when the data type is Number.
|
void |
setUnboundedSupported(boolean unboundedSupported)
Sets unbounded value support when the data type is Number.
|
void |
setUndefinedValueSupported(boolean undefinedValueSupported)
Sets undefined value support when the data type is Boolean.
|
public boolean isUndefinedValueSupported()
true if the data type is Boolean, and undefined values are allowed.public void setUndefinedValueSupported(boolean undefinedValueSupported)
undefinedValueSupported - boolean. Default value: false.public boolean isNegativeSupported()
true if the data type is Number and negative values are allowed.public void setNegativeSupported(boolean negativeSupported)
negativeSupported - boolean. Default value: false.public boolean isUnboundedSupported()
true if the data type is Number, and the unbounded value is allowed.public void setUnboundedSupported(boolean unboundedSupported)
unboundedSupported - boolean. Default value: false.public String getMinValue()
public void setMinValue(String minValue)
minValue - It depends on the data type of parameter and it must be formatted by the rule that is defined by the add-on.FormatDataPolicy,
DataTypeFormatpublic String getMaxValue()
public void setMaxValue(String maxValue)
maxValue - It depends on the data type of parameter and it must be formatted by the rule that is defined by the add-on.FormatDataPolicy,
DataTypeFormat