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
Modifier and TypeClassDescriptionstatic class
BaseDataType.Builder<T extends BaseDataType.Builder<T>>
-
Field Summary
Fields inherited from class org.yamcs.xtce.NameDescription
ancillaryData, name, PATH_SEPARATOR, qualifiedName, xtceAliasSet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionparseStringForRawValue
(String stringValue) parses the string into a java object according to the parameter encodingprotected abstract void
setInitialValue
(Object initialValue) protected void
setInitialValue
(BaseDataType.Builder<?> builder) void
setUnitSet
(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, setShortDescription
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:DataType
Converts a value to a string. -
parseStringForRawValue
Description copied from interface:DataType
parses the string into a java object according to the parameter encoding- Specified by:
parseStringForRawValue
in interfaceDataType
- Returns:
- a java object representation
-