Package org.orekit.files.ccsds.section
Enum HeaderKey
- java.lang.Object
-
- java.lang.Enum<HeaderKey>
-
- org.orekit.files.ccsds.section.HeaderKey
-
- All Implemented Interfaces:
Serializable
,Comparable<HeaderKey>
public enum HeaderKey extends Enum<HeaderKey>
Keywords allowed inHeader
.- Since:
- 11.0
- Author:
- Luc Maisonobe
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLASSIFICATION
Classification.COMMENT
Header comment.CREATION_DATE
Creation date.MESSAGE_ID
ID that uniquely identifies a message from a given originator.ORIGINATOR
Creating agency or operator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
process(ParseToken token, ContextBinding context, Header header)
Process an token.static HeaderKey
valueOf(String name)
Returns the enum constant of this type with the specified name.static HeaderKey[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COMMENT
public static final HeaderKey COMMENT
Header comment.
-
CLASSIFICATION
public static final HeaderKey CLASSIFICATION
Classification.- Since:
- 12.0
-
CREATION_DATE
public static final HeaderKey CREATION_DATE
Creation date.
-
ORIGINATOR
public static final HeaderKey ORIGINATOR
Creating agency or operator.
-
MESSAGE_ID
public static final HeaderKey MESSAGE_ID
ID that uniquely identifies a message from a given originator.
-
-
Method Detail
-
values
public static HeaderKey[] 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 (HeaderKey c : HeaderKey.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HeaderKey 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
-
process
public boolean process(ParseToken token, ContextBinding context, Header header)
Process an token.- Parameters:
token
- token to processcontext
- context bindingheader
- header to fill- Returns:
- true of token was accepted
-
-