com.ctc.wstx.dtd
Class DTDIdRefsAttr
java.lang.Object
com.ctc.wstx.dtd.DTDAttribute
com.ctc.wstx.dtd.DTDIdRefsAttr
public final class DTDIdRefsAttr
- extends DTDAttribute
Attribute class for attributes that contain multiple references
to elements that have matching identifier specified.
Fields inherited from class com.ctc.wstx.dtd.DTDAttribute |
mCfgNsAware, mCfgXml11, mDefValue, mName, mSpecialIndex, TYPE_CDATA, TYPE_ENTITIES, TYPE_ENTITY, TYPE_ENUMERATED, TYPE_ID, TYPE_IDREF, TYPE_IDREFS, TYPE_NMTOKEN, TYPE_NMTOKENS, TYPE_NOTATION |
Methods inherited from class com.ctc.wstx.dtd.DTDAttribute |
checkEntity, findEntityDecl, getDefaultValue, getName, getSpecialIndex, getValueTypeString, hasDefaultValue, isFixed, isRequired, isSpecial, needsValidation, normalize, normalizeDefault, reportInvalidChar, reportValidationProblem, reportValidationProblem, toString, typeIsId, typeIsNotation, validate, validateDefaultName, validateDefaultNames, validateDefaultNmToken, validateEnumValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DTDIdRefsAttr
public DTDIdRefsAttr(NameKey name,
DefaultAttrValue defValue,
int specIndex,
boolean nsAware,
boolean xml11)
- Main constructor.
cloneWith
public DTDAttribute cloneWith(int specIndex)
- Specified by:
cloneWith
in class DTDAttribute
getValueType
public int getValueType()
- Description copied from class:
DTDAttribute
- Returns the value type of this attribute as an enumerated int
to match type (CDATA, ...)
Note:
- Overrides:
getValueType
in class DTDAttribute
validate
public java.lang.String validate(DTDValidatorBase v,
char[] cbuf,
int start,
int end,
boolean normalize)
throws XMLValidationException
- Specified by:
validate
in class DTDAttribute
- Throws:
XMLValidationException
validateDefault
public void validateDefault(InputProblemReporter rep,
boolean normalize)
throws XMLValidationException
- Method called by the validator
to ask attribute to verify that the default it has (if any) is
valid for such type.
It's unlikely there will be default values... but just in case,
let's implement it properly.
- Specified by:
validateDefault
in class DTDAttribute
- Throws:
XMLValidationException