Class BasisDatatypeValue
java.lang.Object
net.ssehub.easy.varModel.model.values.Value
net.ssehub.easy.varModel.model.values.BasisDatatypeValue
- Direct Known Subclasses:
BooleanValue,ConstraintValue,IntValue,RealValue,StringValue,VersionValue
Holding basis data types.
- Author:
- Marcel Lueder, El-Sharkawy
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBasisDatatypeValue(IDatatype type) Constructor for a new BasisDatatypeValue. -
Method Summary
Modifier and TypeMethodDescriptionbooleanequalsPartially(Value value) Returns whether the providedvalueis partially equal to this value, i.e., whether the nested elements ofvalue(if they exist) have the same contents as in this value.getValue()Getter for the value.Methods inherited from class net.ssehub.easy.varModel.model.values.Value
accept, clone, equals, equals, equalsPartially, getContainedType, getType, getValueParent, hashCode, isConfigured, setValue, setValueParent, stringValueOf, toString
-
Constructor Details
-
BasisDatatypeValue
Constructor for a new BasisDatatypeValue.- Parameters:
type- type of the Value
-
-
Method Details
-
getValue
Getter for the value. Not implemented yet. -
equalsPartially
Description copied from class:ValueReturns whether the providedvalueis partially equal to this value, i.e., whether the nested elements ofvalue(if they exist) have the same contents as in this value. Other values of this value are not considered. The check is transitive on nested elements. Please consider that this method is not symmetric as opposed toequals. This method is important to cope with default values.- Specified by:
equalsPartiallyin classValue- Parameters:
value- the value to be checked for partial equality.- Returns:
trueifvalueis partially equal to this,falseelse
-