Top Description Inners Fields Constructors Methods
com.sun.msv.relaxns.reader.relax

public Class RELAXCoreIslandSchemaReader

extends RELAXCoreReader
implements IslandSchemaReader
Class Inheritance
All Implemented Interfaces
org.iso_relax.dispatcher.IslandSchemaReader, org.xml.sax.ContentHandler
Imports
java.util.Map, .Set, javax.xml.parsers.ParserConfigurationException, .SAXParserFactory, org.iso_relax.dispatcher.IslandSchema, .IslandSchemaReader, org.xml.sax.SAXException, org.xml.sax.helpers.LocatorImpl, com.sun.msv.grammar.Expression, .ExpressionPool, com.sun.msv.grammar.relax.RELAXModule, com.sun.msv.reader.ExpressionState, .GrammarReaderController, .State, com.sun.msv.reader.relax.core.RELAXCoreReader, com.sun.msv.relaxns.grammar.ExternalAttributeExp, .ExternalElementExp, com.sun.msv.relaxns.grammar.relax.RELAXIslandSchema, com.sun.msv.util.StartTagInfo, .StringPair

reads RELAX-Namespace-extended RELAX Core.
Author
Kohsuke KAWAGUCHI

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final Map<StringPair, Expression>
externalElementExps

map from StringPair(namespace,label) to ExternalElementExp.

protected final Set<Expression>
pendingAnyOtherElements

set of AnyOtherElementExp object.

Inherited from com.sun.msv.reader.relax.core.RELAXCoreReader:
combinedAttPoolsERR_EXPROTED_HEDGERULE_CONSTRAINTERR_ID_ABUSEERR_ID_ABUSE_1ERR_INCONSISTENT_TARGET_NAMESPACEERR_LABEL_COLLISIONERR_MISSING_TARGET_NAMESPACEERR_MORE_THAN_ONE_INLINE_TAGERR_MULTIPLE_ATTPOOL_DECLARATIONSERR_MULTIPLE_ATTRIBUTE_CONSTRAINTERR_MULTIPLE_TAG_DECLARATIONSERR_NAMESPACE_NOT_SUPPROTEDERR_ROLE_COLLISIONERR_UNDEFINED_ATTPOOLERR_UNDEFINED_ELEMENTRULEERR_UNDEFINED_HEDGERULEERR_UNDEFINED_TAGmodulerelaxCoreSchema4SchemaWRN_ILLEGAL_RELAXCORE_VERSIONWRN_NO_EXPROTED_LABEL

Constructor Summary

AccessConstructor and Description
public
RELAXCoreIslandSchemaReader(GrammarReaderController controller, SAXParserFactory parserFactory, ExpressionPool pool, String expectedTargetnamespace)

Method Summary

Modifier and TypeMethod and Description
protected boolean
canHaveOccurs(ExpressionState state)

Overrides com.sun.msv.reader.relax.core.RELAXCoreReader.canHaveOccurs.

returns true if the given state can have "occurs" attribute.
public State
createExpressionChildState(State parent, StartTagInfo tag)

Overrides com.sun.msv.reader.relax.core.RELAXCoreReader.createExpressionChildState.

this method must be implemented by the derived class to create language-default expresion state.
private ExternalElementExp
getExtElementExp(String namespace, String label)

protected RELAXModule
public final IslandSchema
protected Expression
protected Expression
resolveElementRef(String namespace, String label)

Overrides com.sun.msv.reader.relax.core.RELAXCoreReader.resolveElementRef.

obtains an Expression specified by given (namespace,label) pair.
protected Expression
resolveHedgeRef(String namespace, String label)

Overrides com.sun.msv.reader.relax.core.RELAXCoreReader.resolveHedgeRef.

obtains an Expression specified by given (namespace,label) pair.
Inherited from com.sun.msv.reader.relax.core.RELAXCoreReader:
addUserDefinedTypegetRELAXCoreSchema4SchemagetResultgetResultAsGrammargetStateFactoryisGrammarElementlocalizeMessageparseparseresolveXSDatatypewrapUp

Field Detail

externalElementExpsback to summary
private final Map<StringPair, Expression> externalElementExps

map from StringPair(namespace,label) to ExternalElementExp.

pendingAnyOtherElementsback to summary
protected final Set<Expression> pendingAnyOtherElements

set of AnyOtherElementExp object. each object will be invoked to do a wrap up by bind method of IslandSchema.

Constructor Detail

RELAXCoreIslandSchemaReaderback to summary
public RELAXCoreIslandSchemaReader(GrammarReaderController controller, SAXParserFactory parserFactory, ExpressionPool pool, String expectedTargetnamespace) throws SAXException, ParserConfigurationException

Method Detail

canHaveOccursback to summary
protected boolean canHaveOccurs(ExpressionState state)

Overrides com.sun.msv.reader.relax.core.RELAXCoreReader.canHaveOccurs.

returns true if the given state can have "occurs" attribute.

createExpressionChildStateback to summary
public State createExpressionChildState(State parent, StartTagInfo tag)

Overrides com.sun.msv.reader.relax.core.RELAXCoreReader.createExpressionChildState.

Doc from com.sun.msv.reader.GrammarReader.createExpressionChildState.

this method must be implemented by the derived class to create language-default expresion state.

Returns:State

null if the start tag is an error.

getExtElementExpback to summary
private ExternalElementExp getExtElementExp(String namespace, String label)
getModuleback to summary
protected RELAXModule getModule()
getSchemaback to summary
public final IslandSchema getSchema()

Implements org.iso_relax.dispatcher.IslandSchemaReader.getSchema.

Doc from org.iso_relax.dispatcher.IslandSchemaReader.getSchema.

gets parsed schema. this method is called after parsing is finished.

Returns:IslandSchema

return null if parsing was failed (for example by an error in the schema file).

resolveAttPoolRefback to summary
protected Expression resolveAttPoolRef(String namespace, String label)

Overrides com.sun.msv.reader.relax.core.RELAXCoreReader.resolveAttPoolRef.

resolveElementRefback to summary
protected Expression resolveElementRef(String namespace, String label)

Overrides com.sun.msv.reader.relax.core.RELAXCoreReader.resolveElementRef.

Doc from com.sun.msv.reader.relax.RELAXReader.resolveElementRef.

obtains an Expression specified by given (namespace,label) pair. this method is called to parse <ref label="..." /> element.

resolveHedgeRefback to summary
protected Expression resolveHedgeRef(String namespace, String label)

Overrides com.sun.msv.reader.relax.core.RELAXCoreReader.resolveHedgeRef.

Doc from com.sun.msv.reader.relax.RELAXReader.resolveHedgeRef.

obtains an Expression specified by given (namespace,label) pair. this method is called to parse <hedgeRef label="..." /> element.

com.sun.msv.relaxns.reader.relax back to summary

private Class RELAXCoreIslandSchemaReader.StateFactory

extends StateFactory
Class Inheritance

Field Summary

Inherited from com.sun.msv.reader.relax.core.RELAXCoreReader.StateFactory:
vocabulary

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public State
Inherited from com.sun.msv.reader.relax.core.RELAXCoreReader.StateFactory:
attPoolattributedivInModuleelementelementRulehedgeRuleincludemixedrefRolesimpleTypetagtagInline

Constructor Detail

StateFactoryback to summary
private StateFactory()

Method Detail

interface_back to summary
public State interface_(State parent, StartTagInfo tag)

Overrides com.sun.msv.reader.relax.core.RELAXCoreReader.StateFactory.interface_.