|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xml.serializer.utils.AttList
public final class AttList
Wraps a DOM attribute list in a SAX Attributes. This class is a copy of the one in org.apache.xml.utils. It exists to cut the serializers dependancy on that package. A minor changes from that package are: DOMHelper reference changed to DOM2Helper, class is not "public" This class is not a public API, it is only public because it is used in org.apache.xml.serializer.
Constructor Summary | |
---|---|
AttList(NamedNodeMap attrs,
DOM2Helper dh)
Constructor AttList |
Method Summary | |
---|---|
int |
getIndex(String qName)
Look up the index of an attribute by raw XML 1.0 name. |
int |
getIndex(String uri,
String localPart)
Look up the index of an attribute by Namespace name. |
int |
getLength()
Get the number of attribute nodes in the list |
String |
getLocalName(int index)
Look up an attribute's local name by index. |
String |
getQName(int i)
Look up an attribute's qualified name by index. |
String |
getType(int i)
Get the attribute's node type by index |
String |
getType(String name)
Get the attribute's node type by name |
String |
getType(String uri,
String localName)
Look up an attribute's type by Namespace name. |
String |
getURI(int index)
Look up an attribute's Namespace URI by index. |
String |
getValue(int i)
Get the attribute's node value by index |
String |
getValue(String name)
Look up an attribute's value by name. |
String |
getValue(String uri,
String localName)
Look up an attribute's value by Namespace name. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttList(NamedNodeMap attrs, DOM2Helper dh)
attrs
- List of attributes this will containdh
- DOMHelperMethod Detail |
---|
public int getLength()
getLength
in interface Attributes
public String getURI(int index)
getURI
in interface Attributes
index
- The attribute index (zero-based).
public String getLocalName(int index)
getLocalName
in interface Attributes
index
- The attribute index (zero-based).
public String getQName(int i)
getQName
in interface Attributes
i
- The attribute index (zero-based).
public String getType(int i)
getType
in interface Attributes
i
- The attribute index (zero-based)
public String getValue(int i)
getValue
in interface Attributes
i
- The attribute index (zero-based)
public String getType(String name)
getType
in interface Attributes
name
- Attribute name
public String getType(String uri, String localName)
getType
in interface Attributes
uri
- The Namespace URI, or the empty String if the
name has no Namespace URI.localName
- The local name of the attribute.
public String getValue(String name)
getValue
in interface Attributes
name
- The attribute node's name
public String getValue(String uri, String localName)
getValue
in interface Attributes
uri
- The Namespace URI, or the empty String if the
name has no Namespace URI.localName
- The local name of the attribute.
public int getIndex(String uri, String localPart)
getIndex
in interface Attributes
uri
- The Namespace URI, or the empty string if
the name has no Namespace URI.localPart
- The attribute's local name.
public int getIndex(String qName)
getIndex
in interface Attributes
qName
- The qualified (prefixed) name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |