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
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBooleanDataType.Builder<T extends BooleanDataType.Builder<T>> -
Field Summary
FieldsFields inherited from class org.yamcs.xtce.BaseDataType
encodingFields inherited from class org.yamcs.xtce.NameDescription
ancillaryData, name, PATH_SEPARATOR, qualifiedName, xtceAliasSet -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedBooleanDataType(BooleanDataType.Builder<?> builder) -
Method Summary
Modifier and TypeMethodDescriptionconvertType(Object value) Converts to the canonical (boxed) java representation of this type.Get the initial value if anyString which represents the type.org.yamcs.protobuf.Yamcs.Value.TypeReturn the expected Value type of an engineering value conforming to this XTCE data typeprotected voidsetInitialValue(Object initialValue) toString()Converts a value to a string.Methods inherited from class org.yamcs.xtce.BaseDataType
getEncoding, getUnitSet, parseStringForRawValue, setInitialValue, setUnitSetMethods 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, setShortDescriptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.yamcs.xtce.DataType
getLongDescription, getName, getQualifiedName, getShortDescription
-
Field Details
-
DEFAULT_ONE_STRING_VALUE
- See Also:
-
DEFAULT_ZERO_STRING_VALUE
- See Also:
-
-
Constructor Details
-
BooleanDataType
-
BooleanDataType
-
-
Method Details
-
setInitialValue
- Specified by:
setInitialValuein classBaseDataType
-
getInitialValue
Description copied from interface:DataTypeGet the initial value if any- Returns:
-
convertType
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
Description copied from interface:DataTypeConverts a value to a string.- Specified by:
toStringin interfaceDataType- Overrides:
toStringin classBaseDataType- Returns:
-
getOneStringValue
-
getZeroStringValue
-
getValueType
public org.yamcs.protobuf.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
Description copied from interface:DataTypeString which represents the type. This string will be presented to the users of the system.- Returns:
-
toString
-