Package com.sun.msv.reader.xmlschema
Class ComplexContentBodyState
- java.lang.Object
-
- com.sun.msv.reader.State
-
- com.sun.msv.reader.SimpleState
-
- com.sun.msv.reader.ExpressionState
-
- com.sun.msv.reader.ExpressionWithChildState
-
- com.sun.msv.reader.SequenceState
-
- com.sun.msv.reader.xmlschema.ComplexContentBodyState
-
- All Implemented Interfaces:
ExpressionOwner,AnyAttributeOwner,org.xml.sax.ContentHandler
public class ComplexContentBodyState extends SequenceState implements AnyAttributeOwner
used to parse restriction/extension element as a child of complexContent element.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanextensionif this state is used to parse <extension>, then true.protected ComplexTypeExpparentDeclComplexType 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
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedComplexContentBodyState(ComplexTypeExp parentDecl, boolean extension)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ExpressionannealExpression(Expression exp)performs final wrap-up and returns a fully created Expression object that represents this element.protected ExpressioncombineToBaseType(ComplexTypeExp baseType, Expression addedExp)combines the base type content model and this content modelprotected StatecreateChildState(StartTagInfo tag)creates appropriate child state object for this elementprotected ExpressioninitialExpression()sets initial patternvoidsetAttributeWildcard(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
-
-
-
-
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:SimpleStatecreates appropriate child state object for this element- Overrides:
createChildStatein classExpressionWithChildState
-
setAttributeWildcard
public void setAttributeWildcard(AttributeWildcard local)
Description copied from interface:AnyAttributeOwnerSets the attribtue wildcard.- Specified by:
setAttributeWildcardin interfaceAnyAttributeOwner
-
initialExpression
protected Expression initialExpression()
Description copied from class:ExpressionWithChildStatesets initial pattern- Overrides:
initialExpressionin classSequenceState
-
annealExpression
protected Expression annealExpression(Expression exp)
Description copied from class:ExpressionWithChildStateperforms final wrap-up and returns a fully created Expression object that represents this element.- Overrides:
annealExpressionin classExpressionWithChildState
-
combineToBaseType
protected Expression combineToBaseType(ComplexTypeExp baseType, Expression addedExp)
combines the base type content model and this content model
-
-