Package eu.bandm.tools.rdparser
Class TunableParserForXml<D>
java.lang.Object
eu.bandm.tools.rdparser.TunableParser<D>
eu.bandm.tools.rdparser.TunableParserForXml<D>
- Direct Known Subclasses:
TunedDTDParser
Parser skeleton which defines the most important character set constants
for XML parsing.
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.bandm.tools.rdparser.TunableParser
TunableParser.CharSet, TunableParser.ExtensionalCharSet
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TunableParser.CharSet
The letters in ascii.static final TunableParser.ExtensionalCharSet
Decimal digits.static final TunableParser.CharSet
Chars which can appear in an XML 1.0 encoding name.static final TunableParser.ExtensionalCharSet
Hexdecimal digits, in both lower and upper case.static final TunableParser.CharSet
Chars which can appear as the initial character of an identifier, as defined by "Name" nonterminal of the XML 1.0 standard.static final TunableParser.CharSet
Chars which can appear as subsequent characters of an identifier, as defined by "Name" nonterminal of the XML 1.0 standard.static final char
Prefix for the definition and reference of "general entities".static final char
Prefix for the definition and reference of "parsed entities".static final TunableParser.ExtensionalCharSet
Chars which can appear in an XML 1.0 "public identifier".static final TunableParser.CharSet
Chars which are the alternatives for XML whitespace, excluding parameter entities.static final TunableParser.CharSet
Chars which are the alternatives for XML 1.0 whitespace including the starting character of parameter enttities.static final String
Evidentstatic final String
Evidentstatic final TunableParser.CharSet
Chars which can appear in an XML version declaration.Fields inherited from class eu.bandm.tools.rdparser.TunableParser
base, in, messageReceiver, topleveldocumentid
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TunableParserForXml
(Reader in, D id, MessageReceiver<? super SimpleMessage<D>> msg) Only Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether the next two characteds are the start of a "parsed entity", that is the prefix char and one character which starts a valid "name".static final String
prefixedEntityName
(String name, boolean parameter) Pair of entity name and entiy kind, for use as keys into maps.Methods inherited from class eu.bandm.tools.rdparser.TunableParser
consume, eof, error, failure, fatalError, getMessageReceiver, lookahead, lookahead, lookahead, lookahead, lookahead, lookahead_eof, match, match, match, match, matchahead, matchahead, matchahead, matchUpto, matchUpto, readExternal, setBase, setMessageReceiver, skipUpto, warning, word
-
Field Details
-
versionNumSet
Chars which can appear in an XML version declaration. -
asciiLetterSet
The letters in ascii. -
encNameSet
Chars which can appear in an XML 1.0 encoding name. -
sSet
Chars which are the alternatives for XML 1.0 whitespace including the starting character of parameter enttities. -
sNoPESet
Chars which are the alternatives for XML whitespace, excluding parameter entities. -
initialSet
Chars which can appear as the initial character of an identifier, as defined by "Name" nonterminal of the XML 1.0 standard. -
nameSet
Chars which can appear as subsequent characters of an identifier, as defined by "Name" nonterminal of the XML 1.0 standard. -
pubidCharSet
Chars which can appear in an XML 1.0 "public identifier". -
hexDigitSet
Hexdecimal digits, in both lower and upper case. -
decDigitSet
Decimal digits. -
prefix_PE
public static final char prefix_PEPrefix for the definition and reference of "parsed entities". To be used in DTD element definitions and INCLUDE/IGNORE switches.- See Also:
-
prefix_GE
public static final char prefix_GEPrefix for the definition and reference of "general entities". These appear not in the DTD, but in the text body part.- See Also:
-
stringconstant_INCLUDE
Evident- See Also:
-
stringconstant_IGNORE
Evident- See Also:
-
-
Constructor Details
-
TunableParserForXml
Only Constructor.- Parameters:
in
- source to parseid
- id of toplevel document, for locations in messagesmsg
- message channel
-
-
Method Details
-
lookahead_pe
public boolean lookahead_pe()Whether the next two characteds are the start of a "parsed entity", that is the prefix char and one character which starts a valid "name". -
prefixedEntityName
Pair of entity name and entiy kind, for use as keys into maps. The disjoint namespaces of PE and GE are realizhed by pre-pending ampersand or percent.
-