Top Description Fields Constructors Methods
com.ctc.wstx.dtd

public final Class DTDNotationAttr

extends DTDAttribute
Class Inheritance
Imports
javax.xml.stream.XMLStreamException, com.ctc.wstx.sr.InputProblemReporter, com.ctc.wstx.util.PrefixedName, .WordResolver

Specific attribute class for attributes that are of NOTATION type, and also contain enumerated set of legal values.

Field Summary

Modifier and TypeField and Description
Inherited from com.ctc.wstx.dtd.DTDAttribute:
CHAR_SPACEmCfgNsAwaremCfgXml11mDefValuemNamemSpecialIndexsTypesTYPE_CDATATYPE_ENTITIESTYPE_ENTITYTYPE_ENUMERATEDTYPE_IDTYPE_IDREFTYPE_IDREFSTYPE_NMTOKENTYPE_NMTOKENSTYPE_NOTATION

Constructor Summary

AccessConstructor and Description
public
DTDNotationAttr(PrefixedName name, DefaultAttrValue defValue, int specIndex, boolean nsAware, boolean xml11, WordResolver enumValues)

Method Summary

Modifier and TypeMethod and Description
public DTDAttribute
cloneWith(int specIndex)

Implements abstract com.ctc.wstx.dtd.DTDAttribute.cloneWith.

public int
getValueType()

Overrides com.ctc.wstx.dtd.DTDAttribute.getValueType.

Returns the value type of this attribute as an enumerated int to match type (CDATA, ...)

Note:

public boolean
public String
validate(DTDValidatorBase v, char[] cbuf, int start, int end, boolean normalize)

Implements abstract com.ctc.wstx.dtd.DTDAttribute.validate.

Method called by the validator to let the attribute do necessary normalization and/or validation for the value.

public void
validateDefault(InputProblemReporter rep, boolean normalize)

Implements abstract com.ctc.wstx.dtd.DTDAttribute.validateDefault.

Method called by the validator to ask attribute to verify that the default it has (if any) is valid for such type.

Inherited from com.ctc.wstx.dtd.DTDAttribute:
checkEntityfindEntityDeclgetDefaultValuegetNamegetSpecialIndexgetValueTypeStringhasDefaultValueisFixedisRequiredisSpecialneedsValidationnormalizenormalizeDefaultreportInvalidCharreportValidationProblemreportValidationProblemtoStringtypeIsIdvalidatevalidateDefaultNamevalidateDefaultNamesvalidateDefaultNmTokenvalidateEnumValue

Field Detail

Constructor Detail

DTDNotationAttrback to summary
public DTDNotationAttr(PrefixedName name, DefaultAttrValue defValue, int specIndex, boolean nsAware, boolean xml11, WordResolver enumValues)

Method Detail

cloneWithback to summary
public DTDAttribute cloneWith(int specIndex)

Implements abstract com.ctc.wstx.dtd.DTDAttribute.cloneWith.

Annotations
@Override
getValueTypeback to summary
public int getValueType()

Overrides com.ctc.wstx.dtd.DTDAttribute.getValueType.

Doc from com.ctc.wstx.dtd.DTDAttribute.getValueType.

Returns the value type of this attribute as an enumerated int to match type (CDATA, ...)

Note:

Annotations
@Override
typeIsNotationback to summary
public boolean typeIsNotation()

Overrides com.ctc.wstx.dtd.DTDAttribute.typeIsNotation.

Annotations
@Override
validateback to summary
public String validate(DTDValidatorBase v, char[] cbuf, int start, int end, boolean normalize) throws XMLStreamException

Implements abstract com.ctc.wstx.dtd.DTDAttribute.validate.

Method called by the validator to let the attribute do necessary normalization and/or validation for the value.

Note

identical to the implementation in DTDEnumAttr

Annotations
@Override
validateDefaultback to summary
public void validateDefault(InputProblemReporter rep, boolean normalize) throws XMLStreamException

Implements abstract com.ctc.wstx.dtd.DTDAttribute.validateDefault.

Method called by the validator to ask attribute to verify that the default it has (if any) is valid for such type.

Annotations
@Override