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

public Class AttributeState

extends ExpressionWithChildState
implements XSTypeOwner
Class Inheritance
All Implemented Interfaces
com.sun.msv.reader.datatype.xsd.XSTypeOwner
Imports
org.relaxng.datatype.DatatypeException, org.xml.sax.Locator, com.sun.msv.grammar.AttributeExp, .Expression, .NameClass, .ReferenceContainer, .SimpleNameClass, com.sun.msv.grammar.relax.NoneType, com.sun.msv.grammar.xmlschema.AttributeDeclExp, .XMLSchemaSchema, com.sun.msv.reader.ExpressionWithChildState, .State, com.sun.msv.reader.datatype.xsd.XSDatatypeExp, .XSTypeIncubator, .XSTypeOwner, com.sun.msv.util.StartTagInfo, .StringPair

used to parse <attribute > element.
Author
Kohsuke KAWAGUCHI

Field Summary

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

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 Expression
createAttribute(NameClass nc, Expression exp, String defaultValue)

Allows the derived class to change it.

protected State
createChildState(StartTagInfo tag)

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

creates appropriate child state object for this element
protected Expression
public String
getTargetNamespaceUri()

Implements com.sun.msv.reader.datatype.xsd.XSTypeOwner.getTargetNamespaceUri.

Returns the target namespace URI of newly created simple types.
protected Expression
protected boolean
public void
Inherited from com.sun.msv.reader.ExpressionWithChildState:
makeExpressiononEndChildstartSelf

Constructor Detail

AttributeStateback to summary
public AttributeState()

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 ) )
createAttributeback to summary
protected Expression createAttribute(NameClass nc, Expression exp, String defaultValue)

Allows the derived class to change it.

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.

getTargetNamespaceUriback to summary
public String getTargetNamespaceUri()

Implements com.sun.msv.reader.datatype.xsd.XSTypeOwner.getTargetNamespaceUri.

Doc from com.sun.msv.reader.datatype.xsd.XSTypeOwner.getTargetNamespaceUri.

Returns the target namespace URI of newly created simple types. If the context you are using this package doesn't have the notion of the target namespace URI, return the empty string.

initialExpressionback to summary
protected Expression initialExpression()

Overrides com.sun.msv.reader.ExpressionWithChildState.initialExpression.

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

sets initial pattern

isGlobalback to summary
protected boolean isGlobal()
onEndChildback to summary
public void onEndChild(XSDatatypeExp type)

Implements com.sun.msv.reader.datatype.xsd.XSTypeOwner.onEndChild.