| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| protected final ReferenceContainer | combinedAttPools
contains all expressions that are going to be combined. |
| 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 | |
| public static final String | |
| public static final String | |
| public static final String | |
| protected RELAXModule | module
RELAX module object being under construction. |
| protected static Schema | relaxCoreSchema4Schema
Schema for schema of RELAX Core. |
| private final Map | userDefinedTypes
User-defined datatypes (from type name to XSDatatypeExp object. |
| public static final String | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public | RELAXCoreReader(GrammarReaderController controller, SAXParserFactory parserFactory, ExpressionPool pool)
|
| public | RELAXCoreReader(GrammarReaderController controller, SAXParserFactory parserFactory, RELAXCoreReader.
this object creates all parsing state object.
Parsing behavior can be modified by changing this object. stateFactory,expected value of 'targetNamespace' attribute.
If this value is null, then the module must have 'targetNamepsace'
attribute. If this value is non-null and module doesn't have
targetNamespace attribute, then expectedTargetNamespace is used
as the module's target namespace (chameleon effect).
If expectedNamespace differs from the module's targetNamespace attribute,
then an error will be issued. expectedTargetNamespace)full constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public final void | |
| protected boolean | |
| private Expression | |
| public State | createExpressionChildState(State parent, StartTagInfo tag)
Overrides com. |
| private void | |
| private void | detectDoubleAttributeConstraints(RELAXModule module)
detect two AttributeExps that share the same target name. |
| public static Schema | |
| public final RELAXModule | |
| public final Grammar | getResultAsGrammar()
Implements abstract com. |
| protected final RELAXCoreReader. | |
| protected boolean | isGrammarElement(StartTagInfo tag)
Implements abstract com. |
| protected String | localizeMessage(String propertyName, Object[] args)
Overrides com. |
| public static RELAXModule | parse(String moduleURL, SAXParserFactory factory, GrammarReaderController controller, ExpressionPool pool)
loads RELAX module |
| public static RELAXModule | parse(InputSource module, SAXParserFactory factory, GrammarReaderController controller, ExpressionPool pool)
loads RELAX module |
| protected Expression | |
| protected Expression | resolveElementRef(String namespace, String label)
Implements abstract com. |
| protected Expression | resolveHedgeRef(String namespace, String label)
Implements abstract com. |
| 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. typeName)Implements com. |
| protected void |
| combinedAttPools | back to summary |
|---|---|
| protected final ReferenceContainer combinedAttPools contains all expressions that are going to be combined. ReferenceExp is used to wrap an expression to provide location information. (attPool element with combine attribute). | |
| ERR_EXPROTED_HEDGERULE_CONSTRAINT | back to summary |
|---|---|
| public static final String ERR_EXPROTED_HEDGERULE_CONSTRAINT | |
| ERR_ID_ABUSE | back to summary |
|---|---|
| public static final String ERR_ID_ABUSE | |
| ERR_ID_ABUSE_1 | back to summary |
|---|---|
| public static final String ERR_ID_ABUSE_1 | |
| ERR_INCONSISTENT_TARGET_NAMESPACE | back to summary |
|---|---|
| public static final String ERR_INCONSISTENT_TARGET_NAMESPACE | |
| ERR_LABEL_COLLISION | back to summary |
|---|---|
| public static final String ERR_LABEL_COLLISION | |
| ERR_MISSING_TARGET_NAMESPACE | back to summary |
|---|---|
| public static final String ERR_MISSING_TARGET_NAMESPACE | |
| ERR_MORE_THAN_ONE_INLINE_TAG | back to summary |
|---|---|
| public static final String ERR_MORE_THAN_ONE_INLINE_TAG | |
| ERR_MULTIPLE_ATTPOOL_DECLARATIONS | back to summary |
|---|---|
| public static final String ERR_MULTIPLE_ATTPOOL_DECLARATIONS | |
| ERR_MULTIPLE_ATTRIBUTE_CONSTRAINT | back to summary |
|---|---|
| public static final String ERR_MULTIPLE_ATTRIBUTE_CONSTRAINT | |
| ERR_MULTIPLE_TAG_DECLARATIONS | back to summary |
|---|---|
| public static final String ERR_MULTIPLE_TAG_DECLARATIONS | |
| ERR_NAMESPACE_NOT_SUPPROTED | back to summary |
|---|---|
| public static final String ERR_NAMESPACE_NOT_SUPPROTED | |
| ERR_ROLE_COLLISION | back to summary |
|---|---|
| public static final String ERR_ROLE_COLLISION | |
| ERR_UNDEFINED_ATTPOOL | back to summary |
|---|---|
| public static final String ERR_UNDEFINED_ATTPOOL | |
| ERR_UNDEFINED_ELEMENTRULE | back to summary |
|---|---|
| public static final String ERR_UNDEFINED_ELEMENTRULE | |
| ERR_UNDEFINED_HEDGERULE | back to summary |
|---|---|
| public static final String ERR_UNDEFINED_HEDGERULE | |
| ERR_UNDEFINED_TAG | back to summary |
|---|---|
| public static final String ERR_UNDEFINED_TAG | |
| module | back to summary |
|---|---|
| protected RELAXModule module RELAX module object being under construction. object is created when target namespace is identified. | |
| relaxCoreSchema4Schema | back to summary |
|---|---|
| protected static Schema relaxCoreSchema4Schema Schema for schema of RELAX Core. Unless overrided, this schema for schema will be used to parse a RELAX Core schema. To override, call the full constructor of this class and change the parameter. | |
| userDefinedTypes | back to summary |
|---|---|
| private final Map<String, XSDatatypeExp> userDefinedTypes User-defined datatypes (from type name to XSDatatypeExp object. | |
| WRN_ILLEGAL_RELAXCORE_VERSION | back to summary |
|---|---|
| public static final String WRN_ILLEGAL_RELAXCORE_VERSION | |
| WRN_NO_EXPROTED_LABEL | back to summary |
|---|---|
| public static final String WRN_NO_EXPROTED_LABEL | |
| RELAXCoreReader | back to summary |
|---|---|
| public RELAXCoreReader(GrammarReaderController controller, SAXParserFactory parserFactory, ExpressionPool pool) | |
| RELAXCoreReader | back to summary |
|---|---|
| public RELAXCoreReader(GrammarReaderController controller, SAXParserFactory parserFactory, RELAXCoreReader. full constructor.
| |
| addUserDefinedType | back to summary |
|---|---|
| public final void addUserDefinedType(XSDatatypeExp exp) | |
| canHaveOccurs | back to summary |
|---|---|
| protected boolean canHaveOccurs(ExpressionState state) returns true if the given state can have "occurs" attribute. | |
| choiceOfExported | back to summary |
|---|---|
| private Expression choiceOfExported(ReferenceContainer con) | |
| 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.
| |
| detectCollision | back to summary |
|---|---|
| private void detectCollision(ReferenceContainer col1, ReferenceContainer col2, String errMsg) | |
| detectDoubleAttributeConstraints | back to summary |
|---|---|
| private void detectDoubleAttributeConstraints(RELAXModule module) detect two AttributeExps that share the same target name.
See | |
| getRELAXCoreSchema4Schema | back to summary |
|---|---|
| public static Schema getRELAXCoreSchema4Schema() | |
| getResult | back to summary |
|---|---|
| public final RELAXModule getResult() obtains parsed grammar object only if parsing was successful. | |
| getResultAsGrammar | back to summary |
|---|---|
| public final 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. | |
| getStateFactory | back to summary |
|---|---|
| protected final RELAXCoreReader. | |
| 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 RELAXModule parse(String moduleURL, SAXParserFactory factory, GrammarReaderController controller, ExpressionPool pool) loads RELAX module | |
| parse | back to summary |
|---|---|
| public static RELAXModule parse(InputSource module, SAXParserFactory factory, GrammarReaderController controller, ExpressionPool pool) loads RELAX module | |
| resolveAttPoolRef | back to summary |
|---|---|
| protected Expression resolveAttPoolRef(String namespace, String role) | |
| 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. | |
| resolveXSDatatype | back to summary |
|---|---|
| public XSDatatypeExp resolveXSDatatype(String typeName) Implements com. gets DataType object from type name. If undefined type name is specified, this method is responsible to report an error, and recovers.
| |
| wrapUp | back to summary |
|---|---|
| protected void wrapUp() | |
| Modifier and Type | Field and Description |
|---|---|
| protected XSDVocabulary |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected State | |
| protected State | |
| protected State | |
| protected State | |
| protected State | |
| protected State | |
| protected State | |
| protected State | |
| protected State | |
| protected State | |
| protected State | |
| protected State | |
| protected State |
| vocabulary | back to summary |
|---|---|
| protected XSDVocabulary vocabulary | |
| StateFactory | back to summary |
|---|---|
| public StateFactory() | |
| attPool | back to summary |
|---|---|
| protected State attPool(State parent, StartTagInfo tag) | |
| attribute | back to summary |
|---|---|
| protected State attribute(State parent, StartTagInfo tag) | |
| divInModule | back to summary |
|---|---|
| protected State divInModule(State parent, StartTagInfo tag) | |
| element | back to summary |
|---|---|
| protected State element(State parent, StartTagInfo tag) | |
| elementRule | back to summary |
|---|---|
| protected State elementRule(State parent, StartTagInfo tag) | |
| hedgeRule | back to summary |
|---|---|
| protected State hedgeRule(State parent, StartTagInfo tag) | |
| include | back to summary |
|---|---|
| protected State include(State parent, StartTagInfo tag) | |
| interface_ | back to summary |
|---|---|
| protected State interface_(State parent, StartTagInfo tag) | |
| mixed | back to summary |
|---|---|
| protected State mixed(State parent, StartTagInfo tag) | |
| refRole | back to summary |
|---|---|
| protected State refRole(State parent, StartTagInfo tag) | |
| simpleType | back to summary |
|---|---|
| protected State simpleType(State parent, StartTagInfo tag) | |
| tag | back to summary |
|---|---|
| protected State tag(State parent, StartTagInfo tag) | |
| tagInline | back to summary |
|---|---|
| protected State tagInline(State parent, StartTagInfo tag) | |