Package com.sun.msv.reader.trex.ng
Class NGNameState
java.lang.Object
com.sun.msv.reader.State
com.sun.msv.reader.SimpleState
com.sun.msv.reader.trex.NameClassState
com.sun.msv.reader.trex.NameClassWithChildState
com.sun.msv.reader.trex.ng.NGNameState
- All Implemented Interfaces:
ContentHandler
- Direct Known Subclasses:
NGNameState.AnyNameState,NGNameState.NsNameState
parses <anyName> name class.
- Author:
- Kohsuke KAWAGUCHI
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classParsing state for <anyName>static classParsing state for <nsName> -
Field Summary
Fields inherited from class com.sun.msv.reader.trex.NameClassWithChildState
allowNullChild, nameClass -
Method Summary
Modifier and TypeMethodDescriptionprotected NameClassannealNameClass(NameClass nameClass) performs final wrap-up and returns a fully created NameClass object that represents this element.protected NameClasscastNameClass(NameClass halfCastedNameClass, NameClass newChildNameClass) combines half-made name class and newly found child name class into the name class.protected Statecreates appropriate child state object for this elementprotected abstract NameClassthis method should return the name class that is used as the base.Methods inherited from class com.sun.msv.reader.trex.NameClassWithChildState
makeNameClass, onEndChildMethods inherited from class com.sun.msv.reader.trex.NameClassState
endSelf, getPropagatedNamespaceMethods inherited from class com.sun.msv.reader.SimpleState
endDocument, endElement, isGrammarElement, startElementMethods inherited from class com.sun.msv.reader.State
_assert, callInterceptExpression, characters, endPrefixMapping, getBaseURI, getLocation, getParentState, getStartTag, ignorableWhitespace, init, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, startSelfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Method Details
-
createChildState
Description copied from class:SimpleStatecreates appropriate child state object for this element- Overrides:
createChildStatein classNameClassWithChildState
-
castNameClass
Description copied from class:NameClassWithChildStatecombines 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:
castNameClassin classNameClassWithChildState
-
annealNameClass
performs final wrap-up and returns a fully created NameClass object that represents this element.- Overrides:
annealNameClassin classNameClassWithChildState
-
getMainNameClass
this method should return the name class that is used as the base.
-