Attributes2


Attributes2 org.xml.sax.ext

Java 5.0

This interface extends org.xml.sax.Attributes and adds methods for determining if an attribute was declared in the DTD and whether an attribute value was explicitly specified in the document or whether a default value from the DTD was used. If the SAX implementation supports this interface, the Attributes object passed to the startElement( ) method of the ContentHandler implements this interface. You can also test for support by querying the feature named "http://xml.org/sax/features/use-attributes2" with XMLReader.getFeature( ) .

Figure 22-7. org.xml.sax.ext.Attributes2

 public interface  Attributes2  extends org.xml.sax.Attributes {  // Public Instance Methods  boolean  isDeclared  (String  qName  );        boolean  isDeclared  (int  index  );        boolean  isDeclared  (String  uri  , String  localName  );        boolean  isSpecified  (String  qName  );        boolean  isSpecified  (int  index  );        boolean  isSpecified  (String  uri  , String  localName  );   } 

Implementations

Attributes2Impl



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net