Module java.xml

Interface Attributes2

All Superinterfaces:
Attributes
All Known Implementing Classes:
Attributes2Impl

public interface Attributes2 extends Attributes
SAX2 extension to augment the per-attribute information provided through Attributes. If an implementation supports this extension, the attributes provided in ContentHandler.startElement() will implement this interface, and the http://xml.org/sax/features/use-attributes2 feature flag will have the value true.

XMLReader implementations are not required to support this information, and it is not part of core-only SAX2 distributions.

Note that if an attribute was defaulted (!isSpecified()) it will of necessity also have been declared (isDeclared()) in the DTD. Similarly if an attribute's type is anything except CDATA, then it must have been declared.

Since:
1.5, SAX 2.0 (extensions 1.1 alpha)