|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ctc.wstx.dtd.DTDElement
public final class DTDElement
Class that contains element definitions from DTD.
Notes about thread-safety: this class is not thread-safe, since it does not have to be, in general case. That is, the only instances that can be shared are external subset instances, and those are used in read-only manner (with the exception of temporary arrays constructed on-demand).
Method Summary | |
---|---|
DTDAttribute |
addAttribute(InputProblemReporter rep,
NameKey attrName,
int valueType,
DefaultAttrValue defValue,
WordResolver enumValues,
boolean fullyValidate)
Method called by DTD parser when it has read information about an attribute that belong to this element |
DTDAttribute |
addNsDefault(InputProblemReporter rep,
NameKey attrName,
int valueType,
DefaultAttrValue defValue,
boolean fullyValidate)
Method called to add a definition of a namespace-declaration pseudo-attribute with a default value. |
boolean |
attrsNeedValidation()
|
static DTDElement |
createDefined(ReaderConfig cfg,
javax.xml.stream.Location loc,
NameKey name,
StructValidator val,
int allowedContent)
Method called to create an actual element definition, matching an ELEMENT directive in a DTD subset. |
static DTDElement |
createPlaceholder(ReaderConfig cfg,
javax.xml.stream.Location loc,
NameKey name)
Method called to create a "placeholder" element definition, needed to contain attribute definitions. |
DTDElement |
define(javax.xml.stream.Location loc,
StructValidator val,
int allowedContent)
Method called on placeholder element, to create a real instance that has all attribute definitions placeholder had (it'll always have at least one -- otherwise no placeholder was needed). |
void |
defineFrom(InputProblemReporter rep,
DTDElement definedElem,
boolean fullyValidate)
Method called to "upgrade" a placeholder using a defined element, including adding attributes. |
int |
getAllowedContent()
|
int |
getAllowedContentIfSpace()
Specialized accessor used by non-validating but typing 'validator': essentially, used to figure out whether #PCDATA is allowed or not; and based on that, return one of 2 allowable text values (only space, or anything). |
java.util.HashMap |
getAttributes()
|
java.lang.String |
getDisplayName()
|
DTDAttribute |
getIdAttribute()
|
javax.xml.stream.Location |
getLocation()
|
NameKey |
getName()
|
DTDAttribute |
getNotationAttribute()
|
protected java.util.HashMap |
getNsDefaults()
|
java.util.List |
getSpecialAttrs()
|
int |
getSpecialCount()
|
StructValidator |
getValidator()
|
boolean |
hasAttrDefaultValues()
|
boolean |
hasFixedAttrs()
|
boolean |
hasNsDefaults()
|
boolean |
isDefined()
|
void |
mergeMissingAttributesFrom(InputProblemReporter rep,
DTDElement other,
boolean fullyValidate)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static DTDElement createDefined(ReaderConfig cfg, javax.xml.stream.Location loc, NameKey name, StructValidator val, int allowedContent)
public static DTDElement createPlaceholder(ReaderConfig cfg, javax.xml.stream.Location loc, NameKey name)
public DTDElement define(javax.xml.stream.Location loc, StructValidator val, int allowedContent)
public void defineFrom(InputProblemReporter rep, DTDElement definedElem, boolean fullyValidate) throws WstxException
WstxException
public DTDAttribute addAttribute(InputProblemReporter rep, NameKey attrName, int valueType, DefaultAttrValue defValue, WordResolver enumValues, boolean fullyValidate) throws WstxException
WstxException
public DTDAttribute addNsDefault(InputProblemReporter rep, NameKey attrName, int valueType, DefaultAttrValue defValue, boolean fullyValidate) throws WstxException
WstxException
public void mergeMissingAttributesFrom(InputProblemReporter rep, DTDElement other, boolean fullyValidate) throws WstxException
WstxException
public NameKey getName()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getDisplayName()
public javax.xml.stream.Location getLocation()
public boolean isDefined()
public int getAllowedContent()
public int getAllowedContentIfSpace()
public java.util.HashMap getAttributes()
public int getSpecialCount()
public java.util.List getSpecialAttrs()
public boolean attrsNeedValidation()
public boolean hasFixedAttrs()
public boolean hasAttrDefaultValues()
public DTDAttribute getIdAttribute()
public DTDAttribute getNotationAttribute()
public boolean hasNsDefaults()
public StructValidator getValidator()
protected java.util.HashMap getNsDefaults()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |