public class RELAXNGCompReader extends RELAXNGReader
Modifier and Type | Class and Description |
---|---|
static class |
RELAXNGCompReader.StateFactory
creates various State object, which in turn parses grammar.
|
RELAXNGReader.RefExpParseInfo
GrammarReader.BackPatch, GrammarReader.BackwardReferenceMap, GrammarReader.ChainPrefixResolver, GrammarReader.PrefixResolver
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AnnotationNamespace
Namespace URI of RELAX NG DTD compatibility annotation
|
static java.lang.String |
CERR_ANN_CHILD_ELEMENT |
static java.lang.String |
CERR_ANN_INVALID_ATTRIBUTE |
static java.lang.String |
CERR_ANN_MISPLACED |
private java.util.Map |
defaultedAttributes |
private boolean |
inAnnotation |
private LightStack |
lastRNGElement
The local name of the preceding RELAX NG element sibling.
|
currentNamedPattern, datatypeLibURI, directRefernce, ERR_BAD_DATA_VALUE, ERR_BAD_FACET, ERR_INCONSISTENT_COMBINE, ERR_INCONSISTENT_KEY_TYPE, ERR_INFOSET_URI_ATTRIBUTE, ERR_INVALID_PARAMETERS, ERR_MULTIPLE_EXCEPT, ERR_NAKED_INFINITE_ATTRIBUTE_NAMECLASS, ERR_NOT_ABSOLUTE_URI, ERR_REDEFINING_UNDEFINED, ERR_UNDEFINED_DATATYPE_1, ERR_UNDEFINED_KEY, ERR_UNKNOWN_DATATYPE_VOCABULARY_1, ERR_XMLNS_ATTRIBUTE, RELAXNGNamespace, relaxNGSchema4Schema, restrictionChecker
ERR_BAD_COMBINE, ERR_COMBINE_MISSING, ERR_DUPLICATE_DEFINITION, ERR_INTERLEAVED_ANYSTRING, ERR_INTERLEAVED_STRING, ERR_MISSING_CHILD_NAMECLASS, ERR_MORE_THAN_ONE_NAMECLASS, ERR_NONEXISTENT_PARENT_GRAMMAR, ERR_REPEATED_STRING, ERR_SEQUENCED_STRING, ERR_UNDECLARED_PREFIX, ERR_UNDEFINED_PATTERN, ERR_UNKNOWN_DATATYPE_VOCABULARY, grammar, sfactory, targetNamespace, WRN_COMBINE_IGNORED, WRN_OBSOLETED_XMLSCHEMA_NAMSPACE
backwardReference, basePrefixResolver, controller, ERR_BAD_ATTRIBUTE_VALUE, ERR_BAD_TYPE, ERR_CHARACTERS, ERR_CONFLICTING_ATTRIBUTES, ERR_DATATYPE_ALREADY_DEFINED, ERR_DISALLOWED_ATTRIBUTE, ERR_FRAGMENT_IDENTIFIER, ERR_ILLEGAL_FINAL_VALUE, ERR_MALPLACED_ELEMENT, ERR_MISSING_ATTRIBUTE, ERR_MISSING_ATTRIBUTE_2, ERR_MISSING_CHILD_EXPRESSION, ERR_MISSING_CHILD_TYPE, ERR_MISSING_TOPLEVEL, ERR_MORE_THAN_ONE_CHILD_EXPRESSION, ERR_MORE_THAN_ONE_CHILD_TYPE, ERR_RECURSIVE_DATATYPE, ERR_RECURSIVE_INCLUDE, ERR_RUNAWAY_EXPRESSION, ERR_UNDEFINED_DATATYPE, parserFactory, pool, prefixResolver, WRN_DEPRECATED_TYPENAME, WRN_MAYBE_WRONG_NAMESPACE
Constructor and Description |
---|
RELAXNGCompReader(GrammarReaderController controller)
easy-to-use constructor.
|
RELAXNGCompReader(GrammarReaderController controller,
javax.xml.parsers.SAXParserFactory parserFactory,
ExpressionPool pool)
easy-to-use constructor.
|
RELAXNGCompReader(GrammarReaderController controller,
javax.xml.parsers.SAXParserFactory parserFactory,
RELAXNGCompReader.StateFactory stateFactory,
ExpressionPool pool)
full constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addDefaultValue(AttributeExp exp,
java.lang.String value)
note that the specified expression is marked with the default value.
|
void |
endElement(java.lang.String uri,
java.lang.String local,
java.lang.String qname) |
protected TREXGrammar |
getGrammar() |
protected java.lang.String |
localizeMessage(java.lang.String propertyName,
java.lang.Object[] args)
formats localized message with arguments
|
static TREXGrammar |
parse(org.xml.sax.InputSource grammar,
GrammarReaderController controller)
loads RELAX NG pattern.
|
static TREXGrammar |
parse(java.lang.String grammarURL,
GrammarReaderController controller)
loads RELAX NG pattern.
|
void |
startElement(java.lang.String uri,
java.lang.String local,
java.lang.String qname,
org.xml.sax.Attributes atts) |
void |
wrapUp()
performs final wrap-up.
|
createExpressionChildState, createNameClassChildState, endDocument, getCurrentDatatypeLibrary, getDatatypeLibraryFactory, getRefExpParseInfo, getRELAXNGSchema4Schema, getStateFactory, isGrammarElement, parse, parse, resolveDataType, resolveDataTypeLibrary, resolveNamespacePrefix, setDatatypeLibraryFactory, startDocument
getResult, getResultAsGrammar, getTargetNamespace
_parse, addBackPatchJob, addBackPatchJob, combineURI, combineURL, createParserFactory, detectUndefinedOnes, endPrefixMapping, getBackwardCompatibleType, getBaseUri, getCurrentState, getDeclaredLocationOf, getLocator, inputSourceFromLSInput, interceptExpression, isNotation, isUnparsedEntity, iterateInscopeNamespaces, onID, parse, parse, parse, popState, pushState, reportError, reportError, reportError, reportError, reportError, reportError, reportError, reportError, reportWarning, reportWarning, reportWarning, reportWarning, resolveLocation, runBackPatchJob, setDeclaredLocationOf, setDocumentLocator, setLocator, splitQName, startPrefixMapping, switchSource, switchSource, switchSource
characters, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, unparsedEntityDecl, warning
private final java.util.Map defaultedAttributes
public static final java.lang.String AnnotationNamespace
private final LightStack lastRNGElement
private boolean inAnnotation
public static final java.lang.String CERR_ANN_CHILD_ELEMENT
public static final java.lang.String CERR_ANN_MISPLACED
public static final java.lang.String CERR_ANN_INVALID_ATTRIBUTE
public RELAXNGCompReader(GrammarReaderController controller)
public RELAXNGCompReader(GrammarReaderController controller, javax.xml.parsers.SAXParserFactory parserFactory, ExpressionPool pool)
public RELAXNGCompReader(GrammarReaderController controller, javax.xml.parsers.SAXParserFactory parserFactory, RELAXNGCompReader.StateFactory stateFactory, ExpressionPool pool)
public static TREXGrammar parse(java.lang.String grammarURL, GrammarReaderController controller)
RELAXNGGrammar
, but due to the
restriction imposed by Java language, I cannot change the
signature of this method.public static TREXGrammar parse(org.xml.sax.InputSource grammar, GrammarReaderController controller)
RELAXNGGrammar
, but due to the
restriction imposed by Java language, I cannot change the
signature of this method.protected final void addDefaultValue(AttributeExp exp, java.lang.String value)
protected TREXGrammar getGrammar()
getGrammar
in class RELAXNGReader
protected java.lang.String localizeMessage(java.lang.String propertyName, java.lang.Object[] args)
GrammarReader
localizeMessage
in class RELAXNGReader
public void wrapUp()
TREXBaseReader
This method has to be called after the run-away expression check is done.
wrapUp
in class RELAXNGReader
public void startElement(java.lang.String uri, java.lang.String local, java.lang.String qname, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class RELAXNGReader
org.xml.sax.SAXException
public void endElement(java.lang.String uri, java.lang.String local, java.lang.String qname) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class RELAXNGReader
org.xml.sax.SAXException