Package org.orekit.files.ccsds.section
Enum XmlStructureKey
- java.lang.Object
-
- java.lang.Enum<XmlStructureKey>
-
- org.orekit.files.ccsds.section.XmlStructureKey
-
- All Implemented Interfaces:
Serializable
,Comparable<XmlStructureKey>
public enum XmlStructureKey extends Enum<XmlStructureKey>
Keys forFileFormat.XML
format structure.- Since:
- 11.0
- Author:
- Luc Maisonobe
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
process(ParseToken token, AbstractConstituentParser<?,?,?> parser)
Process an token.static XmlStructureKey
valueOf(String name)
Returns the enum constant of this type with the specified name.static XmlStructureKey[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
body
public static final XmlStructureKey body
Body structure.
-
segment
public static final XmlStructureKey segment
Segment structure.
-
header
public static final XmlStructureKey header
Header structure.
-
metadata
public static final XmlStructureKey metadata
XML metadata structure.
-
data
public static final XmlStructureKey data
XML data structure.
-
-
Method Detail
-
values
public static XmlStructureKey[] 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 (XmlStructureKey c : XmlStructureKey.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XmlStructureKey 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, AbstractConstituentParser<?,?,?> parser)
Process an token.- Parameters:
token
- token to processparser
- file parser- Returns:
- true of token was accepted
-
-