Package com.orchestranetworks.addon.dqid
Class ParameterConstraint
java.lang.Object
com.orchestranetworks.addon.dqid.ParameterConstraint
The definition of a constraint for the value of a parameter.
- Since:
- 1.4.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the maximum value.Returns the minimum value.boolean
Returnstrue
if the data type is Number and negative values are allowed.boolean
Returnstrue
if the data type is Number, and the unbounded value is allowed.boolean
Returnstrue
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.
-
Constructor Details
-
ParameterConstraint
public ParameterConstraint()
-
-
Method Details
-
isUndefinedValueSupported
public boolean isUndefinedValueSupported()Returnstrue
if the data type is Boolean, and undefined values are allowed. -
setUndefinedValueSupported
public void setUndefinedValueSupported(boolean undefinedValueSupported) Sets undefined value support when the data type is Boolean.- Parameters:
undefinedValueSupported
-boolean
. Default value:false
.
-
isNegativeSupported
public boolean isNegativeSupported()Returnstrue
if the data type is Number and negative values are allowed. -
setNegativeSupported
public void setNegativeSupported(boolean negativeSupported) Sets negative number support when the data type is Number.- Parameters:
negativeSupported
-boolean
. Default value:false
.
-
isUnboundedSupported
public boolean isUnboundedSupported()Returnstrue
if the data type is Number, and the unbounded value is allowed. -
setUnboundedSupported
public void setUnboundedSupported(boolean unboundedSupported) Sets unbounded value support when the data type is Number.- Parameters:
unboundedSupported
-boolean
. Default value:false
.
-
getMinValue
Returns the minimum value. -
setMinValue
Defines the minimum value allowed for this parameter.- Parameters:
minValue
- It depends on the data type of parameter and it must be formatted by the rule that is defined by the add-on.
If it is not compatible with this parameter, it's considered as no value, and this property will not be used.- See Also:
-
getMaxValue
Returns the maximum value. -
setMaxValue
Defines the maximum value allowed for this parameter.- Parameters:
maxValue
- It depends on the data type of parameter and it must be formatted by the rule that is defined by the add-on.
If it is not compatible with parameter, it's considered as no value, and this property will not be used.- See Also:
-