Package org.yamcs.xtce
Class BaseDataType
java.lang.Object
org.yamcs.xtce.NameDescription
org.yamcs.xtce.BaseDataType
- All Implemented Interfaces:
Serializable,DataType
- Direct Known Subclasses:
BaseTimeDataType,BinaryDataType,BooleanDataType,EnumeratedDataType,NumericDataType,StringDataType
Base class for all simple XTCE types - tha is all types except
AggregateDataType and ArrayDataType- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBaseDataType.Builder<T extends BaseDataType.Builder<T>> -
Field Summary
FieldsFields inherited from class org.yamcs.xtce.NameDescription
ancillaryData, name, PATH_SEPARATOR, qualifiedName, xtceAliasSet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseStringForRawValue(String stringValue) parses the string into a java object according to the parameter encodingprotected abstract voidsetInitialValue(Object initialValue) protected voidsetInitialValue(BaseDataType.Builder<?> builder) voidsetUnitSet(List<UnitType> unitSet) Converts a value to a string.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, setShortDescriptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.yamcs.xtce.DataType
convertType, getInitialValue, getLongDescription, getName, getQualifiedName, getShortDescription, getTypeAsString, getValueType
-
Field Details
-
encoding
-
-
Constructor Details
-
BaseDataType
creates a shallow copy of t- Parameters:
t-
-
-
Method Details
-
getEncoding
-
getUnitSet
-
setUnitSet
-
setInitialValue
-
setInitialValue
-
toString
Description copied from interface:DataTypeConverts a value to a string. -
parseStringForRawValue
Description copied from interface:DataTypeparses the string into a java object according to the parameter encoding- Specified by:
parseStringForRawValuein interfaceDataType- Returns:
- a java object representation
-