|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ctc.wstx.dtd.ElementValidator
Class that will be instantiated by specialized instances of
InputElementStack, specifically the
validating ones (whether
namespace-aware or not).
| Field Summary | |
protected int |
mAttrCount
Number of attribute specification Objects in mAttrSpecs. |
protected DTDAttribute[] |
mAttrSpecs
List of attribute declarations/specifications, one for each attribute of the current element, for which there is a matching value (either explicitly defined, or assigned via defaulting). |
protected int |
mElemCount
|
protected DTDElement[] |
mElemStack
Stack of element definitions read from DTD. |
protected int |
mIdAttrIndex
Index of the attribute of type ID, within current element's attribute list. |
protected com.ctc.wstx.dtd.ElementIdMap |
mIdMap
Information about declared and referenced element ids (unique ids that attributes may defined, as defined by DTD) |
protected StructValidator[] |
mValidators
Stack of content structure validators, on matching indexes with element specification objects. |
| Constructor Summary | |
ElementValidator(InputProblemReporter rep,
SymbolTable symbols,
boolean nsAware,
java.util.Map genEntities,
AttributeCollector ac,
boolean normAttrs)
|
|
| Method Summary | |
java.lang.String |
getAttributeType(int index)
|
int |
getIdAttrIndex()
Method for finding out the index of the attribute (collected using the attribute collector; having DTD-derived info in same order) that is of type ID. |
int |
getNotationAttrIndex()
Method for finding out the index of the attribute (collected using the attribute collector; having DTD-derived info in same order) that is of type NOTATION. |
int |
pop(InputProblemReporter rep)
|
int |
resolveElem(InputProblemReporter rep,
DTDElement elem,
StringVector ns)
Method called to update information about the newly encountered (start) element. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected DTDElement[] mElemStack
protected int mElemCount
protected StructValidator[] mValidators
protected DTDAttribute[] mAttrSpecs
protected int mAttrCount
mAttrSpecs.
protected int mIdAttrIndex
protected com.ctc.wstx.dtd.ElementIdMap mIdMap
| Constructor Detail |
public ElementValidator(InputProblemReporter rep,
SymbolTable symbols,
boolean nsAware,
java.util.Map genEntities,
AttributeCollector ac,
boolean normAttrs)
| Method Detail |
public int pop(InputProblemReporter rep)
throws WstxException
WstxException
public int resolveElem(InputProblemReporter rep,
DTDElement elem,
StringVector ns)
throws WstxException
rep - Reporter instance that can be used to report back problems
(via exceptions)elem - Element to resolvens - (optional) Data structure that contains all currently
active namespace declarations; may be needed for resolving namespaced
default attributes' namespace URIs.
WstxExceptionpublic java.lang.String getAttributeType(int index)
public int getIdAttrIndex()
public int getNotationAttrIndex()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||