public final class DTDIdRefsAttr extends 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| Constructor and Description |
|---|
DTDIdRefsAttr(NameKey name,
DefaultAttrValue defValue,
int specIndex,
boolean nsAware,
boolean xml11)
Main constructor.
|
| Modifier and Type | Method and Description |
|---|---|
DTDAttribute |
cloneWith(int specIndex) |
int |
getValueType()
Returns the value type of this attribute as an enumerated int
to match type (CDATA, ...)
|
java.lang.String |
validate(DTDValidatorBase v,
char[] cbuf,
int start,
int end,
boolean normalize) |
void |
validateDefault(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.
|
checkEntity, findEntityDecl, getDefaultValue, getName, getSpecialIndex, getValueTypeString, hasDefaultValue, isFixed, isRequired, isSpecial, needsValidation, normalize, normalizeDefault, reportInvalidChar, reportValidationProblem, reportValidationProblem, toString, typeIsId, typeIsNotation, validate, validateDefaultName, validateDefaultNames, validateDefaultNmToken, validateEnumValuepublic DTDIdRefsAttr(NameKey name, DefaultAttrValue defValue, int specIndex, boolean nsAware, boolean xml11)
public DTDAttribute cloneWith(int specIndex)
cloneWith in class DTDAttributepublic int getValueType()
DTDAttributeNote:
getValueType in class DTDAttributepublic java.lang.String validate(DTDValidatorBase v, char[] cbuf, int start, int end, boolean normalize) throws XMLValidationException
validate in class DTDAttributeXMLValidationExceptionpublic void validateDefault(InputProblemReporter rep, boolean normalize) throws XMLValidationException
It's unlikely there will be default values... but just in case, let's implement it properly.
validateDefault in class DTDAttributeXMLValidationException