Class MHardConstraint
- java.lang.Object
-
- jadex.bridge.nonfunctional.hardconstraints.MHardConstraint
-
public class MHardConstraint extends java.lang.Object
A hard constraint for non-functional properties.
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description MHardConstraint()
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.MHardConstraint(java.lang.String propname, java.lang.String operand, java.lang.String value)
Creates a hard constraint for non-functional properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
CONSTANT
public static final java.lang.String CONSTANT
The value should remain constant.- See Also:
- Constant Field Values
-
GREATER
public static final java.lang.String GREATER
The value should be greater than the given value.- See Also:
- Constant Field Values
-
LESS
public static final java.lang.String LESS
The value should be less than the given value.- See Also:
- Constant Field Values
-
GREATER_OR_EQUAL
public static final java.lang.String GREATER_OR_EQUAL
The value should be greater than or equal to the given value.- See Also:
- Constant Field Values
-
LESS_OR_EQUAL
public static final java.lang.String LESS_OR_EQUAL
The value should be less than or equal to the given value.- See Also:
- Constant Field Values
-
propname
protected java.lang.String propname
Name of the property.
-
value
protected UnparsedExpression value
Expected value.
-
operator
protected java.lang.String operator
Operator used to evaluate the value.
-
-
Constructor Detail
-
MHardConstraint
public MHardConstraint()
Creates a hard constraint for non-functional properties.
-
MHardConstraint
public MHardConstraint(java.lang.String propname, java.lang.String operand, java.lang.String value)
Creates a hard constraint for non-functional properties.
-
MHardConstraint
public MHardConstraint(java.lang.String propname, java.lang.String operator, UnparsedExpression value)
Creates a hard constraint for non-functional properties.
-
-
Method Detail
-
getPropertyName
public java.lang.String getPropertyName()
Gets the propname.- Returns:
- The propname.
-
setPropname
public void setPropname(java.lang.String propname)
Sets the propname.- Parameters:
propname
- The propname to set.
-
getValue
public UnparsedExpression getValue()
Gets the value.- Returns:
- The value.
-
setValue
public void setValue(UnparsedExpression value)
Sets the value.- Parameters:
value
- The value to set.
-
getOperator
public java.lang.String getOperator()
Gets the operator.- Returns:
- The operator.
-
setOperator
public void setOperator(java.lang.String operator)
Sets the operand.- Parameters:
operand
- The operand to set.
-
-