com.sun.msv.relaxns.reader.relax
Class RELAXCoreIslandSchemaReader

java.lang.Object
  extended by org.xml.sax.helpers.XMLFilterImpl
      extended by com.sun.msv.reader.GrammarReader
          extended by com.sun.msv.reader.relax.RELAXReader
              extended by com.sun.msv.reader.relax.core.RELAXCoreReader
                  extended by com.sun.msv.relaxns.reader.relax.RELAXCoreIslandSchemaReader
All Implemented Interfaces:
IDContextProvider2, XSDatatypeResolver, IslandSchemaReader, ValidationContext, ContentHandler, DTDHandler, EntityResolver, ErrorHandler, XMLFilter, XMLReader

public class RELAXCoreIslandSchemaReader
extends RELAXCoreReader
implements IslandSchemaReader

reads RELAX-Namespace-extended RELAX Core.

Author:
Kohsuke KAWAGUCHI

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.msv.reader.GrammarReader
GrammarReader.BackPatch, GrammarReader.BackwardReferenceMap, GrammarReader.ChainPrefixResolver, GrammarReader.PrefixResolver
 
Field Summary
protected  Set pendingAnyOtherElements
          set of AnyOtherElementExp object.
 
Fields inherited from class com.sun.msv.reader.relax.core.RELAXCoreReader
combinedAttPools, ERR_EXPROTED_HEDGERULE_CONSTRAINT, ERR_ID_ABUSE, ERR_ID_ABUSE_1, ERR_INCONSISTENT_TARGET_NAMESPACE, ERR_LABEL_COLLISION, ERR_MISSING_TARGET_NAMESPACE, ERR_MORE_THAN_ONE_INLINE_TAG, ERR_MULTIPLE_ATTPOOL_DECLARATIONS, ERR_MULTIPLE_ATTRIBUTE_CONSTRAINT, ERR_MULTIPLE_TAG_DECLARATIONS, ERR_NAMESPACE_NOT_SUPPROTED, ERR_ROLE_COLLISION, ERR_UNDEFINED_ATTPOOL, ERR_UNDEFINED_ELEMENTRULE, ERR_UNDEFINED_HEDGERULE, ERR_UNDEFINED_TAG, module, relaxCoreSchema4Schema, WRN_ILLEGAL_RELAXCORE_VERSION, WRN_NO_EXPROTED_LABEL
 
Fields inherited from class com.sun.msv.reader.relax.RELAXReader
ERR_ILLEGAL_OCCURS, ERR_MISPLACED_OCCURS, RELAXCoreNamespace, sfactory
 
Fields inherited from class com.sun.msv.reader.GrammarReader
backwardReference, basePrefixResolver, controller, ERR_BAD_ATTRIBUTE_VALUE, ERR_BAD_TYPE, ERR_CHARACTERS, ERR_CONFLICTING_ATTRIBUTES, ERR_DATATYPE_ALREADY_DEFINED, ERR_DISALLOWED_ATTRIBUTE, ERR_FRAGMENT_IDENTIFIER, ERR_ILLEGAL_FINAL_VALUE, ERR_MALPLACED_ELEMENT, ERR_MISSING_ATTRIBUTE, ERR_MISSING_ATTRIBUTE_2, ERR_MISSING_CHILD_EXPRESSION, ERR_MISSING_CHILD_TYPE, ERR_MISSING_TOPLEVEL, ERR_MORE_THAN_ONE_CHILD_EXPRESSION, ERR_MORE_THAN_ONE_CHILD_TYPE, ERR_RECURSIVE_DATATYPE, ERR_RECURSIVE_INCLUDE, ERR_RUNAWAY_EXPRESSION, ERR_UNDEFINED_DATATYPE, parserFactory, pool, prefixResolver, WRN_DEPRECATED_TYPENAME, WRN_MAYBE_WRONG_NAMESPACE
 
Constructor Summary
RELAXCoreIslandSchemaReader(GrammarReaderController controller, SAXParserFactory parserFactory, ExpressionPool pool, String expectedTargetnamespace)
           
 
Method Summary
protected  boolean canHaveOccurs(ExpressionState state)
          returns true if the given state can have "occurs" attribute.
 State createExpressionChildState(State parent, StartTagInfo tag)
          this method must be implemented by the derived class to create language-default expresion state.
protected  RELAXModule getModule()
           
 IslandSchema getSchema()
           
protected  Expression resolveAttPoolRef(String namespace, String label)
           
protected  Expression resolveElementRef(String namespace, String label)
          obtains an Expression specified by given (namespace,label) pair.
protected  Expression resolveHedgeRef(String namespace, String label)
          obtains an Expression specified by given (namespace,label) pair.
 
Methods inherited from class com.sun.msv.reader.relax.core.RELAXCoreReader
addUserDefinedType, getRELAXCoreSchema4Schema, getResult, getResultAsGrammar, getStateFactory, isGrammarElement, localizeMessage, parse, parse, resolveXSDatatype, wrapUp
 
Methods inherited from class com.sun.msv.reader.relax.RELAXReader
canHaveOccurs, createFacetState, getPool, interceptExpression
 
Methods inherited from class com.sun.msv.reader.GrammarReader
_parse, addBackPatchJob, addBackPatchJob, combineURI, combineURL, createParserFactory, detectUndefinedOnes, endPrefixMapping, getBackwardCompatibleType, getBaseUri, getCurrentState, getDeclaredLocationOf, getLocator, inputSourceFromLSInput, isNotation, isUnparsedEntity, iterateInscopeNamespaces, onID, parse, parse, parse, popState, pushState, reportError, reportError, reportError, reportError, reportError, reportError, reportError, reportError, reportWarning, reportWarning, reportWarning, reportWarning, resolveLocation, resolveNamespacePrefix, runBackPatchJob, setDeclaredLocationOf, setDocumentLocator, setLocator, splitQName, startPrefixMapping, switchSource, switchSource, switchSource
 
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
characters, endDocument, endElement, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, startElement, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xml.sax.ContentHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
 

Field Detail

pendingAnyOtherElements

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

Constructor Detail

RELAXCoreIslandSchemaReader

public RELAXCoreIslandSchemaReader(GrammarReaderController controller,
                                   SAXParserFactory parserFactory,
                                   ExpressionPool pool,
                                   String expectedTargetnamespace)
                            throws SAXException,
                                   ParserConfigurationException
Throws:
SAXException
ParserConfigurationException
Method Detail

getModule

protected RELAXModule getModule()

canHaveOccurs

protected boolean canHaveOccurs(ExpressionState state)
returns true if the given state can have "occurs" attribute.

Overrides:
canHaveOccurs in class RELAXCoreReader

getSchema

public final IslandSchema getSchema()
Specified by:
getSchema in interface IslandSchemaReader

createExpressionChildState

public State createExpressionChildState(State parent,
                                        StartTagInfo tag)
Description copied from class: GrammarReader
this method must be implemented by the derived class to create language-default expresion state.

Overrides:
createExpressionChildState in class RELAXCoreReader
Returns:
null if the start tag is an error.

resolveElementRef

protected Expression resolveElementRef(String namespace,
                                       String label)
Description copied from class: RELAXReader
obtains an Expression specified by given (namespace,label) pair. this method is called to parse <ref label="..." /> element.

Overrides:
resolveElementRef in class RELAXCoreReader

resolveHedgeRef

protected Expression resolveHedgeRef(String namespace,
                                     String label)
Description copied from class: RELAXReader
obtains an Expression specified by given (namespace,label) pair. this method is called to parse <hedgeRef label="..." /> element.

Overrides:
resolveHedgeRef in class RELAXCoreReader

resolveAttPoolRef

protected Expression resolveAttPoolRef(String namespace,
                                       String label)
Overrides:
resolveAttPoolRef in class RELAXCoreReader


MSV