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

public final Class DTDIdRefsAttr

extends DTDAttribute
Class Inheritance
Imports
javax.xml.stream.Location, .XMLStreamException, com.ctc.wstx.io.WstxInputData, com.ctc.wstx.sr.InputProblemReporter, com.ctc.wstx.util.ElementId, .ElementIdMap, .PrefixedName

Attribute class for attributes that contain multiple references to elements that have matching identifier specified.

Field Summary

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
DTDIdRefsAttr(PrefixedName name, DefaultAttrValue defValue, int specIndex, boolean nsAware, boolean xml11)

Main constructor.

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.

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

Constructor Detail

DTDIdRefsAttrback to summary
public DTDIdRefsAttr(PrefixedName name, DefaultAttrValue defValue, int specIndex, boolean nsAware, boolean xml11)

Main constructor.

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.

Annotations
@SuppressWarnings:cast
@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.

It's unlikely there will be default values... but just in case, let's implement it properly.

Annotations
@Override