Package org.yamcs.xtce
Enum StringDataEncoding.SizeType
- java.lang.Object
-
- java.lang.Enum<StringDataEncoding.SizeType>
-
- org.yamcs.xtce.StringDataEncoding.SizeType
-
- All Implemented Interfaces:
Serializable
,Comparable<StringDataEncoding.SizeType>
- Enclosing class:
- StringDataEncoding
public static enum StringDataEncoding.SizeType extends Enum<StringDataEncoding.SizeType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CUSTOM
DataEncoding.getFromBinaryTransformAlgorithm()
will be used to decode the dataFIXED
fixed size has to be specified in theDataEncoding.getSizeInBits()
LEADING_SIZE
Like PASCAL strings, the size of the string is given as an integer at the start of the string.TERMINATION_CHAR
Like C strings, they are terminated with a special string, usually a null character.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringDataEncoding.SizeType
valueOf(String name)
Returns the enum constant of this type with the specified name.static StringDataEncoding.SizeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FIXED
public static final StringDataEncoding.SizeType FIXED
fixed size has to be specified in theDataEncoding.getSizeInBits()
-
TERMINATION_CHAR
public static final StringDataEncoding.SizeType TERMINATION_CHAR
Like C strings, they are terminated with a special string, usually a null character.
-
LEADING_SIZE
public static final StringDataEncoding.SizeType LEADING_SIZE
Like PASCAL strings, the size of the string is given as an integer at the start of the string. SizeTag must be an unsigned Integer
-
CUSTOM
public static final StringDataEncoding.SizeType CUSTOM
DataEncoding.getFromBinaryTransformAlgorithm()
will be used to decode the data
-
-
Method Detail
-
values
public static StringDataEncoding.SizeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StringDataEncoding.SizeType c : StringDataEncoding.SizeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StringDataEncoding.SizeType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-