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

public final Class DTDEnumAttr

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 have enumerated 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
DTDEnumAttr(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 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:
checkEntityfindEntityDeclgetDefaultValuegetNamegetSpecialIndexgetValueTypeStringhasDefaultValueisFixedisRequiredisSpecialneedsValidationnormalizenormalizeDefaultreportInvalidCharreportValidationProblemreportValidationProblemtoStringtypeIsIdtypeIsNotationvalidatevalidateDefaultNamevalidateDefaultNamesvalidateDefaultNmTokenvalidateEnumValue

Field Detail

Constructor Detail

DTDEnumAttrback to summary
public DTDEnumAttr(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
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.

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