Class PythonMessageParser<T>
- java.lang.Object
-
- org.orekit.files.ccsds.utils.lexical.PythonMessageParser<T>
-
- All Implemented Interfaces:
MessageParser<T>
public class PythonMessageParser<T> extends Object implements MessageParser<T>
-
-
Constructor Summary
Constructors Constructor Description PythonMessageParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
build()
Build the file from parsed entries.void
finalize()
Part of JCC Python interface to objectFileFormat
getFileFormat()
Get the file format of the last message parsed.String
getFormatVersionKey()
Get the key for format version.Map<String,XmlTokenBuilder>
getSpecialXmlElementsBuilders()
Get the non-default token builders for special XML elements.T
parseMessage(DataSource source)
Parse a data source.void
process(ParseToken token)
Process a parse token.void
pythonDecRef()
Part of JCC Python interface to objectlong
pythonExtension()
Part of JCC Python interface to objectvoid
pythonExtension(long pythonObject)
Part of JCC Python interface to objectvoid
reset(FileFormat fileFormat)
Reset parser to initial state before parsing.
-
-
-
Method Detail
-
pythonExtension
public void pythonExtension(long pythonObject)
Part of JCC Python interface to object
-
pythonExtension
public long pythonExtension()
Part of JCC Python interface to object
-
finalize
public void finalize() throws Throwable
Part of JCC Python interface to object
-
pythonDecRef
public void pythonDecRef()
Part of JCC Python interface to object
-
parseMessage
public T parseMessage(DataSource source)
Parse a data source.- Specified by:
parseMessage
in interfaceMessageParser<T>
- Parameters:
source
- data source to parse- Returns:
- parsed file
-
getFormatVersionKey
public String getFormatVersionKey()
Get the key for format version.- Specified by:
getFormatVersionKey
in interfaceMessageParser<T>
- Returns:
- format version key
-
getSpecialXmlElementsBuilders
public Map<String,XmlTokenBuilder> getSpecialXmlElementsBuilders()
Get the non-default token builders for special XML elements.- Specified by:
getSpecialXmlElementsBuilders
in interfaceMessageParser<T>
- Returns:
- map of token builders for special XML elements (keyed by XML element name)
-
reset
public void reset(FileFormat fileFormat)
Reset parser to initial state before parsing.- Specified by:
reset
in interfaceMessageParser<T>
- Parameters:
fileFormat
- format of the file ready to be parsed
-
process
public void process(ParseToken token)
Process a parse token.- Specified by:
process
in interfaceMessageParser<T>
- Parameters:
token
- token to process
-
build
public T build()
Description copied from interface:MessageParser
Build the file from parsed entries.- Specified by:
build
in interfaceMessageParser<T>
- Returns:
- parsed file
-
getFileFormat
public FileFormat getFileFormat()
Description copied from interface:MessageParser
Get the file format of the last message parsed.- Specified by:
getFileFormat
in interfaceMessageParser<T>
- Returns:
- file format of the last message parsed
-
-