|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ctc.wstx.dtd.DTDAttribute
com.ctc.wstx.dtd.DTDNmTokenAttr
Specific attribute class for attributes that contain (unique) identifiers.
| Field Summary |
| Fields inherited from class com.ctc.wstx.dtd.DTDAttribute |
DEF_DEFAULT, DEF_FIXED, DEF_IMPLIED, DEF_REQUIRED, mDefValue, mDefValueType, mName, mSpecialIndex, TYPE_CDATA, TYPE_ENTITIES, TYPE_ENTITY, TYPE_ENUMERATED, TYPE_ID, TYPE_IDREF, TYPE_IDREFS, TYPE_NMTOKEN, TYPE_NMTOKENS, TYPE_NOTATION |
| Constructor Summary | |
DTDNmTokenAttr(NameKey name,
int defValueType,
java.lang.String defValue,
int specIndex)
Main constructor. |
|
| Method Summary | |
DTDAttribute |
cloneWith(int specIndex)
|
int |
getValueType()
Returns the value type of this attribute as an enumerated int to match type (CDATA, ...) |
void |
validate(ElementValidator v,
boolean normalize,
AttributeCollector ac,
int index)
Method called by the ElementValidator
to let the attribute do necessary normalization and/or validation
for the value. |
void |
validateDefault(InputProblemReporter rep,
boolean normalize)
Method called by the ElementValidator
to ask attribute to verify that the default it has (if any) is
valid for such type. |
| Methods inherited from class com.ctc.wstx.dtd.DTDAttribute |
checkEntity, findEntityDecl, getDefaultType, getDefaultValue, getName, getSpecialIndex, getValueTypeString, isFixed, isRequired, isSpecial, isSpecial, needsValidation, reportInvalidChar, reportParseError, reportParseError, toString, typeIsId, typeIsNotation, validateDefaultName, validateDefaultNames, validateDefaultNmToken |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DTDNmTokenAttr(NameKey name,
int defValueType,
java.lang.String defValue,
int specIndex)
| Method Detail |
public DTDAttribute cloneWith(int specIndex)
cloneWith in class DTDAttributepublic int getValueType()
DTDAttributeNote:
getValueType in class DTDAttribute
public void validate(ElementValidator v,
boolean normalize,
AttributeCollector ac,
int index)
throws WstxException
ElementValidator
to let the attribute do necessary normalization and/or validation
for the value.
validate in class DTDAttributeWstxException
public void validateDefault(InputProblemReporter rep,
boolean normalize)
throws WstxException
ElementValidator
to ask attribute to verify that the default it has (if any) is
valid for such type.
validateDefault in class DTDAttributeWstxException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||