public final class DTDCdataAttr extends DTDAttribute
DTDAttribute sub-class used for plain vanilla CDATA
valued attributes. Although base class implements most of the methods,
it's better designwise to keep that base class abstract and have
separate CDATA type as well.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 |
|---|
DTDCdataAttr(PrefixedName name,
DefaultAttrValue defValue,
int specIndex,
boolean nsAware,
boolean xml11) |
| Modifier and Type | Method and Description |
|---|---|
DTDAttribute |
cloneWith(int specIndex) |
String |
normalize(DTDValidatorBase v,
char[] cbuf,
int start,
int end)
Method called when no validation is to be done, but value is still
to be normalized as much as it can.
|
void |
normalizeDefault()
Method called to do initial normalization of the default attribute
value, without trying to verify its validity.
|
String |
validate(DTDValidatorBase v,
char[] cbuf,
int start,
int end,
boolean normalize) |
void |
validateDefault(InputProblemReporter rep,
boolean normalize)
Method called by the
DTDValidator
to ask attribute to verify that the default it has (if any) is
valid for such type. |
checkEntity, findEntityDecl, getDefaultValue, getName, getSpecialIndex, getValueType, getValueTypeString, hasDefaultValue, isFixed, isRequired, isSpecial, needsValidation, reportInvalidChar, reportValidationProblem, reportValidationProblem, toString, typeIsId, typeIsNotation, validate, validateDefaultName, validateDefaultNames, validateDefaultNmToken, validateEnumValuepublic DTDCdataAttr(PrefixedName name, DefaultAttrValue defValue, int specIndex, boolean nsAware, boolean xml11)
public DTDAttribute cloneWith(int specIndex)
cloneWith in class DTDAttributepublic String validate(DTDValidatorBase v, char[] cbuf, int start, int end, boolean normalize) throws org.codehaus.stax2.validation.XMLValidationException
validate in class DTDAttributeorg.codehaus.stax2.validation.XMLValidationExceptionpublic void validateDefault(InputProblemReporter rep, boolean normalize) throws XMLStreamException
DTDAttributeDTDValidator
to ask attribute to verify that the default it has (if any) is
valid for such type.validateDefault in class DTDAttributeXMLStreamExceptionpublic String normalize(DTDValidatorBase v, char[] cbuf, int start, int end)
DTDAttributeThe only exception is that CDATA will not do any normalization. But for now, let's implement basic functionality that CDTA instance will override
normalize in class DTDAttributev - Validator that invoked normalizationpublic void normalizeDefault()
DTDAttributenormalizeDefault in class DTDAttributeCopyright © 2024 FasterXML. All rights reserved.