| Modifier and Type | Class and Description |
|---|---|
| public static class | TREXGrammarReader.StateFactory
creates various State object, which in turn parses grammar. |
| private static class | TREXGrammarReader.UndefinedDataTypeVocabulary
Dummy DataTypeVocabulary for better error recovery. |
| Modifier and Type | Field and Description |
|---|---|
| protected String | currentGrammarURI
TREX allows either (1) the predefined namespace for TREX or (2) default namespace "" as its namespace. |
| private boolean | |
| public static final String | TREXNamespace
Namespace URI of TREX |
| Access | Constructor and Description |
|---|---|
| public | |
| public | TREXGrammarReader(GrammarReaderController controller, SAXParserFactory parserFactory, ExpressionPool pool)
easy-to-use constructor. |
| public | TREXGrammarReader(GrammarReaderController controller, SAXParserFactory parserFactory, TREXGrammarReader.
full constructor |
| Modifier and Type | Method and Description |
|---|---|
| public State | createExpressionChildState(State parent, StartTagInfo tag)
Overrides com. |
| protected TREXGrammar | |
| protected TREXGrammarReader. | |
| protected boolean | isGrammarElement(StartTagInfo tag)
Implements abstract com. |
| protected String | localizeMessage(String propertyName, Object[] args)
Overrides com. |
| private String | |
| public static TREXGrammar | parse(String grammarURL, SAXParserFactory factory, GrammarReaderController controller)
loads TREX pattern |
| public static TREXGrammar | parse(InputSource grammar, SAXParserFactory factory, GrammarReaderController controller)
loads TREX pattern |
| public Datatype | |
| public XSDatatypeExp | resolveXSDatatype(String
The type of this value varies in the schema language.
In XML Schema, for example, in which QNames are used
to designate datatypes, this parameter will be QName.
In RELAX Core, in which the same syntax is used but
NCName is used to designate datatypes. So this parameter
will be NCName. qName)Implements com. |
| public void |
| currentGrammarURI | back to summary |
|---|---|
| protected String currentGrammarURI TREX allows either (1) the predefined namespace for TREX or (2) default namespace "" as its namespace. This variable holds which namespace is currently in use. | |
| issueObsoletedXMLSchemaNamespace | back to summary |
|---|---|
| private boolean issueObsoletedXMLSchemaNamespace | |
| TREXNamespace | back to summary |
|---|---|
| public static final String TREXNamespace Namespace URI of TREX | |
| TREXGrammarReader | back to summary |
|---|---|
| public TREXGrammarReader(GrammarReaderController controller) easy-to-use constructor. | |
| TREXGrammarReader | back to summary |
|---|---|
| public TREXGrammarReader(GrammarReaderController controller, SAXParserFactory parserFactory, ExpressionPool pool) easy-to-use constructor. | |
| TREXGrammarReader | back to summary |
|---|---|
| public TREXGrammarReader(GrammarReaderController controller, SAXParserFactory parserFactory, TREXGrammarReader. full constructor | |
| createExpressionChildState | back to summary |
|---|---|
| public State createExpressionChildState(State parent, StartTagInfo tag) Overrides com. Doc from com. this method must be implemented by the derived class to create language-default expresion state.
| |
| getGrammar | back to summary |
|---|---|
| protected TREXGrammar getGrammar() | |
| getStateFactory | back to summary |
|---|---|
| protected TREXGrammarReader. | |
| isGrammarElement | back to summary |
|---|---|
| protected boolean isGrammarElement(StartTagInfo tag) Implements abstract com. Doc from com. checks if given element is that of the grammar elements. | |
| localizeMessage | back to summary |
|---|---|
| protected String localizeMessage(String propertyName, Object[] args) Overrides com. Doc from com. formats localized message with arguments | |
| mapNamespace | back to summary |
|---|---|
| private String mapNamespace(String namespace) maps obsoleted XML Schema namespace to the current one. | |
| parse | back to summary |
|---|---|
| public static TREXGrammar parse(String grammarURL, SAXParserFactory factory, GrammarReaderController controller) loads TREX pattern | |
| parse | back to summary |
|---|---|
| public static TREXGrammar parse(InputSource grammar, SAXParserFactory factory, GrammarReaderController controller) loads TREX pattern | |
| resolveDatatype | back to summary |
|---|---|
| public Datatype resolveDatatype(String qName) obtains a named DataType object referenced by a QName. | |
| resolveXSDatatype | back to summary |
|---|---|
| public XSDatatypeExp resolveXSDatatype(String qName) Implements com.
| |
| 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 | |
| public State | |
| public State | |
| public State | define(State parent, StartTagInfo tag)
Implements abstract com. |
| public State | |
| public State |
| StateFactory | back to summary |
|---|---|
| public StateFactory() | |
| anyString | back to summary |
|---|---|
| public State anyString(State parent, StartTagInfo tag) | |
| concur | back to summary |
|---|---|
| public State concur(State parent, StartTagInfo tag) | |
| data | back to summary |
|---|---|
| public State data(State parent, StartTagInfo tag) | |
| define | back to summary |
|---|---|
| public State define(State parent, StartTagInfo tag) Implements abstract com. | |
| includePattern | back to summary |
|---|---|
| public State includePattern(State parent, StartTagInfo tag) | |
| string | back to summary |
|---|---|
| public State string(State parent, StartTagInfo tag) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public State | createTopLevelReaderState(StartTagInfo tag)
Implements com. |
| public Datatype | getType(String
local part of the qualified name, like "string" or "integer".
prefix part must be removed by the caller. localTypeName)Implements com. |
| UndefinedDataTypeVocabulary | back to summary |
|---|---|
| private UndefinedDataTypeVocabulary() | |
| createTopLevelReaderState | back to summary |
|---|---|
| public State createTopLevelReaderState(StartTagInfo tag) Implements com. Doc from com. creates a State object that will parse the element specified by tag parameter.
| |
| getType | back to summary |
|---|---|
| public Datatype getType(String localTypeName) Implements com. Doc from com. resolves a type name to Datatype object. | |