Package org.orekit.files.ccsds.ndm
Class NdmParser
java.lang.Object
org.orekit.files.ccsds.utils.parsing.AbstractMessageParser<Ndm>
org.orekit.files.ccsds.ndm.NdmParser
- All Implemented Interfaces:
MessageParser<Ndm>
A parser for the CCSDS NDM (Navigation Data Message).
- Since:
- 11.0
- Author:
- Luc Maisonobe
-
Constructor Summary
ConstructorsConstructorDescriptionNdmParser(ParserBuilder builder, Function<ParseToken, List<ParseToken>>[] filters) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddComment(String comment) Add comment.build()Build the file from parsed entries.Get the non-default token builders for special XML elements.voidreset(FileFormat fileFormat) Reset parser to initial state before parsing.Methods inherited from class org.orekit.files.ccsds.utils.parsing.AbstractMessageParser
anticipateNext, getCurrent, getFileFormat, getFormatVersionKey, parseMessage, process, reset, setEndTagSeen, setFallback, wasEndTagSeen
-
Constructor Details
-
NdmParser
Simple constructor.Calling this constructor directly is not recommended. Users should rather use
parserBuilder.buildNdmParser().- Parameters:
builder- builder for the constituents parsersfilters- filters to apply to parse tokens- Since:
- 12.0
-
-
Method Details
-
getSpecialXmlElementsBuilders
Get the non-default token builders for special XML elements.- Specified by:
getSpecialXmlElementsBuildersin interfaceMessageParser<Ndm>- Overrides:
getSpecialXmlElementsBuildersin classAbstractMessageParser<Ndm>- Returns:
- map of token builders for special XML elements (keyed by XML element name)
-
reset
Reset parser to initial state before parsing.- Parameters:
fileFormat- format of the file ready to be parsed
-
build
Build the file from parsed entries.- Returns:
- parsed file
-
addComment
Add comment.Comments are accepted only at start. Once other content is stored in the same section, comments are refused.
- Parameters:
comment- comment line- Returns:
- true if comment was accepted
-