T
- type of the fileP
- type of the parserpublic abstract class AbstractConstituentParser<T extends NdmConstituent<?,?>,P extends AbstractConstituentParser<T,?>> extends AbstractMessageParser<T>
Note than starting with Orekit 11.0, CCSDS message parsers are
mutable objects that gather the data being parsed, until the
message is complete and the parseMessage
method has returned. This implies that parsers
should not be used in a multi-thread context. The recommended
way to use parsers is to either dedicate one parser for each message
and drop it afterwards, or to use a single-thread loop.
Modifier | Constructor and Description |
---|---|
protected |
AbstractConstituentParser(String root,
String formatVersionKey,
IERSConventions conventions,
boolean simpleEOP,
DataContext dataContext,
ParsedUnitsBehavior parsedUnitsBehavior)
Complete constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
finalizeData()
Finalize data after parsing.
|
abstract boolean |
finalizeHeader()
Finalize header after parsing.
|
abstract boolean |
finalizeMetadata()
Finalize metadata after parsing.
|
IERSConventions |
getConventions()
Get IERS conventions.
|
DataContext |
getDataContext()
Get the data context used for getting frames, time scales, and celestial bodies.
|
abstract Header |
getHeader()
Get file header to fill.
|
ParsedUnitsBehavior |
getParsedUnitsBehavior()
Get the behavior to adopt for handling parsed units.
|
abstract boolean |
inData()
Acknowledge data parsing has started.
|
abstract boolean |
inHeader()
Acknowledge header parsing has started.
|
abstract boolean |
inMetadata()
Acknowledge metada parsing has started.
|
boolean |
isSimpleEOP()
Get EOP interpolation method.
|
abstract boolean |
prepareData()
Prepare data for parsing.
|
abstract boolean |
prepareHeader()
Prepare header for parsing.
|
abstract boolean |
prepareMetadata()
Prepare metadata for parsing.
|
anticipateNext, getCurrent, getFileFormat, getFormatVersionKey, getSpecialXmlElementsBuilders, parseMessage, process, reset, setEndTagSeen, setFallback, wasEndTagSeen
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
build, reset
protected AbstractConstituentParser(String root, String formatVersionKey, IERSConventions conventions, boolean simpleEOP, DataContext dataContext, ParsedUnitsBehavior parsedUnitsBehavior)
root
- root element for XML filesformatVersionKey
- key for format versionconventions
- IERS ConventionssimpleEOP
- if true, tidal effects are ignored when interpolating EOPdataContext
- used to retrieve frames and time scalesparsedUnitsBehavior
- behavior to adopt for handling parsed unitspublic ParsedUnitsBehavior getParsedUnitsBehavior()
public IERSConventions getConventions()
public boolean isSimpleEOP()
public DataContext getDataContext()
public abstract Header getHeader()
public abstract boolean prepareHeader()
public abstract boolean inHeader()
public abstract boolean finalizeHeader()
public abstract boolean prepareMetadata()
public abstract boolean inMetadata()
public abstract boolean finalizeMetadata()
public abstract boolean prepareData()
public abstract boolean inData()
public abstract boolean finalizeData()
Copyright © 2002-2023 CS GROUP. All rights reserved.