public abstract class NGNameState extends NameClassWithChildState
Modifier and Type | Class and Description |
---|---|
static class |
NGNameState.AnyNameState
Parsing state for <anyName>
|
static class |
NGNameState.NsNameState
Parsing state for <nsName>
|
allowNullChild, nameClass
Constructor and Description |
---|
NGNameState() |
Modifier and Type | Method and 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 element
|
protected abstract NameClass |
getMainNameClass()
this method should return the name class that is used as the base.
|
makeNameClass, onEndChild
endSelf, getPropagatedNamespace
endDocument, endElement, isGrammarElement, startElement
_assert, callInterceptExpression, characters, endPrefixMapping, getBaseURI, getLocation, getParentState, getStartTag, ignorableWhitespace, init, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, startSelf
protected State createChildState(StartTagInfo tag)
SimpleState
createChildState
in class NameClassWithChildState
protected NameClass castNameClass(NameClass halfCastedNameClass, NameClass newChildNameClass)
NameClassWithChildState
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 ) )
castNameClass
in class NameClassWithChildState
protected NameClass annealNameClass(NameClass nameClass)
annealNameClass
in class NameClassWithChildState
protected abstract NameClass getMainNameClass()