Class StringValue
- java.lang.Object
-
- net.ssehub.easy.varModel.model.values.Value
-
- net.ssehub.easy.varModel.model.values.BasisDatatypeValue
-
- net.ssehub.easy.varModel.model.values.StringValue
-
public class StringValue extends BasisDatatypeValue
This class holds the value for the string.- Author:
- lueder, Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringvalue
-
Constructor Summary
Constructors Modifier Constructor Description protectedStringValue()Argumentless constructor.protectedStringValue(java.lang.String value)Constructor.
-
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)java.lang.StringgetValue()Getter for the value.inthashCode()booleanisConfigured()Abstract Method to check whether a value is configured.voidsetValue(java.lang.Object value)Setter for the value.-
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
-
-
-
-
Method Detail
-
setValue
public void setValue(java.lang.Object value) throws ValueDoesNotMatchTypeExceptionSetter 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
public java.lang.String getValue()
Getter for the value.- Overrides:
getValuein classBasisDatatypeValue- Returns:
- the saved String
-
accept
public void accept(IValueVisitor visitor)
Description copied from class:ValueAbstract accept method.
-
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
-
-