public class MessageVersionXmlTokenBuilder extends Object implements XmlTokenBuilder
All parsers for CCSDS ADM, ODM and TDM messages need to handle the root level XML element specially. OPM file for example have a root element of the form:
<opm id="CCSDS_OPM_VERS" verion="3.0">
This token builder
will generate two
parse tokens
from this root element:
TokenType.START
and no contentTokenType.ENTRY
and content set to "3.0"Constructor and Description |
---|
MessageVersionXmlTokenBuilder() |
Modifier and Type | Method and Description |
---|---|
List<ParseToken> |
buildTokens(boolean startTag,
String qName,
String content,
Attributes attributes,
int lineNumber,
String fileName)
Create a list of parse tokens.
|
public List<ParseToken> buildTokens(boolean startTag, String qName, String content, Attributes attributes, int lineNumber, String fileName)
buildTokens
in interface XmlTokenBuilder
startTag
- if true we are parsing the start tag from an XML elementqName
- element qualified namecontent
- element contentattributes
- element attributeslineNumber
- number of the line in the CCSDS data messagefileName
- name of the fileCopyright © 2002-2023 CS GROUP. All rights reserved.