Top Description Fields Constructors Methods
com.sun.org.apache.xml.internal.utils

public Class MutableAttrListImpl

extends AttributesImpl
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable, org.xml.sax.Attributes, org.xml.sax.helpers.AttributesImpl

Mutable version of AttributesImpl.

Field Summary

Modifier and TypeField and Description
pack-priv static final long

Constructor Summary

AccessConstructor and Description
public
MutableAttrListImpl()

Construct a new, empty AttributesImpl object.

public
MutableAttrListImpl(Attributes
The existing Attributes object.
atts
)

Copy an existing Attributes object.

Method Summary

Modifier and TypeMethod and Description
public void
addAttribute(String
The Namespace URI, or the empty string if none is available or Namespace processing is not being performed.
uri
,
String
The local name, or the empty string if Namespace processing is not being performed.
localName
,
String
The qualified (prefixed) name, or the empty string if qualified names are not available.
qName
,
String
The attribute type as a string.
type
,
String
The attribute value.
value
)

Overrides org.xml.sax.helpers.AttributesImpl.addAttribute.

Add an attribute to the end of the list.
public void
addAttributes(Attributes
List of attributes to add to this list
atts
)

Add the contents of the attribute list to this list.

public boolean

Returns:

true if an attribute is found with this name
contains
(String
Raw name of attribute to look for
name
)

Return true if list contains the given (raw) attribute name.

Inherited from org.xml.sax.helpers.AttributesImpl:
cleargetIndexgetIndexgetLengthgetLocalNamegetQNamegetTypegetTypegetTypegetURIgetValuegetValuegetValueremoveAttributesetAttributesetAttributessetLocalNamesetQNamesetTypesetURIsetValue

Field Detail

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Constructor Detail

MutableAttrListImplback to summary
public MutableAttrListImpl()

Construct a new, empty AttributesImpl object.

MutableAttrListImplback to summary
public MutableAttrListImpl(Attributes atts)

Copy an existing Attributes object.

This constructor is especially useful inside a start element event.

Parameters
atts:Attributes

The existing Attributes object.

Method Detail

addAttributeback to summary
public void addAttribute(String uri, String localName, String qName, String type, String value)

Overrides org.xml.sax.helpers.AttributesImpl.addAttribute.

Add an attribute to the end of the list.

For the sake of speed, this method does no checking to see if the attribute is already in the list: that is the responsibility of the application.

Parameters
uri:String

The Namespace URI, or the empty string if none is available or Namespace processing is not being performed.

localName:String

The local name, or the empty string if Namespace processing is not being performed.

qName:String

The qualified (prefixed) name, or the empty string if qualified names are not available.

type:String

The attribute type as a string.

value:String

The attribute value.

addAttributesback to summary
public void addAttributes(Attributes atts)

Add the contents of the attribute list to this list.

Parameters
atts:Attributes

List of attributes to add to this list

containsback to summary
public boolean contains(String name)

Return true if list contains the given (raw) attribute name.

Parameters
name:String

Raw name of attribute to look for

Returns:boolean

true if an attribute is found with this name