Module swim.xml
Package swim.xml

Class XmlParser<I,​V>

  • Direct Known Subclasses:
    XmlStructureParser

    public abstract class XmlParser<I,​V>
    extends Object
    Factory for constructing XML parsers and parse trees.
    • Constructor Detail

      • XmlParser

        public XmlParser()
    • Method Detail

      • item

        public abstract I item​(V value)
      • attribute

        public abstract I attribute​(String name,
                                    V value)
      • attributes

        public abstract V attributes()
      • xml

        public abstract I xml​(V attributes)
      • doctype

        public abstract I doctype​(String name)
      • doctype

        public abstract I doctype​(String name,
                                  String systemId)
      • tag

        public abstract I tag​(String name)
      • tag

        public abstract I tag​(String name,
                              V attributes)
      • comment

        public abstract I comment​(String value)
      • textOutput

        public abstract Output<V> textOutput()
      • commentOutput

        public Output<I> commentOutput()
      • attributesBuilder

        public abstract Builder<I,​V> attributesBuilder()
      • tagBuilder

        public abstract Builder<I,​V> tagBuilder​(String tag,
                                                      V attributes)
      • documentBuilder

        public abstract Builder<I,​V> documentBuilder()
      • fragmentBuilder

        public abstract Builder<I,​V> fragmentBuilder()
      • expandEntityRef

        public boolean expandEntityRef​(Output<?> output,
                                       String name)
      • parseAttributeValue

        public Parser<V> parseAttributeValue​(Input input)
      • parseDocument

        public Parser<V> parseDocument​(Input input)
      • parseFragment

        public Parser<V> parseFragment​(Input input)
      • parseXmlDecl

        public Parser<I> parseXmlDecl​(Input input)
      • parseXmlDeclRest

        public Parser<I> parseXmlDeclRest​(Input input)
      • parseDoctypeDecl

        public Parser<I> parseDoctypeDecl​(Input input)
      • parseDoctypeDeclRest

        public Parser<I> parseDoctypeDeclRest​(Input input)
      • parseMarkupDecl

        public Parser<V> parseMarkupDecl​(Input input)
      • parseTagStart

        public Parser<V> parseTagStart​(Input input)
      • parseTagStartRest

        public Parser<V> parseTagStartRest​(Input input)
      • parseCDataSection

        public Parser<?> parseCDataSection​(Input input,
                                           Output<?> text)
      • parseCDataSectionRest

        public Parser<?> parseCDataSectionRest​(Input input,
                                               Output<?> text)
      • parseComment

        public Parser<I> parseComment​(Input input)
      • parseCommentRest

        public Parser<I> parseCommentRest​(Input input)
      • parsePIRest

        public Parser<I> parsePIRest​(Input input)
      • documentParser

        public Parser<V> documentParser()
      • parseDocumentString

        public V parseDocumentString​(String string)
      • parseFragmentString

        public V parseFragmentString​(String string)