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

public abstract Class NameClassAndExpressionState

extends SequenceState
implements NameClassOwner
Class Inheritance
All Implemented Interfaces
com.sun.msv.reader.trex.NameClassOwner
Known Direct Subclasses
com.sun.msv.reader.trex.AttributeState, com.sun.msv.reader.trex.ElementState
Imports
com.sun.msv.grammar.NameClass, .SimpleNameClass, com.sun.msv.reader.SequenceState, .State, com.sun.msv.util.StartTagInfo

Base implementation for ElementState and AttributeState This class collects one name class and patterns
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
protected NameClass
Inherited from com.sun.msv.reader.SequenceState:
allowEmptySequence

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

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

creates appropriate child state object for this element
protected void
endSelf()

Overrides com.sun.msv.reader.ExpressionState.endSelf.

this method is called in endElement method when the state is about to be removed.
protected String
getNamespace()

gets namespace URI to which this declaration belongs

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

Field Detail

nameClassback to summary
protected NameClass nameClass

Constructor Detail

NameClassAndExpressionStateback to summary
public NameClassAndExpressionState()

Method Detail

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

endSelfback to summary
protected void endSelf()

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

getNamespaceback to summary
protected String getNamespace()

gets namespace URI to which this declaration belongs

onEndChildback to summary
public void onEndChild(NameClass p)

Implements com.sun.msv.reader.trex.NameClassOwner.onEndChild.

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.