Package com.orchestranetworks.addon.dqid
Class ParameterConstraint
- java.lang.Object
-
- com.orchestranetworks.addon.dqid.ParameterConstraint
-
public final class ParameterConstraint extends java.lang.ObjectThe definition of a constraint for the value of a parameter.- Since:
- 1.4.0
- See Also:
ParameterDefinition
-
-
Constructor Summary
Constructors Constructor Description ParameterConstraint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMaxValue()Returns the maximum value.java.lang.StringgetMinValue()Returns the minimum value.booleanisNegativeSupported()Returnstrueif the data type is Number and negative values are allowed.booleanisUnboundedSupported()Returnstrueif the data type is Number, and the unbounded value is allowed.booleanisUndefinedValueSupported()Returnstrueif the data type is Boolean, and undefined values are allowed.voidsetMaxValue(java.lang.String maxValue)Defines the maximum value allowed for this parameter.voidsetMinValue(java.lang.String minValue)Defines the minimum value allowed for this parameter.voidsetNegativeSupported(boolean negativeSupported)Sets negative number support when the data type is Number.voidsetUnboundedSupported(boolean unboundedSupported)Sets unbounded value support when the data type is Number.voidsetUndefinedValueSupported(boolean undefinedValueSupported)Sets undefined value support when the data type is Boolean.
-
-
-
Method Detail
-
isUndefinedValueSupported
public boolean isUndefinedValueSupported()
Returnstrueif 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()
Returnstrueif 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()
Returnstrueif 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
public java.lang.String getMinValue()
Returns the minimum value.
-
setMinValue
public void setMinValue(java.lang.String minValue)
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:
FormatDataPolicy,DataTypeFormat
-
getMaxValue
public java.lang.String getMaxValue()
Returns the maximum value.
-
setMaxValue
public void setMaxValue(java.lang.String maxValue)
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:
FormatDataPolicy,DataTypeFormat
-
-