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

public Class AttList

extends Object
implements Attributes
Class Inheritance
All Implemented Interfaces
org.xml.sax.Attributes
Imports
org.w3c.dom.Attr, .NamedNodeMap, .Node, org.xml.sax.Attributes

Wraps a DOM attribute list in a SAX Attributes.

Field Summary

Modifier and TypeField and Description
pack-priv NamedNodeMap
m_attrs

List of attribute nodes

pack-priv int
m_lastIndex

Index of last attribute node

Constructor Summary

AccessConstructor and Description
public
AttList(NamedNodeMap
List of attributes this will contain
attrs
)

Constructor AttList

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

The index of the attribute, or -1 if it does not appear in the list.
getIndex
(String
The Namespace URI, or the empty string if the name has no Namespace URI.
uri
,
String
The attribute's local name.
localPart
)

Implements org.xml.sax.Attributes.getIndex.

Look up the index of an attribute by Namespace name.

public int

Returns:

The index of the attribute, or -1 if it does not appear in the list.
getIndex
(String
The qualified (prefixed) name.
qName
)

Implements org.xml.sax.Attributes.getIndex.

Look up the index of an attribute by raw XML 1.0 name.

public int

Returns:

number of attribute nodes
getLength
()

Implements org.xml.sax.Attributes.getLength.

Get the number of attribute nodes in the list

public String

Returns:

The local name, or the empty string if Namespace processing is not being performed, or null if the index is out of range.
getLocalName
(int
The attribute index (zero-based).
index
)

Implements org.xml.sax.Attributes.getLocalName.

Look up an attribute's local name by index.

public String

Returns:

The attribute's qualified name
getQName
(int
The attribute index (zero-based).
i
)

Implements org.xml.sax.Attributes.getQName.

Look up an attribute's qualified name by index.

public String

Returns:

the attribute's node type
getType
(int
The attribute index (zero-based)
i
)

Implements org.xml.sax.Attributes.getType.

Get the attribute's node type by index

public String

Returns:

the attribute's node type
getType
(String
Attribute name
name
)

Implements org.xml.sax.Attributes.getType.

Get the attribute's node type by name

public String

Returns:

The attribute type as a string, or null if the attribute is not in the list or if Namespace processing is not being performed.
getType
(String
The Namespace URI, or the empty String if the name has no Namespace URI.
uri
,
String
The local name of the attribute.
localName
)

Implements org.xml.sax.Attributes.getType.

Look up an attribute's type by Namespace name.

public String

Returns:

The Namespace URI, or the empty string if none is available, or null if the index is out of range.
getURI
(int
The attribute index (zero-based).
index
)

Implements org.xml.sax.Attributes.getURI.

Look up an attribute's Namespace URI by index.

public String

Returns:

the attribute's node value
getValue
(int
The attribute index (zero-based)
i
)

Implements org.xml.sax.Attributes.getValue.

Get the attribute's node value by index

public String

Returns:

The attribute node's value
getValue
(String
The attribute node's name
name
)

Implements org.xml.sax.Attributes.getValue.

Look up an attribute's value by name.

public String

Returns:

The attribute value as a string, or null if the attribute is not in the list.
getValue
(String
The Namespace URI, or the empty String if the name has no Namespace URI.
uri
,
String
The local name of the attribute.
localName
)

Implements org.xml.sax.Attributes.getValue.

Look up an attribute's value by Namespace name.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

m_attrsback to summary
pack-priv NamedNodeMap m_attrs

List of attribute nodes

m_lastIndexback to summary
pack-priv int m_lastIndex

Index of last attribute node

Constructor Detail

AttListback to summary
public AttList(NamedNodeMap attrs)

Constructor AttList

Parameters
attrs:NamedNodeMap

List of attributes this will contain

Method Detail

getIndexback to summary
public int getIndex(String uri, String localPart)

Implements org.xml.sax.Attributes.getIndex.

Look up the index of an attribute by Namespace name.

Parameters
uri:String

The Namespace URI, or the empty string if the name has no Namespace URI.

localPart:String

The attribute's local name.

Returns:int

The index of the attribute, or -1 if it does not appear in the list.

getIndexback to summary
public int getIndex(String qName)

Implements org.xml.sax.Attributes.getIndex.

Look up the index of an attribute by raw XML 1.0 name.

Parameters
qName:String

The qualified (prefixed) name.

Returns:int

The index of the attribute, or -1 if it does not appear in the list.

getLengthback to summary
public int getLength()

Implements org.xml.sax.Attributes.getLength.

Get the number of attribute nodes in the list

Returns:int

number of attribute nodes

getLocalNameback to summary
public String getLocalName(int index)

Implements org.xml.sax.Attributes.getLocalName.

Look up an attribute's local name by index.

Parameters
index:int

The attribute index (zero-based).

Returns:String

The local name, or the empty string if Namespace processing is not being performed, or null if the index is out of range.

getQNameback to summary
public String getQName(int i)

Implements org.xml.sax.Attributes.getQName.

Look up an attribute's qualified name by index.

Parameters
i:int

The attribute index (zero-based).

Returns:String

The attribute's qualified name

getTypeback to summary
public String getType(int i)

Implements org.xml.sax.Attributes.getType.

Get the attribute's node type by index

Parameters
i:int

The attribute index (zero-based)

Returns:String

the attribute's node type

getTypeback to summary
public String getType(String name)

Implements org.xml.sax.Attributes.getType.

Get the attribute's node type by name

Parameters
name:String

Attribute name

Returns:String

the attribute's node type

getTypeback to summary
public String getType(String uri, String localName)

Implements org.xml.sax.Attributes.getType.

Look up an attribute's type by Namespace name.

Parameters
uri:String

The Namespace URI, or the empty String if the name has no Namespace URI.

localName:String

The local name of the attribute.

Returns:String

The attribute type as a string, or null if the attribute is not in the list or if Namespace processing is not being performed.

getURIback to summary
public String getURI(int index)

Implements org.xml.sax.Attributes.getURI.

Look up an attribute's Namespace URI by index.

Parameters
index:int

The attribute index (zero-based).

Returns:String

The Namespace URI, or the empty string if none is available, or null if the index is out of range.

getValueback to summary
public String getValue(int i)

Implements org.xml.sax.Attributes.getValue.

Get the attribute's node value by index

Parameters
i:int

The attribute index (zero-based)

Returns:String

the attribute's node value

getValueback to summary
public String getValue(String name)

Implements org.xml.sax.Attributes.getValue.

Look up an attribute's value by name.

Parameters
name:String

The attribute node's name

Returns:String

The attribute node's value

getValueback to summary
public String getValue(String uri, String localName)

Implements org.xml.sax.Attributes.getValue.

Look up an attribute's value by Namespace name.

Parameters
uri:String

The Namespace URI, or the empty String if the name has no Namespace URI.

localName:String

The local name of the attribute.

Returns:String

The attribute value as a string, or null if the attribute is not in the list.