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

public Class DivInGrammarState

extends ExpressionState
implements ExpressionOwner
Class Inheritance
All Implemented Interfaces
com.sun.msv.reader.ExpressionOwner
Known Direct Subclasses
com.sun.msv.reader.trex.GrammarState
Imports
com.sun.msv.grammar.Expression, com.sun.msv.reader.ExpressionOwner, .ExpressionState, .State, com.sun.msv.util.StartTagInfo

Used to parse merged grammars. Also <div> element in the grammar element (of RELAX NG). DivInGrammarState itself should not be a ExpressionState. However, GrammarState, which is a derived class of this class, is a ExpressionState. Therefore this class has to extend ExpressionState.
Author
Kohsuke KAWAGUCHI

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 final TREXBaseReader
protected Expression
makeExpression()

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

This method is called from endElement method.
public void
Inherited from com.sun.msv.reader.ExpressionState:
endSelf

Constructor Detail

DivInGrammarStateback to summary
public DivInGrammarState()

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

getReaderback to summary
protected final TREXBaseReader getReader()
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 exp)

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