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

public Class DefineState

extends DefineState
Class Inheritance
Known Direct Subclasses
com.sun.msv.reader.trex.ng.StartState
Imports
org.xml.sax.Locator, com.sun.msv.grammar.Expression, .ReferenceExp

parses <define> declaration.
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
private boolean
private RELAXNGReader.RefExpParseInfo
Inherited from com.sun.msv.reader.trex.DefineState:
exp

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Expression
doCombine(ReferenceExp baseExp, Expression newExp, String combine)

Implements abstract com.sun.msv.reader.trex.DefineState.doCombine.

combines two expressions into one as specified by the combine parameter, and returns a new expression.
protected void
endSelf()

Overrides com.sun.msv.reader.trex.DefineState.endSelf.

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

Overrides com.sun.msv.reader.trex.DefineState.startSelf.

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

Field Detail

previousDirectRefernceback to summary
private boolean previousDirectRefernce
prevNamedPatternback to summary
private RELAXNGReader.RefExpParseInfo prevNamedPattern

Constructor Detail

DefineStateback to summary
public DefineState()

Method Detail

doCombineback to summary
protected Expression doCombine(ReferenceExp baseExp, Expression newExp, String combine)

Implements abstract com.sun.msv.reader.trex.DefineState.doCombine.

combines two expressions into one as specified by the combine parameter, and returns a new expression. If the combine parameter is invalid, then return null.

endSelfback to summary
protected void endSelf()

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

startSelfback to summary
protected void startSelf()

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