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

public Class ComplexContentState

extends ExpressionWithChildState
Class Inheritance
Imports
com.sun.msv.grammar.Expression, com.sun.msv.grammar.xmlschema.ComplexTypeExp, com.sun.msv.reader.ExpressionWithChildState, .State, com.sun.msv.util.StartTagInfo

parses <complexContent> element. the expression created by this state is used as ComplexTypeExp.self field.
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
protected ComplexTypeExp
parentDecl

ComplexType object that we are now constructing.

Inherited from com.sun.msv.reader.ExpressionWithChildState:
exp

Constructor Summary

AccessConstructor and Description
protected

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
Inherited from com.sun.msv.reader.ExpressionWithChildState:
defaultExpressioninitialExpressionmakeExpressiononEndChildstartSelf

Field Detail

parentDeclback to summary
protected ComplexTypeExp parentDecl

ComplexType object that we are now constructing.

Constructor Detail

ComplexContentStateback to summary
protected ComplexContentState(ComplexTypeExp decl)

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.

Annotations
@Override
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