Class RegularXmlTokenBuilder

  • All Implemented Interfaces:
    XmlTokenBuilder

    public class RegularXmlTokenBuilder
    extends Object
    implements XmlTokenBuilder
    Regular builder using XML elements names and content for tokens.

    Each tag generates exactly one token, either a START, or STOP token without content for non-leaf elements, or a ENTRY token with content for leaf elements.

    Since:
    11.0
    Author:
    Luc Maisonobe
    • Constructor Detail

      • RegularXmlTokenBuilder

        public RegularXmlTokenBuilder()
        Simple constructor.
    • 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 interface XmlTokenBuilder
        Parameters:
        startTag - if true we are parsing the start tag from an XML element
        isLeaf - if true and startTag is false, we are processing the end tag of a leaf XML element
        qName - element qualified name
        content - element content
        attributes - element attributes
        lineNumber - number of the line in the CCSDS data message
        fileName - name of the file
        Returns:
        list of parse tokens