| java.lang.Object org.apache.xml.utils.AttList
AttList | public class AttList implements Attributes(Code) | | Wraps a DOM attribute list in a SAX Attributes.
|
Method Summary | |
public int | getIndex(String uri, String localPart) Look up the index of an attribute by Namespace name.
Parameters: uri - The Namespace URI, or the empty string ifthe name has no Namespace URI. Parameters: localPart - The attribute's local name. | public int | getIndex(String qName) Look up the index of an attribute by raw XML 1.0 name.
Parameters: qName - The qualified (prefixed) name. | public int | getLength() | public String | getLocalName(int index) Look up an attribute's local name by index.
Parameters: index - The attribute index (zero-based). | public String | getQName(int i) Look up an attribute's qualified name by index.
Parameters: i - The attribute index (zero-based). | public String | getType(int i) | public String | getType(String name) | public String | getType(String uri, String localName) Look up an attribute's type by Namespace name.
Parameters: uri - The Namespace URI, or the empty String if thename has no Namespace URI. Parameters: localName - The local name of the attribute. | public String | getURI(int index) Look up an attribute's Namespace URI by index.
Parameters: index - The attribute index (zero-based). | public String | getValue(int i) | public String | getValue(String name) Look up an attribute's value by name. | public String | getValue(String uri, String localName) Look up an attribute's value by Namespace name.
Parameters: uri - The Namespace URI, or the empty String if thename has no Namespace URI. Parameters: localName - The local name of the attribute. |
m_lastIndex | int m_lastIndex(Code) | | Index of last attribute node
|
AttList | public AttList(NamedNodeMap attrs, DOMHelper dh)(Code) | | Constructor AttList
Parameters: attrs - List of attributes this will contain Parameters: dh - DOMHelper |
getIndex | public int getIndex(String uri, String localPart)(Code) | | Look up the index of an attribute by Namespace name.
Parameters: uri - The Namespace URI, or the empty string ifthe name has no Namespace URI. Parameters: localPart - The attribute's local name. The index of the attribute, or -1 if it does notappear in the list. |
getIndex | public int getIndex(String qName)(Code) | | Look up the index of an attribute by raw XML 1.0 name.
Parameters: qName - The qualified (prefixed) name. The index of the attribute, or -1 if it does notappear in the list. |
getLength | public int getLength()(Code) | | Get the number of attribute nodes in the list
number of attribute nodes |
getLocalName | public String getLocalName(int index)(Code) | | Look up an attribute's local name by index.
Parameters: index - The attribute index (zero-based). The local name, or the empty string if Namespaceprocessing is not being performed, or nullif the index is out of range. |
getQName | public String getQName(int i)(Code) | | Look up an attribute's qualified name by index.
Parameters: i - The attribute index (zero-based). The attribute's qualified name |
getType | public String getType(int i)(Code) | | Get the attribute's node type by index
Parameters: i - The attribute index (zero-based) the attribute's node type |
getType | public String getType(String name)(Code) | | Get the attribute's node type by name
Parameters: name - Attribute name the attribute's node type |
getType | public String getType(String uri, String localName)(Code) | | Look up an attribute's type by Namespace name.
Parameters: uri - The Namespace URI, or the empty String if thename has no Namespace URI. Parameters: localName - The local name of the attribute. The attribute type as a string, or null if theattribute is not in the list or if Namespaceprocessing is not being performed. |
getURI | public String getURI(int index)(Code) | | Look up an attribute's Namespace URI by index.
Parameters: index - The attribute index (zero-based). The Namespace URI, or the empty string if noneis available, or null if the index is out ofrange. |
getValue | public String getValue(int i)(Code) | | Get the attribute's node value by index
Parameters: i - The attribute index (zero-based) the attribute's node value |
getValue | public String getValue(String name)(Code) | | Look up an attribute's value by name.
Parameters: name - The attribute node's name The attribute node's value |
getValue | public String getValue(String uri, String localName)(Code) | | Look up an attribute's value by Namespace name.
Parameters: uri - The Namespace URI, or the empty String if thename has no Namespace URI. Parameters: localName - The local name of the attribute. The attribute value as a string, or null if theattribute is not in the list. |
|
|