Class ConstraintValue
java.lang.Object
net.ssehub.easy.varModel.model.values.Value
net.ssehub.easy.varModel.model.values.BasisDatatypeValue
net.ssehub.easy.varModel.model.values.ConstraintValue
This class holds the value for a constraint type.
- Author:
- Holger Eichelberger
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedArgumentless constructor.protectedConstraintValue(Object value) Constructor.protectedConstructor. -
Method Summary
Methods inherited from class net.ssehub.easy.varModel.model.values.BasisDatatypeValue
equalsPartiallyMethods inherited from class net.ssehub.easy.varModel.model.values.Value
equals, equalsPartially, getContainedType, getType, getValueParent, setValueParent, stringValueOf
-
Field Details
-
value
-
-
Constructor Details
-
ConstraintValue
protected ConstraintValue()Argumentless constructor. -
ConstraintValue
Constructor.- Parameters:
value- Value of the Datatype- Throws:
ValueDoesNotMatchTypeException- in case that the given value does not match the requirements of this class, i.e. cannot be converted
-
ConstraintValue
Constructor.- Parameters:
value- Value of the Datatype
-
-
Method Details
-
setValue
Setter for the value.- Specified by:
setValuein classValue- Parameters:
value- Value of the Datatype- Throws:
ValueDoesNotMatchTypeException- if the given value does not match this type
-
getValue
Returns the stored value.- Overrides:
getValuein classBasisDatatypeValue- Returns:
- the stored constraint (may be null)
-
accept
Accept method for the visitor.
This method is used for saving this model element. -
isConfigured
public boolean isConfigured()Description copied from class:ValueAbstract Method to check whether a value is configured.- Specified by:
isConfiguredin classValue- Returns:
- true = it is configured / false = it is not
-
clone
Description copied from class:ValueClones the this value. -
equals
-
hashCode
public int hashCode() -
toString
-