Class TunableParserForXml<D>

java.lang.Object
eu.bandm.tools.util2.TunableParser<D>
eu.bandm.tools.util2.TunableParserForXml<D>
Direct Known Subclasses:
TunedDTDParser

public abstract class TunableParserForXml<D> extends TunableParser<D>
Parser skeleton which defines the most important character set constants for XML parsing.
  • Field Details

    • versionNumSet

      public static final TunableParser.CharSet versionNumSet
      Chars which can appear in an XML version declaration.
    • asciiLetterSet

      public static final TunableParser.CharSet asciiLetterSet
      The letters in ascii.
    • encNameSet

      public static final TunableParser.CharSet encNameSet
      Chars which can appear in an XML encoding name.
    • sSet

      public static final TunableParser.CharSet sSet
      Chars which are the alternatives for XML whitespace including the starting character of parameter enttities.
    • sNoPESet

      public static final TunableParser.CharSet sNoPESet
      Chars which are the alternatives for XML whitespace, excluding parameter entities.
    • initialSet

      public static final TunableParser.CharSet initialSet
      Chars which can appear as the initial character of an identifier, as defined by "Name" nonterminal of the XML standard.
    • nameSet

      public static final TunableParser.CharSet nameSet
      Chars which can appear as subsequent characters of an identifier, as defined by "Name" nonterminal of the XML standard.
    • pubidCharSet

      public static final TunableParser.ExtensionalCharSet pubidCharSet
      Chars which can appear in an XML "public identifier".
    • hexDigitSet

      public static final TunableParser.ExtensionalCharSet hexDigitSet
      Hexdecimal digits, in both lower and upper case.
    • decDigitSet

      public static final TunableParser.ExtensionalCharSet decDigitSet
      Decimal digits.
    • prefix_PE

      public static final char prefix_PE
      See Also:
    • prefix_GE

      public static final char prefix_GE
      See Also:
    • stringconstant_INCLUDE

      public static final String stringconstant_INCLUDE
      See Also:
    • stringconstant_IGNORE

      public static final String stringconstant_IGNORE
      See Also:
  • Constructor Details

    • TunableParserForXml

      public TunableParserForXml(Reader in, D id, MessageReceiver<? super SimpleMessage<D>> msg)
      Constructor.
      Parameters:
      in - source to parse
      id - id of toplevel document, for locations in messages
      msg - message channel
  • Method Details

    • lookahead_pe

      public boolean lookahead_pe()
    • prefixedEntityName

      public static final String prefixedEntityName(String name, boolean parameter)
      For use as keys into maps. Model disjoint namespaces by pre-pending ampersand.