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:
NameClassOwner, ContentHandler
- Direct Known Subclasses:
NGNameState.AnyNameState, NGNameState.NsNameState
parses <anyName> name class.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classParsing state for <anyName>static classParsing state for <nsName> -
Field Summary
Fields inherited from class NameClassWithChildState
allowNullChild, nameClass -
Constructor Summary
Constructors -
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 NameClassWithChildState
makeNameClass, onEndChildMethods inherited from class NameClassState
endSelf, getPropagatedNamespaceMethods inherited from class SimpleState
endDocument, endElement, isGrammarElement, startElementMethods inherited from class State
_assert, callInterceptExpression, characters, endPrefixMapping, getBaseURI, getLocation, getParentState, getStartTag, ignorableWhitespace, init, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, startSelf
-
Constructor Details
-
NGNameState
NGNameState()
-
-
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.
-