| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public final RELAXGrammar | grammar
RELAX grammar that is currentlt being loaded |
| public static final String | RELAXNamespaceNamespace
namespace URI of RELAX Namespace. |
| protected SchemaProvider | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public | RELAXNSReader(GrammarReaderController controller, SAXParserFactory parserFactory, ExpressionPool pool)
|
| Modifier and Type | Method and Description |
|---|---|
| public IslandSchemaReader | Returns: return null if the given language is unrecognized. error will be handled by the caller. So this method should not attempt to report nor recover from error.creates an |
| public final RELAXGrammar | |
| public Grammar | getResultAsGrammar()
Implements abstract com. |
| public final SchemaProvider | |
| protected boolean | isGrammarElement(StartTagInfo tag)
Implements abstract com. |
| protected String | localizeMessage(String propertyName, Object[] args)
Overrides com. |
| public static RELAXGrammar | parse(String moduleURL, SAXParserFactory factory, GrammarReaderController controller, ExpressionPool pool)
loads RELAX grammar |
| public static RELAXGrammar | parse(InputSource module, SAXParserFactory factory, GrammarReaderController controller, ExpressionPool pool)
loads RELAX grammar |
| public Datatype | |
| protected Expression | resolveElementRef(String namespace, String label)
Implements abstract com. |
| protected Expression | resolveHedgeRef(String namespace, String label)
Implements abstract com. |
| private Expression |
| ERR_INLINEMODULE_NOT_FOUND | back to summary |
|---|---|
| public static final String ERR_INLINEMODULE_NOT_FOUND | |
| ERR_NAMESPACE_COLLISION | back to summary |
|---|---|
| public static final String ERR_NAMESPACE_COLLISION | |
| ERR_TOPLEVEL_PARTICLE_MUST_BE_RELAX_CORE | back to summary |
|---|---|
| public static final String ERR_TOPLEVEL_PARTICLE_MUST_BE_RELAX_CORE | |
| ERR_UNKNOWN_LANGUAGE | back to summary |
|---|---|
| public static final String ERR_UNKNOWN_LANGUAGE | |
| grammar | back to summary |
|---|---|
| public final RELAXGrammar grammar RELAX grammar that is currentlt being loaded | |
| RELAXNamespaceNamespace | back to summary |
|---|---|
| public static final String RELAXNamespaceNamespace namespace URI of RELAX Namespace. | |
| schemaProvider | back to summary |
|---|---|
| protected SchemaProvider schemaProvider | |
| WRN_ILLEGAL_RELAXNAMESPACE_VERSION | back to summary |
|---|---|
| public static final String WRN_ILLEGAL_RELAXNAMESPACE_VERSION | |
| RELAXNSReader | back to summary |
|---|---|
| public RELAXNSReader(GrammarReaderController controller, SAXParserFactory parserFactory, ExpressionPool pool) | |
| getIslandSchemaReader | back to summary |
|---|---|
| public IslandSchemaReader getIslandSchemaReader(String language, String expectedTargetNamespace) creates an
| |
| getResult | back to summary |
|---|---|
| public final RELAXGrammar 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. | |
| getSchemaProvider | back to summary |
|---|---|
| public final SchemaProvider getSchemaProvider() obtains parsed grammar object as SchemaProvider only if parsing was successful. | |
| 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 | |
| parse | back to summary |
|---|---|
| public static RELAXGrammar parse(String moduleURL, SAXParserFactory factory, GrammarReaderController controller, ExpressionPool pool) loads RELAX grammar | |
| parse | back to summary |
|---|---|
| public static RELAXGrammar parse(InputSource module, SAXParserFactory factory, GrammarReaderController controller, ExpressionPool pool) loads RELAX grammar | |
| resolveDataType | back to summary |
|---|---|
| public Datatype resolveDataType(String typeName) | |
| resolveElementRef | back to summary |
|---|---|
| protected Expression resolveElementRef(String namespace, String label) Implements abstract com. Doc from com. obtains an Expression specified by given (namespace,label) pair. this method is called to parse <ref label="..." /> element. | |
| resolveHedgeRef | back to summary |
|---|---|
| protected Expression resolveHedgeRef(String namespace, String label) Implements abstract com. Doc from com. obtains an Expression specified by given (namespace,label) pair. this method is called to parse <hedgeRef label="..." /> element. | |
| resolveRef | back to summary |
|---|---|
| private Expression resolveRef(String namespace, String label, String tagName) | |