|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.XMLFilterImpl
com.sun.msv.reader.GrammarReader
com.sun.msv.reader.trex.TREXBaseReader
com.sun.msv.reader.trex.ng.RELAXNGReader
com.sun.msv.reader.trex.ng.comp.RELAXNGCompReader
public class RELAXNGCompReader
reads RELAX NG grammar with DTD compatibility annotation and constructs abstract grammar model.
Nested Class Summary | |
---|---|
static class |
RELAXNGCompReader.StateFactory
creates various State object, which in turn parses grammar. |
Nested classes/interfaces inherited from class com.sun.msv.reader.GrammarReader |
---|
GrammarReader.BackPatch, GrammarReader.BackwardReferenceMap, GrammarReader.ChainPrefixResolver, GrammarReader.PrefixResolver |
Field Summary | |
---|---|
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
|
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
void |
endElement(String uri,
String local,
String qname)
|
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. |
Methods inherited from class com.sun.msv.reader.trex.ng.RELAXNGReader |
---|
createExpressionChildState, endDocument, getCurrentDatatypeLibrary, getDatatypeLibraryFactory, getRELAXNGSchema4Schema, parse, parse, resolveDataType, resolveDataTypeLibrary, resolveNamespacePrefix, setDatatypeLibraryFactory, startDocument |
Methods inherited from class com.sun.msv.reader.trex.TREXBaseReader |
---|
getResult, getResultAsGrammar, getTargetNamespace |
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl |
---|
characters, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public 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
Constructor Detail |
---|
public RELAXNGCompReader(GrammarReaderController controller)
public RELAXNGCompReader(GrammarReaderController controller, SAXParserFactory parserFactory, ExpressionPool pool)
public RELAXNGCompReader(GrammarReaderController controller, SAXParserFactory parserFactory, RELAXNGCompReader.StateFactory stateFactory, ExpressionPool pool)
Method Detail |
---|
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.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(String uri, String local, String qname, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class RELAXNGReader
SAXException
public void endElement(String uri, String local, String qname) throws SAXException
endElement
in interface ContentHandler
endElement
in class RELAXNGReader
SAXException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |