public final class DTDNotationAttr 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 |
---|
DTDNotationAttr(PrefixedName name,
DefaultAttrValue defValue,
int specIndex,
boolean nsAware,
boolean xml11,
WordResolver enumValues) |
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 |
typeIsNotation() |
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, typeIsId, validate, validateDefaultName, validateDefaultNames, validateDefaultNmToken, validateEnumValue
public DTDNotationAttr(PrefixedName name, DefaultAttrValue defValue, int specIndex, boolean nsAware, boolean xml11, WordResolver enumValues)
public DTDAttribute cloneWith(int specIndex)
cloneWith
in class DTDAttribute
public int getValueType()
DTDAttribute
Note:
getValueType
in class DTDAttribute
public boolean typeIsNotation()
typeIsNotation
in class DTDAttribute
public String validate(DTDValidatorBase v, char[] cbuf, int start, int end, boolean normalize) throws XMLStreamException
Note: identical to the implementation in DTDEnumAttr
validate
in class DTDAttribute
XMLStreamException
public void validateDefault(InputProblemReporter rep, boolean normalize) throws XMLStreamException
validateDefault
in class DTDAttribute
XMLStreamException
Copyright © 2012–2015 FasterXML. All rights reserved.