com.sun.msv.reader.xmlschema
Class ComplexContentBodyState

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.ExpressionWithChildState
                  extended by com.sun.msv.reader.SequenceState
                      extended by com.sun.msv.reader.xmlschema.ComplexContentBodyState
All Implemented Interfaces:
ExpressionOwner, AnyAttributeOwner, ContentHandler

public class ComplexContentBodyState
extends SequenceState
implements AnyAttributeOwner

used to parse restriction/extension element as a child of complexContent element.

Author:
Kohsuke KAWAGUCHI

Field Summary
protected  boolean extension
          if this state is used to parse <extension>, then true.
protected  ComplexTypeExp parentDecl
          ComplexType object that we are now constructing.
 
Fields inherited from class com.sun.msv.reader.SequenceState
allowEmptySequence
 
Fields inherited from class com.sun.msv.reader.ExpressionWithChildState
exp
 
Fields inherited from class com.sun.msv.reader.State
baseURI, location, parentState, reader, startTag
 
Constructor Summary
protected ComplexContentBodyState(ComplexTypeExp parentDecl, boolean extension)
           
 
Method Summary
protected  Expression annealExpression(Expression exp)
          performs final wrap-up and returns a fully created Expression object that represents this element.
protected  Expression combineToBaseType(ComplexTypeExp baseType, Expression addedExp)
          combines the base type content model and this content model
protected  State createChildState(StartTagInfo tag)
          creates appropriate child state object for this element
protected  Expression initialExpression()
          sets initial pattern
 void setAttributeWildcard(AttributeWildcard local)
          Sets the attribtue wildcard.
 
Methods inherited from class com.sun.msv.reader.SequenceState
castExpression
 
Methods inherited from class com.sun.msv.reader.ExpressionWithChildState
defaultExpression, makeExpression, onEndChild, startSelf
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parentDecl

protected ComplexTypeExp parentDecl
ComplexType object that we are now constructing.


extension

protected boolean extension
if this state is used to parse <extension>, then true. if this state is used to parse <restension>, then false.

Constructor Detail

ComplexContentBodyState

protected ComplexContentBodyState(ComplexTypeExp parentDecl,
                                  boolean extension)
Method Detail

createChildState

protected State createChildState(StartTagInfo tag)
Description copied from class: SimpleState
creates appropriate child state object for this element

Overrides:
createChildState in class ExpressionWithChildState

setAttributeWildcard

public void setAttributeWildcard(AttributeWildcard local)
Description copied from interface: AnyAttributeOwner
Sets the attribtue wildcard.

Specified by:
setAttributeWildcard in interface AnyAttributeOwner

initialExpression

protected Expression initialExpression()
Description copied from class: ExpressionWithChildState
sets initial pattern

Overrides:
initialExpression in class SequenceState

annealExpression

protected Expression annealExpression(Expression exp)
Description copied from class: ExpressionWithChildState
performs final wrap-up and returns a fully created Expression object that represents this element.

Overrides:
annealExpression in class ExpressionWithChildState

combineToBaseType

protected Expression combineToBaseType(ComplexTypeExp baseType,
                                       Expression addedExp)
combines the base type content model and this content model



MSV