Package org.yamcs.xtce
Class BooleanDataType
- java.lang.Object
-
- org.yamcs.xtce.NameDescription
-
- org.yamcs.xtce.BaseDataType
-
- org.yamcs.xtce.BooleanDataType
-
- All Implemented Interfaces:
Serializable,DataType
- Direct Known Subclasses:
BooleanArgumentType,BooleanParameterType
public class BooleanDataType extends BaseDataType
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBooleanDataType.Builder<T extends BooleanDataType.Builder<T>>
-
Field Summary
-
Fields inherited from class org.yamcs.xtce.BaseDataType
encoding
-
Fields inherited from class org.yamcs.xtce.NameDescription
ancillaryData, name, PATH_SEPARATOR, qualifiedName, xtceAliasSet
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBooleanDataType(BooleanDataType t)protectedBooleanDataType(BooleanDataType.Builder<?> builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanconvertType(Object value)Converts to the canonical (boxed) java representation of this type.BooleangetInitialValue()Get the initial value if anyStringgetOneStringValue()StringgetTypeAsString()String which represents the type.Yamcs.Value.TypegetValueType()Return the expected Value type of an engineering value conforming to this XTCE data typeStringgetZeroStringValue()protected voidsetInitialValue(Object initialValue)StringtoString()StringtoString(Object o)Converts a value to a string.-
Methods inherited from class org.yamcs.xtce.BaseDataType
getEncoding, getUnitSet, parseStringForRawValue, setInitialValue, setUnitSet
-
Methods inherited from class org.yamcs.xtce.NameDescription
addAlias, addAliases, addAncillaryData, getAlias, getAliasSet, getAncillaryData, getLongDescription, getName, getName, getOpsName, getQualifiedName, getShortDescription, getSubsystemName, getSubsystemName, qualifiedName, setAliasSet, setAncillaryData, setLongDescription, setName, setQualifiedName, setShortDescription
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.yamcs.xtce.DataType
getLongDescription, getName, getQualifiedName, getShortDescription
-
-
-
-
Constructor Detail
-
BooleanDataType
protected BooleanDataType(BooleanDataType.Builder<?> builder)
-
BooleanDataType
protected BooleanDataType(BooleanDataType t)
-
-
Method Detail
-
setInitialValue
protected void setInitialValue(Object initialValue)
- Specified by:
setInitialValuein classBaseDataType
-
getInitialValue
public Boolean getInitialValue()
Description copied from interface:DataTypeGet the initial value if any- Returns:
-
convertType
public Boolean convertType(Object value)
Description copied from interface:DataTypeConverts to the canonical (boxed) java representation of this type.For example, if
valueis aString, 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:DataTypeConverts a value to a string.- Specified by:
toStringin interfaceDataType- Overrides:
toStringin classBaseDataType- Returns:
-
getOneStringValue
public String getOneStringValue()
-
getZeroStringValue
public String getZeroStringValue()
-
getValueType
public Yamcs.Value.Type getValueType()
Description copied from interface:DataTypeReturn the expected Value type of an engineering value conforming to this XTCE data type- Returns:
-
getTypeAsString
public String getTypeAsString()
Description copied from interface:DataTypeString which represents the type. This string will be presented to the users of the system.- Returns:
-
-