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
-
public class VersionValue extends BasisDatatypeValue
This class holds the value for a version.- Author:
- Holger Eichelberger
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedVersionValue()Argumentless constructor.protectedVersionValue(java.lang.Object value)Constructor.protectedVersionValue(Version value)Creates a value object from the given value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(IValueVisitor visitor)Abstract accept method.Valueclone()Clones the this value.booleanequals(java.lang.Object object)VersiongetValue()Getter for the value.inthashCode()booleanisConfigured()Abstract Method to check whether a value is configured.voidsetValue(java.lang.Object value)Abstract setValue-method.-
Methods inherited from class net.ssehub.easy.varModel.model.values.BasisDatatypeValue
equalsPartially
-
Methods inherited from class net.ssehub.easy.varModel.model.values.Value
equals, equalsPartially, getContainedType, getType, getValueParent, setValueParent, stringValueOf, toString
-
-
-
-
Field Detail
-
value
private Version value
-
-
Constructor Detail
-
VersionValue
protected VersionValue(java.lang.Object value) throws ValueDoesNotMatchTypeExceptionConstructor.- 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(Version value)
Creates a value object from the given value.- Parameters:
value- the value to set
-
-
Method Detail
-
getValue
public Version getValue()
Getter for the value.- Overrides:
getValuein classBasisDatatypeValue- Returns:
- the saved int
-
setValue
public void setValue(java.lang.Object value) throws ValueDoesNotMatchTypeExceptionDescription 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
public void accept(IValueVisitor visitor)
Description copied from class:ValueAbstract accept method.
-
-