|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.msv.reader.State
com.sun.msv.reader.SimpleState
com.sun.msv.reader.trex.NameClassState
com.sun.msv.reader.trex.NameClassWithChildState
public abstract class NameClassWithChildState
parses name class that has child name classes
Field Summary | |
---|---|
protected boolean |
allowNullChild
if this flag is true, then it is OK not to have any children. |
protected NameClass |
nameClass
name class object that is being created. |
Fields inherited from class com.sun.msv.reader.State |
---|
baseURI, location, parentState, reader, startTag |
Constructor Summary | |
---|---|
NameClassWithChildState()
|
Method Summary | |
---|---|
protected NameClass |
annealNameClass(NameClass nameClass)
performs final wrap-up and returns a fully created NameClass object that represents this element. |
protected abstract NameClass |
castNameClass(NameClass halfCastedNameClass,
NameClass newChildNameClass)
combines half-made name class and newly found child name class into the name class. |
protected State |
createChildState(StartTagInfo tag)
creates appropriate child state object for this element |
protected NameClass |
makeNameClass()
This method is called from endElement method. |
void |
onEndChild(NameClass childNameClass)
receives a Pattern object that is contained in this element. |
Methods inherited from class com.sun.msv.reader.trex.NameClassState |
---|
endSelf, getPropagatedNamespace |
Methods inherited from class com.sun.msv.reader.SimpleState |
---|
endDocument, endElement, isGrammarElement, startElement |
Methods inherited from class com.sun.msv.reader.State |
---|
_assert, callInterceptExpression, characters, endPrefixMapping, getBaseURI, getLocation, getParentState, getStartTag, ignorableWhitespace, init, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, startSelf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected NameClass nameClass
castNameClass(NameClass, NameClass)
and annealNameClass(NameClass)
methods
for how a pattern will be created.
protected boolean allowNullChild
Constructor Detail |
---|
public NameClassWithChildState()
Method Detail |
---|
public final void onEndChild(NameClass childNameClass)
protected final NameClass makeNameClass()
NameClassState
makeNameClass
in class NameClassState
protected State createChildState(StartTagInfo tag)
SimpleState
createChildState
in class SimpleState
protected abstract NameClass castNameClass(NameClass halfCastedNameClass, NameClass newChildNameClass)
Say this container has three child name class n1,n2, and n3. Then, the name class of this container will be made by the following method invocations.
annealNameClass( castNameClass( castNameClass( castNameClass(null,p1), p2), p3 ) )
protected NameClass annealNameClass(NameClass nameClass)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |