com.sun.msv.reader.trex
Class NameClassDifferenceState

java.lang.Object
  extended by com.sun.msv.reader.State
      extended by com.sun.msv.reader.SimpleState
          extended by com.sun.msv.reader.trex.NameClassState
              extended by com.sun.msv.reader.trex.NameClassWithChildState
                  extended by com.sun.msv.reader.trex.NameClassDifferenceState
All Implemented Interfaces:
ContentHandler

public class NameClassDifferenceState
extends NameClassWithChildState

parses <difference> name class.

Author:
Kohsuke KAWAGUCHI

Field Summary
 
Fields inherited from class com.sun.msv.reader.trex.NameClassWithChildState
allowNullChild, nameClass
 
Fields inherited from class com.sun.msv.reader.State
baseURI, location, parentState, reader, startTag
 
Constructor Summary
NameClassDifferenceState()
           
 
Method Summary
protected  NameClass castNameClass(NameClass halfCasted, NameClass newChild)
          combines half-made name class and newly found child name class into the name class.
 
Methods inherited from class com.sun.msv.reader.trex.NameClassWithChildState
annealNameClass, createChildState, makeNameClass, onEndChild
 
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
 

Constructor Detail

NameClassDifferenceState

public NameClassDifferenceState()
Method Detail

castNameClass

protected NameClass castNameClass(NameClass halfCasted,
                                  NameClass newChild)
Description copied from class: NameClassWithChildState
combines half-made name class and newly found child name class into the name class.

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

Specified by:
castNameClass in class NameClassWithChildState


MSV