com.sun.msv.reader.xmlschema
Class AnyState

java.lang.Object
  extended by com.sun.msv.reader.State
      extended by com.sun.msv.reader.SimpleState
          extended by com.sun.msv.reader.ExpressionState
              extended by com.sun.msv.reader.ExpressionWithoutChildState
                  extended by com.sun.msv.reader.xmlschema.AnyState
All Implemented Interfaces:
ContentHandler
Direct Known Subclasses:
AnyAttributeState, AnyElementState

public abstract class AnyState
extends ExpressionWithoutChildState

base implementation of AnyAttributeState and AnyElementState.

Author:
Kohsuke KAWAGUCHI

Field Summary
 
Fields inherited from class com.sun.msv.reader.State
baseURI, location, parentState, reader, startTag
 
Constructor Summary
AnyState()
           
 
Method Summary
protected abstract  Expression createExpression(String namespace, String process)
          creates AGM that corresponds to the specified parameters.
protected  NameClass createLaxNameClass(NameClass allowedNc, XMLSchemaReader.RefResolver res)
           
protected  NameClass getNameClass(String namespace, XMLSchemaSchema currentSchema)
          processes 'namepsace' attribute and gets corresponding NameClass object.
protected abstract  NameClass getNameClassFrom(ReferenceExp exp)
           
protected  Expression makeExpression()
          This method is called from endElement method.
 
Methods inherited from class com.sun.msv.reader.ExpressionWithoutChildState
createChildState
 
Methods inherited from class com.sun.msv.reader.ExpressionState
endSelf
 
Methods inherited from class com.sun.msv.reader.SimpleState
endDocument, endElement, 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, startSelf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnyState

public AnyState()
Method Detail

makeExpression

protected final Expression makeExpression()
Description copied from class: ExpressionState
This method is called from endElement method. Implementation has to provide Expression object that represents the content of this element.

Specified by:
makeExpression in class ExpressionState

createExpression

protected abstract Expression createExpression(String namespace,
                                               String process)
creates AGM that corresponds to the specified parameters.


getNameClass

protected NameClass getNameClass(String namespace,
                                 XMLSchemaSchema currentSchema)
processes 'namepsace' attribute and gets corresponding NameClass object.


getNameClassFrom

protected abstract NameClass getNameClassFrom(ReferenceExp exp)

createLaxNameClass

protected NameClass createLaxNameClass(NameClass allowedNc,
                                       XMLSchemaReader.RefResolver res)


MSV