| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | TREXBaseReader.StateFactory
creates various State object, which in turn parses grammar. |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| protected TREXGrammar | grammar
grammar object currently being loaded. |
| private LightStack | nsStack
stack that stores value of ancestor 'ns' attribute. |
| public final TREXBaseReader. | |
| protected String | targetNamespace
target namespace: currently active 'ns' attribute |
| public static final String | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public | TREXBaseReader(GrammarReaderController controller, SAXParserFactory parserFactory, ExpressionPool pool, TREXBaseReader.
full constructor |
| Modifier and Type | Method and Description |
|---|---|
| public State | createExpressionChildState(State parent, StartTagInfo tag)
Implements abstract com. |
| protected State | |
| public void | endElement(String
The element's Namespace URI, or the empty string. a, String The element's local name, or the empty string. b, String The element's qualified (prefixed) name, or the empty
string. c)Overrides org. Implements org. |
| public final TREXGrammar | |
| public Grammar | getResultAsGrammar()
Implements abstract com. |
| public final String | |
| protected String | localizeMessage(String propertyName, Object[] args)
Implements abstract com. |
| public void | startElement(String
The element's Namespace URI, or the empty string. a, String The element's local name, or the empty string. b, String The element's qualified (prefixed) name, or the empty
string. c, Attributes The element's attributes. d)Overrides org. Implements org. |
| public void |
| ERR_BAD_COMBINE | back to summary |
|---|---|
| public static final String ERR_BAD_COMBINE | |
| ERR_COMBINE_MISSING | back to summary |
|---|---|
| public static final String ERR_COMBINE_MISSING | |
| ERR_DUPLICATE_DEFINITION | back to summary |
|---|---|
| public static final String ERR_DUPLICATE_DEFINITION | |
| ERR_INTERLEAVED_ANYSTRING | back to summary |
|---|---|
| public static final String ERR_INTERLEAVED_ANYSTRING | |
| ERR_INTERLEAVED_STRING | back to summary |
|---|---|
| public static final String ERR_INTERLEAVED_STRING | |
| ERR_MISSING_CHILD_NAMECLASS | back to summary |
|---|---|
| public static final String ERR_MISSING_CHILD_NAMECLASS | |
| ERR_MORE_THAN_ONE_NAMECLASS | back to summary |
|---|---|
| public static final String ERR_MORE_THAN_ONE_NAMECLASS | |
| ERR_NONEXISTENT_PARENT_GRAMMAR | back to summary |
|---|---|
| public static final String ERR_NONEXISTENT_PARENT_GRAMMAR | |
| ERR_REPEATED_STRING | back to summary |
|---|---|
| public static final String ERR_REPEATED_STRING | |
| ERR_SEQUENCED_STRING | back to summary |
|---|---|
| public static final String ERR_SEQUENCED_STRING | |
| ERR_UNDECLARED_PREFIX | back to summary |
|---|---|
| public static final String ERR_UNDECLARED_PREFIX | |
| ERR_UNDEFINED_PATTERN | back to summary |
|---|---|
| public static final String ERR_UNDEFINED_PATTERN | |
| ERR_UNKNOWN_DATATYPE_VOCABULARY | back to summary |
|---|---|
| public static final String ERR_UNKNOWN_DATATYPE_VOCABULARY | |
| grammar | back to summary |
|---|---|
| protected TREXGrammar grammar grammar object currently being loaded. | |
| nsStack | back to summary |
|---|---|
| private LightStack nsStack stack that stores value of ancestor 'ns' attribute. | |
| sfactory | back to summary |
|---|---|
| public final TREXBaseReader. | |
| targetNamespace | back to summary |
|---|---|
| protected String targetNamespace target namespace: currently active 'ns' attribute | |
| WRN_COMBINE_IGNORED | back to summary |
|---|---|
| public static final String WRN_COMBINE_IGNORED | |
| WRN_OBSOLETED_XMLSCHEMA_NAMSPACE | back to summary |
|---|---|
| public static final String WRN_OBSOLETED_XMLSCHEMA_NAMSPACE | |
| TREXBaseReader | back to summary |
|---|---|
| public TREXBaseReader(GrammarReaderController controller, SAXParserFactory parserFactory, ExpressionPool pool, TREXBaseReader. full constructor | |
| createExpressionChildState | back to summary |
|---|---|
| public State createExpressionChildState(State parent, StartTagInfo tag) Implements abstract com. Doc from com. this method must be implemented by the derived class to create language-default expresion state.
| |
| createNameClassChildState | back to summary |
|---|---|
| protected State createNameClassChildState(State parent, StartTagInfo tag) | |
| endElement | back to summary |
|---|---|
| public void endElement(String a, String b, String c) throws SAXException Overrides org. Implements org. Doc from org. Filter an end element event.
| |
| getResult | back to summary |
|---|---|
| public final TREXGrammar getResult() obtains parsed grammar object only if parsing was successful. | |
| getResultAsGrammar | back to summary |
|---|---|
| public Grammar getResultAsGrammar() Implements abstract com. Doc from com. gets the parsed AGM. Should any error happens, this method should returns null. derived classes should implement type-safe getGrammar method, along with this method. | |
| getTargetNamespace | back to summary |
|---|---|
| public final String getTargetNamespace() | |
| localizeMessage | back to summary |
|---|---|
| protected String localizeMessage(String propertyName, Object[] args) Implements abstract com. Doc from com. formats localized message with arguments | |
| startElement | back to summary |
|---|---|
| public void startElement(String a, String b, String c, Attributes d) throws SAXException Overrides org. Implements org. Doc from org. Filter a start element event.
| |
| wrapUp | back to summary |
|---|---|
| public void wrapUp() 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 | |
| public State | |
| public TREXGrammar | |
| public abstract State | |
| public State | |
| public State | |
| public State | |
| public State | |
| public State | |
| public State | |
| public State | |
| public State | |
| public State | |
| public State | |
| public State | |
| public State | |
| public State | |
| public State | |
| public State | |
| public State | |
| public State | |
| public State | |
| public State | |
| public State | |
| public State |
| StateFactory | back to summary |
|---|---|
| public StateFactory() | |
| attribute | back to summary |
|---|---|
| public State attribute(State parent, StartTagInfo tag) | |
| choice | back to summary |
|---|---|
| public State choice(State parent, StartTagInfo tag) | |
| createGrammar | back to summary |
|---|---|
| public TREXGrammar createGrammar(ExpressionPool pool, TREXGrammar parent) | |
| define | back to summary |
|---|---|
| public abstract State define(State parent, StartTagInfo tag) | |
| divInGrammar | back to summary |
|---|---|
| public State divInGrammar(State parent, StartTagInfo tag) | |
| element | back to summary |
|---|---|
| public State element(State parent, StartTagInfo tag) | |
| empty | back to summary |
|---|---|
| public State empty(State parent, StartTagInfo tag) | |
| grammar | back to summary |
|---|---|
| public State grammar(State parent, StartTagInfo tag) | |
| group | back to summary |
|---|---|
| public State group(State parent, StartTagInfo tag) | |
| includedGrammar | back to summary |
|---|---|
| public State includedGrammar() | |
| includeGrammar | back to summary |
|---|---|
| public State includeGrammar(State parent, StartTagInfo tag) | |
| interleave | back to summary |
|---|---|
| public State interleave(State parent, StartTagInfo tag) | |
| mixed | back to summary |
|---|---|
| public State mixed(State parent, StartTagInfo tag) | |
| notAllowed | back to summary |
|---|---|
| public State notAllowed(State parent, StartTagInfo tag) | |
| nsAnyName | back to summary |
|---|---|
| public State nsAnyName(State parent, StartTagInfo tag) | |
| nsChoice | back to summary |
|---|---|
| public State nsChoice(State parent, StartTagInfo tag) | |
| nsDifference | back to summary |
|---|---|
| public State nsDifference(State parent, StartTagInfo tag) | |
| nsName | back to summary |
|---|---|
| public State nsName(State parent, StartTagInfo tag) | |
| nsNot | back to summary |
|---|---|
| public State nsNot(State parent, StartTagInfo tag) | |
| nsNsName | back to summary |
|---|---|
| public State nsNsName(State parent, StartTagInfo tag) | |
| oneOrMore | back to summary |
|---|---|
| public State oneOrMore(State parent, StartTagInfo tag) | |
| optional | back to summary |
|---|---|
| public State optional(State parent, StartTagInfo tag) | |
| ref | back to summary |
|---|---|
| public State ref(State parent, StartTagInfo tag) | |
| start | back to summary |
|---|---|
| public State start(State parent, StartTagInfo tag) | |
| zeroOrMore | back to summary |
|---|---|
| public State zeroOrMore(State parent, StartTagInfo tag) | |