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.RefExpParseInfoGrammarReader.BackPatch, GrammarReader.BackwardReferenceMap, GrammarReader.ChainPrefixResolver, GrammarReader.PrefixResolver| Modifier and Type | Field and Description |
|---|---|
static String |
AnnotationNamespace
Namespace URI of RELAX NG DTD compatibility annotation
|
static String |
CERR_ANN_CHILD_ELEMENT |
static String |
CERR_ANN_INVALID_ATTRIBUTE |
static String |
CERR_ANN_MISPLACED |
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, restrictionCheckerERR_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_NAMSPACEbackwardReference, 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,
SAXParserFactory parserFactory,
ExpressionPool pool)
easy-to-use constructor.
|
RELAXNGCompReader(GrammarReaderController controller,
SAXParserFactory parserFactory,
RELAXNGCompReader.StateFactory stateFactory,
ExpressionPool pool)
full constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDefaultValue(AttributeExp exp,
String value)
note that the specified expression is marked with the default value.
|
void |
endElement(String uri,
String local,
String qname) |
protected TREXGrammar |
getGrammar() |
protected String |
localizeMessage(String propertyName,
Object[] args)
formats localized message with arguments
|
static TREXGrammar |
parse(InputSource grammar,
GrammarReaderController controller)
loads RELAX NG pattern.
|
static TREXGrammar |
parse(String grammarURL,
GrammarReaderController controller)
loads RELAX NG pattern.
|
void |
startElement(String uri,
String local,
String qname,
Attributes atts) |
void |
wrapUp()
performs final wrap-up.
|
createExpressionChildState, createNameClassChildState, endDocument, getCurrentDatatypeLibrary, getDatatypeLibraryFactory, getRefExpParseInfo, getRELAXNGSchema4Schema, getStateFactory, isGrammarElement, parse, parse, resolveDataType, resolveDataTypeLibrary, resolveNamespacePrefix, setDatatypeLibraryFactory, startDocumentgetResult, 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, switchSourcecharacters, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, unparsedEntityDecl, warningpublic static final String AnnotationNamespace
public static final String CERR_ANN_CHILD_ELEMENT
public static final String CERR_ANN_MISPLACED
public static final String CERR_ANN_INVALID_ATTRIBUTE
public RELAXNGCompReader(GrammarReaderController controller)
public RELAXNGCompReader(GrammarReaderController controller, SAXParserFactory parserFactory, ExpressionPool pool)
public RELAXNGCompReader(GrammarReaderController controller, SAXParserFactory parserFactory, RELAXNGCompReader.StateFactory stateFactory, ExpressionPool pool)
public static TREXGrammar parse(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(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, String value)
protected TREXGrammar getGrammar()
getGrammar in class RELAXNGReaderprotected String localizeMessage(String propertyName, Object[] args)
GrammarReaderlocalizeMessage in class RELAXNGReaderpublic void wrapUp()
TREXBaseReaderThis method has to be called after the run-away expression check is done.
wrapUp in class RELAXNGReaderpublic void startElement(String uri, String local, String qname, Attributes atts) throws SAXException
startElement in interface ContentHandlerstartElement in class RELAXNGReaderSAXExceptionpublic void endElement(String uri, String local, String qname) throws SAXException
endElement in interface ContentHandlerendElement in class RELAXNGReaderSAXExceptionCopyright © 2014 Oracle Corporation. All Rights Reserved.