Package org.yamcs.xtce
Class StringDataType
- java.lang.Object
-
- org.yamcs.xtce.NameDescription
-
- org.yamcs.xtce.BaseDataType
-
- org.yamcs.xtce.StringDataType
-
- All Implemented Interfaces:
Serializable,DataType
- Direct Known Subclasses:
StringArgumentType,StringParameterType
public class StringDataType extends BaseDataType
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStringDataType.Builder<T extends StringDataType.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 protectedStringDataType(StringDataType t)protectedStringDataType(StringDataType.Builder<?> builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetInitialValue()Get the initial value if anyIntegerRangegetSizeRangeInCharacters()StringgetTypeAsString()String which represents the type.Yamcs.Value.TypegetValueType()Return the expected Value type of an engineering value conforming to this XTCE data typeObjectparseString(String stringValue)Used to parse string such as an initial valueprotected voidsetInitialValue(Object initialValue)-
Methods inherited from class org.yamcs.xtce.BaseDataType
getEncoding, getUnitSet, parseStringForRawValue, setInitialValue, toString
-
Methods inherited from class org.yamcs.xtce.NameDescription
addAlias, addAliases, addAncillaryData, getAlias, getAliasSet, getAncillaryData, getLongDescription, getName, getName, getOpsName, getQualifiedName, getShortDescription, getSubsystemName, getSubsystemName, 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
getLongDescription, getName, getShortDescription
-
-
-
-
Constructor Detail
-
StringDataType
protected StringDataType(StringDataType.Builder<?> builder)
-
StringDataType
protected StringDataType(StringDataType t)
-
-
Method Detail
-
setInitialValue
protected void setInitialValue(Object initialValue)
- Specified by:
setInitialValuein classBaseDataType
-
getInitialValue
public String getInitialValue()
Description copied from interface:DataTypeGet the initial value if any- Returns:
-
getSizeRangeInCharacters
public IntegerRange getSizeRangeInCharacters()
-
parseString
public Object parseString(String stringValue)
Description copied from class:BaseDataTypeUsed to parse string such as an initial value- Specified by:
parseStringin interfaceDataType- Specified by:
parseStringin classBaseDataType- Returns:
-
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:
-
-