Name
The AttributesImpl Class
Synopsis
AttributesImpl
is a default implementation of the Attributes
interface that SAX parsers
and filters may use. Besides the methods of the Attributes
interface, this class offers
manipulator methods so the list of attributes can be modified or
reused. These methods allow you to take a persistent snapshot of
an Attributes
object in
startElement( )
and construct
or modify an Attributes
object
in a SAX driver or filter:
package org.xml.sax.helpers; public classAttributesImpl
implements Attributes { publicAttributesImpl
( ); publicAttributesImpl
(Attributesatts
); public intgetLength
( ); public StringgetURI
(intindex
); public StringgetLocalName
(intindex
); public StringgetQName
(intindex
); public StringgetType
(intindex
); public StringgetValue
(intindex
); public intgetIndex
(Stringuri
, StringlocalName
); public intgetIndex
(StringqualifiedName
); public StringgetType
(Stringuri
, StringlocalName
); public StringgetType
(StringqualifiedName
); public StringgetValue
(Stringuri
, StringlocalName
); public StringgetValue
(StringqualifiedName
); public voidclear
( ); public voidsetAttributes
(Attributesatts
); public voidaddAttribu
te
(Stringuri
, StringlocalName
, StringqualifiedName
, Stringtype
, Stringvalue
); public voidsetAttribute
(intindex
, Stringuri
, StringlocalName
, StringqualifiedName
, Stringtype
, Stringvalue
); public voidremoveAttribute
(intindex
) public voidsetURI
(intindex
, Stringuri
) public voidsetLocalName
(intindex
, String ...
Get XML in a Nutshell, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.