| Modifier and Type | Class and Description |
|---|---|
| public static class | RELAXNGCompReader.StateFactory
creates various State object, which in turn parses grammar. |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | AnnotationNamespace
Namespace URI of RELAX NG DTD compatibility annotation |
| public static final String | |
| public static final String | |
| public static final String | |
| private final Map | |
| private boolean | |
| private final LightStack | lastRNGElement
The local name of the preceding RELAX NG element sibling. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | RELAXNGCompReader(GrammarReaderController controller, SAXParserFactory parserFactory, ExpressionPool pool)
easy-to-use constructor. |
| public | RELAXNGCompReader(GrammarReaderController controller, SAXParserFactory parserFactory, RELAXNGCompReader.
full constructor |
| Modifier and Type | Method and Description |
|---|---|
| protected final void | addDefaultValue(AttributeExp exp, String value)
note that the specified expression is marked with the default value. |
| public void | endElement(String
The element's Namespace URI, or the empty string. uri, String The element's local name, or the empty string. local, String The element's qualified (prefixed) name, or the empty
string. qname)Overrides com. Implements org. |
| protected TREXGrammar | |
| protected String | localizeMessage(String propertyName, Object[] args)
Overrides com. |
| public static TREXGrammar | Returns: it always returnsRELAXNGGrammar, but due to the
restriction imposed by Java language, I cannot change the
signature of this method.loads RELAX NG pattern. |
| public static TREXGrammar | Returns: it always returnsRELAXNGGrammar, but due to the
restriction imposed by Java language, I cannot change the
signature of this method.loads RELAX NG pattern. |
| public void | startElement(String
The element's Namespace URI, or the empty string. uri, String The element's local name, or the empty string. local, String The element's qualified (prefixed) name, or the empty
string. qname, Attributes The element's attributes. atts)Overrides com. Implements org. |
| public void |
| AnnotationNamespace | back to summary |
|---|---|
| public static final String AnnotationNamespace Namespace URI of RELAX NG DTD compatibility annotation | |
| CERR_ANN_CHILD_ELEMENT | back to summary |
|---|---|
| public static final String CERR_ANN_CHILD_ELEMENT | |
| CERR_ANN_INVALID_ATTRIBUTE | back to summary |
|---|---|
| public static final String CERR_ANN_INVALID_ATTRIBUTE | |
| CERR_ANN_MISPLACED | back to summary |
|---|---|
| public static final String CERR_ANN_MISPLACED | |
| defaultedAttributes | back to summary |
|---|---|
| private final Map<AttributeExp, String> defaultedAttributes | |
| inAnnotation | back to summary |
|---|---|
| private boolean inAnnotation | |
| lastRNGElement | back to summary |
|---|---|
| private final LightStack lastRNGElement The local name of the preceding RELAX NG element sibling. | |
| RELAXNGCompReader | back to summary |
|---|---|
| public RELAXNGCompReader(GrammarReaderController controller) easy-to-use constructor. | |
| RELAXNGCompReader | back to summary |
|---|---|
| public RELAXNGCompReader(GrammarReaderController controller, SAXParserFactory parserFactory, ExpressionPool pool) easy-to-use constructor. | |
| RELAXNGCompReader | back to summary |
|---|---|
| public RELAXNGCompReader(GrammarReaderController controller, SAXParserFactory parserFactory, RELAXNGCompReader. full constructor | |
| addDefaultValue | back to summary |
|---|---|
| protected final void addDefaultValue(AttributeExp exp, String value) note that the specified expression is marked with the default value. this method is called when a:defaultValue is found. | |
| endElement | back to summary |
|---|---|
| public void endElement(String uri, String local, String qname) throws SAXException Overrides com. Implements org. Doc from org. Filter an end element event.
| |
| getGrammar | back to summary |
|---|---|
| protected TREXGrammar getGrammar() Overrides com. | |
| localizeMessage | back to summary |
|---|---|
| protected String localizeMessage(String propertyName, Object[] args) Overrides com. Doc from com. formats localized message with arguments | |
| parse | back to summary |
|---|---|
| public static TREXGrammar parse(String grammarURL, GrammarReaderController controller) loads RELAX NG pattern.
| |
| parse | back to summary |
|---|---|
| public static TREXGrammar parse(InputSource grammar, GrammarReaderController controller) loads RELAX NG pattern.
| |
| startElement | back to summary |
|---|---|
| public void startElement(String uri, String local, String qname, Attributes atts) throws SAXException Overrides com. Implements org. Doc from org. Filter a start element event.
| |
| wrapUp | back to summary |
|---|---|
| public void wrapUp() Overrides com. Doc from com. performs final wrap-up. This method is called from the RootState object, after the parsing is completed. This method has to be called after the run-away expression check is done. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public State | attribute(State parent, StartTagInfo tag)
Overrides com. |
| public TREXGrammar | createGrammar(ExpressionPool pool, TREXGrammar parent)
Overrides com. |
| StateFactory | back to summary |
|---|---|
| public StateFactory() | |
| attribute | back to summary |
|---|---|
| public State attribute(State parent, StartTagInfo tag) Overrides com. | |
| createGrammar | back to summary |
|---|---|
| public TREXGrammar createGrammar(ExpressionPool pool, TREXGrammar parent) Overrides com. | |