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
This class holds the value for the string.
- Author:
- lueder, Holger Eichelberger
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedArgumentless constructor.protectedStringValue(String value) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IValueVisitor visitor) Abstract accept method.clone()Clones the this value.booleangetValue()Getter for the value.inthashCode()booleanAbstract Method to check whether a value is configured.voidSetter for the value.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
-
-
Constructor Details
-
StringValue
protected StringValue()Argumentless constructor. -
StringValue
Constructor.- Parameters:
value- Value of the Datatype
-
-
Method Details
-
setValue
Setter 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
Getter for the value.- Overrides:
getValuein classBasisDatatypeValue- Returns:
- the saved String
-
accept
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
-
clone
Description copied from class:ValueClones the this value. -
hashCode
public int hashCode() -
equals
-