Class VersionValue


public class VersionValue extends BasisDatatypeValue
This class holds the value for a version.
Author:
Holger Eichelberger
  • Field Details

    • value

      private net.ssehub.easy.basics.modelManagement.Version value
  • Constructor Details

    • VersionValue

      protected VersionValue(Object value) throws ValueDoesNotMatchTypeException
      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:
      getValue in class BasisDatatypeValue
      Returns:
      the saved int
    • setValue

      public void setValue(Object value) throws ValueDoesNotMatchTypeException
      Description copied from class: Value
      Abstract setValue-method.
      Specified by:
      setValue in class Value
      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: 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
    • accept

      public void accept(IValueVisitor visitor)
      Description copied from class: Value
      Abstract accept method.
      Specified by:
      accept in class Value
      Parameters:
      visitor - The visitor
    • 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