public class MHardConstraint
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONSTANT
The value should remain constant.
|
static java.lang.String |
GREATER
The value should be greater than the given value.
|
static java.lang.String |
GREATER_OR_EQUAL
The value should be greater than or equal to the given value.
|
static java.lang.String |
LESS
The value should be less than the given value.
|
static java.lang.String |
LESS_OR_EQUAL
The value should be less than or equal to the given value.
|
protected java.lang.String |
operator
Operator used to evaluate the value.
|
protected java.lang.String |
propname
Name of the property.
|
protected UnparsedExpression |
value
Expected value.
|
Constructor and Description |
---|
MHardConstraint()
Creates a hard constraint for non-functional properties.
|
MHardConstraint(java.lang.String propname,
java.lang.String operand,
java.lang.String value)
Creates a hard constraint for non-functional properties.
|
MHardConstraint(java.lang.String propname,
java.lang.String operator,
UnparsedExpression value)
Creates a hard constraint for non-functional properties.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getOperator()
Gets the operator.
|
java.lang.String |
getPropertyName()
Gets the propname.
|
UnparsedExpression |
getValue()
Gets the value.
|
void |
setOperator(java.lang.String operator)
Sets the operand.
|
void |
setPropname(java.lang.String propname)
Sets the propname.
|
void |
setValue(UnparsedExpression value)
Sets the value.
|
public static final java.lang.String CONSTANT
public static final java.lang.String GREATER
public static final java.lang.String LESS
public static final java.lang.String GREATER_OR_EQUAL
public static final java.lang.String LESS_OR_EQUAL
protected java.lang.String propname
protected UnparsedExpression value
protected java.lang.String operator
public MHardConstraint()
public MHardConstraint(java.lang.String propname, java.lang.String operand, java.lang.String value)
public MHardConstraint(java.lang.String propname, java.lang.String operator, UnparsedExpression value)
public java.lang.String getPropertyName()
public void setPropname(java.lang.String propname)
propname
- The propname to set.public UnparsedExpression getValue()
public void setValue(UnparsedExpression value)
value
- The value to set.public java.lang.String getOperator()
public void setOperator(java.lang.String operator)
operand
- The operand to set.