com.sun.msv.reader.trex.ng.comp
public class RELAXNGCompReader extends RELAXNGReader
| Nested Class Summary | |
|---|---|
| static class | RELAXNGCompReader.StateFactory
creates various State object, which in turn parses grammar.
parsing behavior can be customized by implementing custom StateFactory. |
| 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(String grammarURL, GrammarReaderController controller) loads RELAX NG pattern.
|
| static TREXGrammar | parse(InputSource grammar, GrammarReaderController controller) loads RELAX NG pattern.
|
| void | startElement(String uri, String local, String qname, Attributes atts) |
| void | wrapUp() |
Returns: it always returns RELAXNGGrammar, but due to the restriction imposed by Java language, I cannot change the signature of this method.
Returns: it always returns RELAXNGGrammar, but due to the restriction imposed by Java language, I cannot change the signature of this method.