com.sun.msv.reader.relax.core
Class ModuleState

java.lang.Object
  extended by com.sun.msv.reader.State
      extended by com.sun.msv.reader.SimpleState
          extended by com.sun.msv.reader.relax.core.DivInModuleState
              extended by com.sun.msv.reader.relax.core.ModuleMergeState
                  extended by com.sun.msv.reader.relax.core.ModuleState
All Implemented Interfaces:
XSTypeOwner, ExpressionOwner, ContentHandler

public class ModuleState
extends ModuleMergeState

parses <module> element. this state is used to parse "head module", which is not included by any other modules. modules merged by include element are handled by MergeModuleState.

this class switchs RELAXReader.currentModule so that successive declarations are placed in the proper module.

Author:
Kohsuke KAWAGUCHI

Field Summary
 
Fields inherited from class com.sun.msv.reader.relax.core.ModuleMergeState
expectedTargetNamespace, targetNamespace
 
Fields inherited from class com.sun.msv.reader.State
baseURI, location, parentState, reader, startTag
 
Constructor Summary
protected ModuleState(String expectedNamespace)
           
 
Method Summary
protected  void startSelf()
          performs a task that should be done before reading any child elements.
 
Methods inherited from class com.sun.msv.reader.relax.core.DivInModuleState
createChildState, getReader, getTargetNamespaceUri, onEndChild, onEndChild
 
Methods inherited from class com.sun.msv.reader.SimpleState
endDocument, endElement, endSelf, isGrammarElement, startElement
 
Methods inherited from class com.sun.msv.reader.State
_assert, callInterceptExpression, characters, endPrefixMapping, getBaseURI, getLocation, getParentState, getStartTag, ignorableWhitespace, init, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleState

protected ModuleState(String expectedNamespace)
Method Detail

startSelf

protected void startSelf()
Description copied from class: State
performs a task that should be done before reading any child elements. derived-class can safely read startTag and/or parentState values.

Overrides:
startSelf in class ModuleMergeState


MSV