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

public abstract Class HedgeRuleBaseState

extends SimpleState
implements ExpressionOwner
Class Inheritance
All Implemented Interfaces
com.sun.msv.reader.ExpressionOwner
Known Direct Subclasses
com.sun.msv.reader.relax.core.HedgeRuleState, com.sun.msv.relaxns.reader.TopLevelState
Imports
com.sun.msv.grammar.Expression, com.sun.msv.reader.ExpressionOwner, .SimpleState, .State, com.sun.msv.util.StartTagInfo

Base implementation for HedgeRuleState and TopLevelState. expects one and only one expression as its child.
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
private Expression

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 void
endSelf()

Overrides com.sun.msv.reader.SimpleState.endSelf.

this method is called in endElement method when the state is about to be removed.
protected abstract void
endSelf(Expression contentModel)

derived class will receive child expression by this method

public void
Inherited from com.sun.msv.reader.SimpleState:
endDocumentendElementisGrammarElementstartElement

Field Detail

contentModelback to summary
private Expression contentModel

Constructor Detail

HedgeRuleBaseStateback to summary
public HedgeRuleBaseState()

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

endSelfback to summary
protected final void endSelf()

Overrides com.sun.msv.reader.SimpleState.endSelf.

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

this method is called in endElement method when the state is about to be removed. derived-class should perform any wrap-up job

endSelfback to summary
protected abstract void endSelf(Expression contentModel)

derived class will receive child expression by this method

onEndChildback to summary
public void onEndChild(Expression exp)

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