Top Description Fields Constructors Methods
com.sun.msv.reader.trex.ng

public Class DataState

extends ExpressionState
implements ExpressionOwner
Class Inheritance
All Implemented Interfaces
com.sun.msv.reader.ExpressionOwner
Imports
org.relaxng.datatype.DatatypeBuilder, .DatatypeException, com.sun.msv.datatype.ErrorDatatypeLibrary, com.sun.msv.grammar.Expression, com.sun.msv.reader.ExpressionOwner, .ExpressionState, .State, com.sun.msv.util.StartTagInfo, .StringPair

parses <data> pattern.
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
protected StringPair
baseTypeName

the name of the base type.

protected Expression
except

the 'except' clause.

protected DatatypeBuilder
typeBuilder

type incubator object to be used to create a type.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected State
createChildState(StartTagInfo tag)

Implements abstract com.sun.msv.reader.SimpleState.createChildState.

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

Implements abstract com.sun.msv.reader.ExpressionState.makeExpression.

This method is called from endElement method.
public void
protected void
startSelf()

Overrides com.sun.msv.reader.State.startSelf.

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

Field Detail

baseTypeNameback to summary
protected StringPair baseTypeName

the name of the base type.

exceptback to summary
protected Expression except

the 'except' clause. Null if nothing was specified

typeBuilderback to summary
protected DatatypeBuilder typeBuilder

type incubator object to be used to create a type.

Constructor Detail

DataStateback to summary
public DataState()

Method Detail

createChildStateback to summary
protected State createChildState(StartTagInfo tag)

Implements abstract com.sun.msv.reader.SimpleState.createChildState.

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

creates appropriate child state object for this element

makeExpressionback to summary
protected Expression makeExpression()

Implements abstract com.sun.msv.reader.ExpressionState.makeExpression.

Doc from com.sun.msv.reader.ExpressionState.makeExpression.

This method is called from endElement method. Implementation has to provide Expression object that represents the content of this element.

onEndChildback to summary
public void onEndChild(Expression child)

Implements com.sun.msv.reader.ExpressionOwner.onEndChild.

startSelfback to summary
protected void startSelf()

Overrides com.sun.msv.reader.State.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.