Class StringValue


public class StringValue extends BasisDatatypeValue
This class holds the value for the string.
Author:
lueder, Holger Eichelberger
  • Field Details

    • value

      private String value
  • Constructor Details

    • StringValue

      protected StringValue()
      Argumentless constructor.
    • StringValue

      protected StringValue(String value)
      Constructor.
      Parameters:
      value - Value of the Datatype
  • Method Details

    • setValue

      public void setValue(Object value) throws ValueDoesNotMatchTypeException
      Setter for the value.
      Specified by:
      setValue in class Value
      Parameters:
      value - Value of the Datatype
      Throws:
      ValueDoesNotMatchTypeException - if the given value does not match this type
    • getValue

      public String getValue()
      Getter for the value.
      Overrides:
      getValue in class BasisDatatypeValue
      Returns:
      the saved String
    • accept

      public void accept(IValueVisitor visitor)
      Description copied from class: Value
      Abstract accept method.
      Specified by:
      accept in class Value
      Parameters:
      visitor - The visitor
    • isConfigured

      public boolean isConfigured()
      Description copied from class: Value
      Abstract Method to check whether a value is configured.
      Specified by:
      isConfigured in class Value
      Returns:
      true = it is configured / false = it is not
    • clone

      public Value clone()
      Description copied from class: Value
      Clones the this value.
      Overrides:
      clone in class Value
      Returns:
      the clone of the value
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Value
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Value