Class DTDIdRefsAttr
java.lang.Object
com.ctc.wstx.dtd.DTDAttribute
com.ctc.wstx.dtd.DTDIdRefsAttr
Attribute class for attributes that contain multiple references
to elements that have matching identifier specified.
-
Field Summary
Fields inherited from class DTDAttribute
CHAR_SPACE, mCfgNsAware, mCfgXml11, mDefValue, mName, mSpecialIndex, sTypes, TYPE_CDATA, TYPE_ENTITIES, TYPE_ENTITY, TYPE_ENUMERATED, TYPE_ID, TYPE_IDREF, TYPE_IDREFS, TYPE_NMTOKEN, TYPE_NMTOKENS, TYPE_NOTATION -
Constructor Summary
ConstructorsConstructorDescriptionDTDIdRefsAttr(PrefixedName name, DefaultAttrValue defValue, int specIndex, boolean nsAware, boolean xml11) Main constructor. -
Method Summary
Modifier and TypeMethodDescriptioncloneWith(int specIndex) intReturns the value type of this attribute as an enumerated int to match type (CDATA, ...)validate(DTDValidatorBase v, char[] cbuf, int start, int end, boolean normalize) voidvalidateDefault(InputProblemReporter rep, boolean normalize) Method called by the validator to ask attribute to verify that the default it has (if any) is valid for such type.Methods inherited from class 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
-
Constructor Details
-
DTDIdRefsAttr
public DTDIdRefsAttr(PrefixedName name, DefaultAttrValue defValue, int specIndex, boolean nsAware, boolean xml11) Main constructor.
-
-
Method Details
-
cloneWith
- Specified by:
cloneWithin classDTDAttribute
-
getValueType
public int getValueType()Description copied from class:DTDAttributeReturns the value type of this attribute as an enumerated int to match type (CDATA, ...)Note:
- Overrides:
getValueTypein classDTDAttribute
-
validate
public String validate(DTDValidatorBase v, char[] cbuf, int start, int end, boolean normalize) throws XMLStreamException - Specified by:
validatein classDTDAttribute- Throws:
XMLStreamException
-
validateDefault
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:
validateDefaultin classDTDAttribute- Throws:
XMLStreamException
-