Class BaseDataType

All Implemented Interfaces:
Serializable, DataType
Direct Known Subclasses:
BaseTimeDataType, BinaryDataType, BooleanDataType, EnumeratedDataType, NumericDataType, StringDataType

public abstract class BaseDataType extends NameDescription implements DataType
Base class for all simple XTCE types - tha is all types except AggregateDataType and ArrayDataType
See Also:
  • Field Details

  • Constructor Details

    • BaseDataType

      protected BaseDataType(BaseDataType t)
      creates a shallow copy of t
      Parameters:
      t -
  • Method Details

    • getEncoding

      public DataEncoding getEncoding()
    • getUnitSet

      public List<UnitType> getUnitSet()
    • setUnitSet

      public void setUnitSet(List<UnitType> unitSet)
    • setInitialValue

      protected void setInitialValue(BaseDataType.Builder<?> builder)
    • setInitialValue

      protected abstract void setInitialValue(Object initialValue)
    • toString

      public String toString(Object o)
      Description copied from interface: DataType
      Converts a value to a string.
      Specified by:
      toString in interface DataType
      Returns:
    • parseStringForRawValue

      public Object parseStringForRawValue(String stringValue)
      Description copied from interface: DataType
      parses the string into a java object according to the parameter encoding
      Specified by:
      parseStringForRawValue in interface DataType
      Returns:
      a java object representation