Top Description Fields Constructors Methods
com.sun.msv.reader.xmlschema

public Class ComplexTypeDeclState

extends RedefinableDeclState
implements AnyAttributeOwner
Class Inheritance
All Implemented Interfaces
com.sun.msv.reader.xmlschema.AnyAttributeOwner
Imports
org.xml.sax.Locator, com.sun.msv.grammar.Expression, .ReferenceContainer, com.sun.msv.grammar.xmlschema.AttributeWildcard, .ComplexTypeExp, com.sun.msv.reader.State, com.sun.msv.util.StartTagInfo

used to parse <complexType> element.
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
protected ComplexTypeExp
decl

ComplexType object that we are now constructing.

Inherited from com.sun.msv.reader.xmlschema.RedefinableDeclState:
oldDecl

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Expression
annealExpression(Expression contentType)

Overrides com.sun.msv.reader.ExpressionWithChildState.annealExpression.

performs final wrap-up and returns a fully created Expression object that represents this element.
protected Expression
castExpression(Expression halfCastedExpression, Expression newChildExpression)

Implements abstract com.sun.msv.reader.ExpressionWithChildState.castExpression.

combines half-made expression and newly found child expression into the expression.
protected State
createChildState(StartTagInfo tag)

Overrides com.sun.msv.reader.ExpressionWithChildState.createChildState.

creates appropriate child state object for this element
protected Expression
protected ReferenceContainer
getContainer()

Implements abstract com.sun.msv.reader.xmlschema.RedefinableDeclState.getContainer.

gets appropriate ReferenceContainer to store this declaration.
private int
parseFinalValue(String attName, String defaultValue)

parses the value of the block/finel attribute.

public void
protected void
startSelf()

Overrides com.sun.msv.reader.xmlschema.RedefinableDeclState.startSelf.

performs a task that should be done before reading any child elements.
Inherited from com.sun.msv.reader.xmlschema.RedefinableDeclState:
endSelfisGlobalisRedefine

Field Detail

declback to summary
protected ComplexTypeExp decl

ComplexType object that we are now constructing.

Constructor Detail

ComplexTypeDeclStateback to summary
public ComplexTypeDeclState()

Method Detail

annealExpressionback to summary
protected Expression annealExpression(Expression contentType)

Overrides com.sun.msv.reader.ExpressionWithChildState.annealExpression.

Doc from com.sun.msv.reader.ExpressionWithChildState.annealExpression.

performs final wrap-up and returns a fully created Expression object that represents this element.

castExpressionback to summary
protected Expression castExpression(Expression halfCastedExpression, Expression newChildExpression)

Implements abstract com.sun.msv.reader.ExpressionWithChildState.castExpression.

Doc from com.sun.msv.reader.ExpressionWithChildState.castExpression.

combines half-made expression and newly found child expression into the expression.

Say this container has three child expression exp1,exp2, and exp3. Then, the expression of this state will be made by the following method invocations.

  annealExpression(
    castExpression(
      castExpression(
        castExpression(null,exp1), exp2), exp3 ) )
createChildStateback to summary
protected State createChildState(StartTagInfo tag)

Overrides com.sun.msv.reader.ExpressionWithChildState.createChildState.

Doc from com.sun.msv.reader.SimpleState.createChildState.

creates appropriate child state object for this element

defaultExpressionback to summary
protected Expression defaultExpression()

Overrides com.sun.msv.reader.ExpressionWithChildState.defaultExpression.

Doc from com.sun.msv.reader.ExpressionWithChildState.defaultExpression.

computes default expression. this method is called before annealExpression when no child expression is given during parsing. return null to signal an error.

getContainerback to summary
protected ReferenceContainer getContainer()

Implements abstract com.sun.msv.reader.xmlschema.RedefinableDeclState.getContainer.

Doc from com.sun.msv.reader.xmlschema.RedefinableDeclState.getContainer.

gets appropriate ReferenceContainer to store this declaration.

parseFinalValueback to summary
private int parseFinalValue(String attName, String defaultValue)

parses the value of the block/finel attribute.

setAttributeWildcardback to summary
public void setAttributeWildcard(AttributeWildcard local)

Implements com.sun.msv.reader.xmlschema.AnyAttributeOwner.setAttributeWildcard.

Doc from com.sun.msv.reader.xmlschema.AnyAttributeOwner.setAttributeWildcard.

Sets the attribtue wildcard.

startSelfback to summary
protected void startSelf()

Overrides com.sun.msv.reader.xmlschema.RedefinableDeclState.startSelf.

Doc from com.sun.msv.reader.State.startSelf.

performs a task that should be done before reading any child elements. derived-class can safely read startTag and/or parentState values.