Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
org.xml.sax.ext

Interface Attributes2

java.lang.Object
|
+--org.xml.sax.Attributes
   |
   +--org.xml.sax.ext.Attributes2

All Implemented Interfaces:

Attributes


public interface Attributes2

implements Attributes

SAX2 extension to augment the per-attribute information provided though Attributes. If an implementation supports this extension, the attributes provided in org.xml.sax.ContentHandler#startElement ContentHandler.startElement() will implement this interface, and the http://xml.org/sax/features/use-attributes2 feature flag will have the value true.
This module, both source code and documentation, is in the Public Domain, and comes with NO WARRANTY.

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

Since:Author:

Method Summary

booleanisDeclared(int index)

booleanisDeclared(java.lang.String qName)

booleanisDeclared(java.lang.String uri, java.lang.String localName)

booleanisSpecified(int index)

Returns true unless the attribute value was provided by DTD defaulting.
booleanisSpecified(java.lang.String uri, java.lang.String localName)

Returns true unless the attribute value was provided by DTD defaulting.
booleanisSpecified(java.lang.String qName)

Returns true unless the attribute value was provided by DTD defaulting.

Method Details

isDeclared

public boolean isDeclared(int index)

Parameters:

Returns:

Throws:


isDeclared

public boolean isDeclared(java.lang.String qName)

Parameters:

Returns:

Throws:


isDeclared

public boolean isDeclared(java.lang.String uri, java.lang.String localName)

Parameters:

Returns:

Throws:


isSpecified

public boolean isSpecified(int index)

Returns true unless the attribute value was provided by DTD defaulting.

Parameters:

Returns:

Throws:


isSpecified

public boolean isSpecified(java.lang.String qName)

Returns true unless the attribute value was provided by DTD defaulting.

Parameters:

Returns:

Throws:


isSpecified

public boolean isSpecified(java.lang.String uri, java.lang.String localName)

Returns true unless the attribute value was provided by DTD defaulting.

Parameters:

Returns:

Throws: