public final class DTDIdAttr 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 | 
|---|
| DTDIdAttr(PrefixedName 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, ...) | 
| boolean | typeIsId() | 
| String | validate(DTDValidatorBase v,
        char[] cbuf,
        int start,
        int end,
        boolean normalize)Method called by the validator
 to let the attribute do necessary normalization and/or validation
 for the value. | 
| 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, typeIsNotation, validate, validateDefaultName, validateDefaultNames, validateDefaultNmToken, validateEnumValuepublic DTDIdAttr(PrefixedName name, DefaultAttrValue defValue, int specIndex, boolean nsAware, boolean xml11)
note: although ID attributes are not to have default value, this is 'only' a validity constraint, and in dtd-aware-but- not-validating mode it is apparently 'legal' to add default values.
public DTDAttribute cloneWith(int specIndex)
cloneWith in class DTDAttributepublic int getValueType()
DTDAttributeNote:
getValueType in class DTDAttributepublic boolean typeIsId()
typeIsId in class DTDAttributepublic String validate(DTDValidatorBase v, char[] cbuf, int start, int end, boolean normalize) throws XMLStreamException
validate in class DTDAttributeXMLStreamExceptionpublic void validateDefault(InputProblemReporter rep, boolean normalize)
validateDefault in class DTDAttributeCopyright © 2018 FasterXML. All rights reserved.