Class VersionValue
java.lang.Object
net.ssehub.easy.varModel.model.values.Value
net.ssehub.easy.varModel.model.values.BasisDatatypeValue
net.ssehub.easy.varModel.model.values.VersionValue
This class holds the value for a version.
- Author:
- Holger Eichelberger
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedArgumentless constructor.protectedVersionValue(Object value) Constructor.protectedVersionValue(net.ssehub.easy.basics.modelManagement.Version value) Creates a value object from the given value. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IValueVisitor visitor) Abstract accept method.clone()Clones the this value.booleannet.ssehub.easy.basics.modelManagement.VersiongetValue()Getter for the value.inthashCode()booleanAbstract Method to check whether a value is configured.voidAbstract setValue-method.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, toString
-
Field Details
-
value
private net.ssehub.easy.basics.modelManagement.Version value
-
-
Constructor Details
-
VersionValue
Constructor.- Parameters:
value- Value of the datatype- Throws:
ValueDoesNotMatchTypeException- if the given value does not match this type
-
VersionValue
protected VersionValue()Argumentless constructor. -
VersionValue
protected VersionValue(net.ssehub.easy.basics.modelManagement.Version value) Creates a value object from the given value.- Parameters:
value- the value to set
-
-
Method Details
-
getValue
public net.ssehub.easy.basics.modelManagement.Version getValue()Getter for the value.- Overrides:
getValuein classBasisDatatypeValue- Returns:
- the saved int
-
setValue
Description copied from class:ValueAbstract setValue-method.- Specified by:
setValuein classValue- Parameters:
value- the value to set.- Throws:
ValueDoesNotMatchTypeException- if the given value does not match this type
-
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
-
accept
Description copied from class:ValueAbstract accept method. -
clone
Description copied from class:ValueClones the this value. -
hashCode
public int hashCode() -
equals
-