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

pack-priv abstract Class ElementRuleBaseState

extends SimpleState
Class Inheritance
Known Direct Subclasses
com.sun.msv.reader.relax.core.ElementRuleWithHedgeState, com.sun.msv.reader.relax.core.ElementRuleWithTypeState
Imports
com.sun.msv.grammar.Expression, .NameClass, com.sun.msv.grammar.relax.ElementRule, .ElementRules, .TagClause, com.sun.msv.reader.SimpleState, .State, com.sun.msv.util.StartTagInfo

Base implementation for ElementRuleWithHedgeState and ElementRuleWithTypeState.
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
protected TagClause

Constructor Summary

AccessConstructor and Description
pack-priv

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 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 Expression
getContentModel()

gets content model of this elementRule

protected RELAXCoreReader
getReader()

gets reader in type-safe fashion

protected void
onEndInlineClause(TagClause inlineTag)

notification of inline tag element.

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

Field Detail

clauseback to summary
protected TagClause clause

Constructor Detail

ElementRuleBaseStateback to summary
pack-priv ElementRuleBaseState()

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

getContentModelback to summary
protected abstract Expression getContentModel()

gets content model of this elementRule

getReaderback to summary
protected RELAXCoreReader getReader()

gets reader in type-safe fashion

onEndInlineClauseback to summary
protected void onEndInlineClause(TagClause inlineTag)

notification of inline tag element. this method is called by InlineTagState after it is parsed