Interface Variable

All Superinterfaces:
Serializable, Type, Visitable
All Known Implementing Classes:
Varies

public interface Variable extends Type
Interface type for Varies
  • Method Details

    • getData

      Returns the data contained by this instance of Variable. Returns a GenericPrimitive unless setData(Type) has been called.
      Returns:
      the data contained by this instance of Variable
    • setData

      void setData(Type data) throws DataTypeException
      Sets the data contained by this instance of Variable. If a data object already exists, then its values are copied to the incoming data object before the old one is replaced. For example, if getData() returns an ST with the value "19901012" and you call setData(new DT()), then subsequent calls to getData() will return the same DT, with the value set to "19901012".
      Parameters:
      data - the data to be set for this Varies instance
      Throws:
      DataTypeException - if the data could not be set