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
public abstract class BasisDatatypeValue extends Value
Holding basis data types.- Author:
- Marcel Lueder, El-Sharkawy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBasisDatatypeValue(IDatatype type)Constructor for a new BasisDatatypeValue.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequalsPartially(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.java.lang.ObjectgetValue()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 Detail
-
BasisDatatypeValue
protected BasisDatatypeValue(IDatatype type)
Constructor for a new BasisDatatypeValue.- Parameters:
type- type of the Value
-
-
Method Detail
-
getValue
public java.lang.Object getValue()
Getter for the value. Not implemented yet.
-
equalsPartially
public boolean equalsPartially(Value value)
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
-
-