Class UserDefinedXmlTokenBuilder
- java.lang.Object
-
- org.orekit.files.ccsds.utils.lexical.UserDefinedXmlTokenBuilder
-
- All Implemented Interfaces:
XmlTokenBuilder
public class UserDefinedXmlTokenBuilder extends Object implements XmlTokenBuilder
Builder for user-defined parameters.User-defined elements are of the form:
<USER_DEFINED parameter="SOME_PARAMETER_NAME">value</USER_DEFINED>
This
token builder
will generate a singleparse token
from this root element with name set to "SOME_PARAMETER_NAME", type set toTokenType.ENTRY
and content set tovalue
.- Since:
- 11.0
- Author:
- Luc Maisonobe
-
-
Constructor Summary
Constructors Constructor Description UserDefinedXmlTokenBuilder()
Empty constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ParseToken>
buildTokens(boolean startTag, boolean isLeaf, String qName, String content, Map<String,String> attributes, int lineNumber, String fileName)
Create a list of parse tokens.
-
-
-
Method Detail
-
buildTokens
public List<ParseToken> buildTokens(boolean startTag, boolean isLeaf, String qName, String content, Map<String,String> attributes, int lineNumber, String fileName)
Create a list of parse tokens.- Specified by:
buildTokens
in interfaceXmlTokenBuilder
- Parameters:
startTag
- if true we are parsing the start tag from an XML elementisLeaf
- if true and startTag is false, we are processing the end tag of a leaf XML elementqName
- element qualified namecontent
- element contentattributes
- element attributeslineNumber
- number of the line in the CCSDS data messagefileName
- name of the file- Returns:
- list of parse tokens
-
-