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:
NameClassOwner
,org.xml.sax.ContentHandler
- Direct Known Subclasses:
NGNameState.AnyNameState
,NGNameState.NsNameState
public abstract class NGNameState extends NameClassWithChildState
parses <anyName> name class.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NGNameState.AnyNameState
Parsing state for <anyName>static class
NGNameState.NsNameState
Parsing state for <nsName>
-
Field Summary
-
Fields inherited from class com.sun.msv.reader.trex.NameClassWithChildState
allowNullChild, nameClass
-
-
Constructor Summary
Constructors Constructor Description NGNameState()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected NameClass
annealNameClass(NameClass nameClass)
performs final wrap-up and returns a fully created NameClass object that represents this element.protected 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 elementprotected abstract NameClass
getMainNameClass()
this method should return the name class that is used as the base.-
Methods inherited from class com.sun.msv.reader.trex.NameClassWithChildState
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
-
-
-
-
Method Detail
-
createChildState
protected State createChildState(StartTagInfo tag)
Description copied from class:SimpleState
creates appropriate child state object for this element- Overrides:
createChildState
in classNameClassWithChildState
-
castNameClass
protected NameClass castNameClass(NameClass halfCastedNameClass, NameClass newChildNameClass)
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 classNameClassWithChildState
-
annealNameClass
protected NameClass annealNameClass(NameClass nameClass)
performs final wrap-up and returns a fully created NameClass object that represents this element.- Overrides:
annealNameClass
in classNameClassWithChildState
-
getMainNameClass
protected abstract NameClass getMainNameClass()
this method should return the name class that is used as the base.
-
-