|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ctc.wstx.sr.InputElementStack
com.ctc.wstx.sr.NsInputElementStack
com.ctc.wstx.sr.VNsInputElementStack
Sub-class of NsInputElementStack that adds basic support for
(DTD-based) validation of XML documents.
| Field Summary | |
protected java.util.Map |
mElemSpecs
Map that contains element specifications from DTD; null for non-validating parsers. |
| Fields inherited from class com.ctc.wstx.sr.NsInputElementStack |
mAttrCollector, mElements, mLastLocalName, mLastName, mLastNsURI, mLastPrefix, mNamespaces, mNsCounts, mPrefixXml, mPrefixXmlns, mSize |
| Fields inherited from class com.ctc.wstx.sr.InputElementStack |
mReporter, UNKNOWN_ATTR_TYPE |
| Constructor Summary | |
VNsInputElementStack(int initialSize,
java.lang.String prefixXml,
java.lang.String prefixXmlns,
boolean normAttrs)
|
|
| Method Summary | |
java.lang.String |
getAttributeType(int index)
Input element stack has to ask validator about this data; validator keeps track of attribute declarations for the current element |
int |
getIdAttributeIndex()
Default implementation just indicates it does not know of such attributes; this because that requires DTD information that only some implementations have. |
int |
getNotationAttributeIndex()
Default implementation just indicates it does not know of such attributes; this because that requires DTD information that only some implementations have. |
int |
pop()
Method called by the stream reader to remove the topmost (start) element from the stack; called when an end element is encountered during parsing. |
int |
resolveElem(boolean internNsURIs)
Method called to update information about top of the stack, with attribute information passed in. |
void |
setElementSpecs(java.util.Map elemSpecs,
SymbolTable symbols,
boolean normAttrs,
java.util.Map generalEntities)
Method called by the validating stream reader if and when it has read internal and/or external DTD subsets, and has thus parsed element specifications. |
| Methods inherited from class com.ctc.wstx.sr.NsInputElementStack |
createNonTransientNsContext, findAttributeIndex, getAttrCollector, getAttributeCount, getCurrentNsCount, getDefaultNsURI, getDepth, getLocalName, getLocalNsPrefix, getLocalNsURI, getNamespaceURI, getNsURI, getPrefix, getPrefix, getPrefixes, getQName, getTopElementDesc, getTotalNsCount, isEmpty, isNamespaceAware, matches, push, push |
| Methods inherited from class com.ctc.wstx.sr.InputElementStack |
connectReporter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Map mElemSpecs
| Constructor Detail |
public VNsInputElementStack(int initialSize,
java.lang.String prefixXml,
java.lang.String prefixXmlns,
boolean normAttrs)
| Method Detail |
public void setElementSpecs(java.util.Map elemSpecs,
SymbolTable symbols,
boolean normAttrs,
java.util.Map generalEntities)
setElementSpecs in class InputElementStack
public int pop()
throws WstxException
InputElementStack
pop in class NsInputElementStackWstxException
public int resolveElem(boolean internNsURIs)
throws WstxException
resolveElem in class NsInputElementStackWstxExceptionpublic java.lang.String getAttributeType(int index)
getAttributeType in class InputElementStackpublic int getIdAttributeIndex()
InputElementStack
getIdAttributeIndex in interface AttributeInfogetIdAttributeIndex in class InputElementStackpublic int getNotationAttributeIndex()
InputElementStack
getNotationAttributeIndex in interface AttributeInfogetNotationAttributeIndex in class InputElementStack
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||