public interface XmlTokenBuilder
ParseToken
from XML elements.
The regular handling of regular XML elements is to used the element
name as the token name, the element content as the token content and
the "units" attribute for the units. In some cases however the token
name should be extracted from attributes, and sometimes even the
content. This interface allows to define all these behaviors, by
providing specialized builders to the lexical analyzer when it calls
their getSpecialXmlElementsHandlers
method.
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.
|
List<ParseToken> buildTokens(boolean startTag, String qName, String content, Attributes attributes, int lineNumber, String fileName)
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-2021 CS GROUP. All rights reserved.