Class BooleanDataType

All Implemented Interfaces:
Serializable, DataType
Direct Known Subclasses:
BooleanArgumentType, BooleanParameterType

public class BooleanDataType extends BaseDataType
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • setInitialValue

      protected void setInitialValue(Object initialValue)
      Specified by:
      setInitialValue in class BaseDataType
    • getInitialValue

      public Boolean getInitialValue()
      Description copied from interface: DataType
      Get the initial value if any
      Returns:
    • convertType

      public Boolean convertType(Object value)
      Description copied from interface: DataType
      Converts to the canonical (boxed) java representation of this type.

      For example, if value is a String, an integer-like DataType should parse the String value, and return an Integer result.

      Parameters:
      value - value to be converted, use boxed primitive values.
      Returns:
      The preferred java object representation
    • toString

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

      public String getOneStringValue()
    • getZeroStringValue

      public String getZeroStringValue()
    • getValueType

      public Yamcs.Value.Type getValueType()
      Description copied from interface: DataType
      Return the expected Value type of an engineering value conforming to this XTCE data type
      Returns:
    • getTypeAsString

      public String getTypeAsString()
      Description copied from interface: DataType
      String which represents the type. This string will be presented to the users of the system.
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object