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

public Class SimpleContentRestrictionState

extends SequenceState
implements FacetStateParent, XSTypeOwner, AnyAttributeOwner
Class Inheritance
All Implemented Interfaces
com.sun.msv.reader.xmlschema.AnyAttributeOwner, com.sun.msv.reader.datatype.xsd.XSTypeOwner, com.sun.msv.reader.datatype.xsd.FacetStateParent
Imports
org.relaxng.datatype.DatatypeException, com.sun.msv.datatype.xsd.StringType, .XSDatatype, com.sun.msv.grammar.AttributeExp, .Expression, .ReferenceExp, com.sun.msv.grammar.util.ExpressionWalker, com.sun.msv.grammar.xmlschema.AttributeWildcard, .ComplexTypeExp, .SimpleTypeExp, .XMLSchemaSchema, com.sun.msv.reader.GrammarReader, .SequenceState, .State, com.sun.msv.reader.datatype.xsd.FacetStateParent, .XSDatatypeExp, .XSTypeIncubator, .XSTypeOwner, com.sun.msv.util.StartTagInfo

used to parse restriction/extension element as a child of <simpleContent> element.
Author
Kohsuke KAWAGUCHI

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private String
base

value of the base attribute.

private XMLSchemaSchema
baseSchema

XMLSchemaSchema object of the base type.

private String[]
baseTypeName

Namespace URI and local name of the base attribute.

protected XSTypeIncubator
incubator

used to restrict simpleType

protected ComplexTypeExp
parentDecl

ComplexType object that we are now constructing.

Inherited from com.sun.msv.reader.SequenceState:
allowEmptySequence

Constructor Summary

AccessConstructor and Description
protected

Method Summary

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

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

performs final wrap-up and returns a fully created Expression object that represents this element.
protected State
createChildState(StartTagInfo tag)

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

creates appropriate child state object for this element
public XSTypeIncubator
getIncubator()

Implements com.sun.msv.reader.datatype.xsd.FacetStateParent.getIncubator.

gets an incubator object that the owner holds.
public String
getTargetNamespaceUri()

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

Returns the target namespace URI of newly created simple types.
protected Expression
public void
public void
protected void
startSelf()

Overrides com.sun.msv.reader.ExpressionWithChildState.startSelf.

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

Field Detail

baseback to summary
private String base

value of the base attribute. null in case of an error.

baseSchemaback to summary
private XMLSchemaSchema baseSchema

XMLSchemaSchema object of the base type. We should have this reference so that XMLSchemaReader can detect an error if this schema is undefined. Null in case of an error.

baseTypeNameback to summary
private String[] baseTypeName

Namespace URI and local name of the base attribute. null in case of an error.

incubatorback to summary
protected XSTypeIncubator incubator

used to restrict simpleType

parentDeclback to summary
protected ComplexTypeExp parentDecl

ComplexType object that we are now constructing.

Constructor Detail

SimpleContentRestrictionStateback to summary
protected SimpleContentRestrictionState(ComplexTypeExp parentDecl)

Method Detail

annealExpressionback to summary
protected Expression annealExpression(Expression exp)

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.

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

getIncubatorback to summary
public XSTypeIncubator getIncubator()

Implements com.sun.msv.reader.datatype.xsd.FacetStateParent.getIncubator.

Doc from com.sun.msv.reader.datatype.xsd.FacetStateParent.getIncubator.

gets an incubator object that the owner holds.

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.SequenceState.initialExpression.

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

sets initial pattern

onEndChildback to summary
public void onEndChild(XSDatatypeExp child)

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

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.ExpressionWithChildState.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.

com.sun.msv.reader.xmlschema back to summary

private Class SimpleContentRestrictionState.BaseContentTypeRenderer

extends Object
implements Renderer
Class Inheritance
  • java.lang.Object
  • com.sun.msv.reader.xmlschema.SimpleContentRestrictionState.BaseContentTypeRenderer
All Implemented Interfaces
com.sun.msv.reader.datatype.xsd.XSDatatypeExp.Renderer

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public XSDatatype
render(XSDatatypeExp.RenderingContext
If this renderer calls the getBody method of the other LateBindDatatype objects, then this context should be passed to the getBody method. This context object is responsible for detecting recursive references.
context
)

Implements com.sun.msv.reader.datatype.xsd.XSDatatypeExp.Renderer.render.

creates (or retrieves, whatever) the actual, concrete, real XSDatatype object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

BaseContentTypeRendererback to summary
private BaseContentTypeRenderer()

Method Detail

renderback to summary
public XSDatatype render(XSDatatypeExp.RenderingContext context)

Implements com.sun.msv.reader.datatype.xsd.XSDatatypeExp.Renderer.render.

Doc from com.sun.msv.reader.datatype.xsd.XSDatatypeExp.Renderer.render.

creates (or retrieves, whatever) the actual, concrete, real XSDatatype object.

This method is typically called from the wrapUp method of the GrammarReader.

Parameters
context:XSDatatypeExp.RenderingContext

If this renderer calls the getBody method of the other LateBindDatatype objects, then this context should be passed to the getBody method. This context object is responsible for detecting recursive references.

Returns:XSDatatype

the XSDatatype object which this LateBindDatatype object is representing. It shall not return an instance of LateBindDatatype object.