Methods Summary |
---|
public int | getIndex(java.lang.String uri, java.lang.String localPart)Look up the index of an attribute by Namespace name.
for(int i=m_attrs.getLength()-1;i>=0;--i)
{
Node a=m_attrs.item(i);
String u=a.getNamespaceURI();
if( (u==null ? uri==null : u.equals(uri))
&&
a.getLocalName().equals(localPart) )
return i;
}
return -1;
|
public int | getIndex(java.lang.String qName)Look up the index of an attribute by raw XML 1.0 name.
for(int i=m_attrs.getLength()-1;i>=0;--i)
{
Node a=m_attrs.item(i);
if(a.getNodeName().equals(qName) )
return i;
}
return -1;
|
public int | getLength()Get the number of attribute nodes in the list
return m_attrs.getLength();
|
public java.lang.String | getLocalName(int index)Look up an attribute's local name by index.
return m_dh.getLocalNameOfNode(((Attr) m_attrs.item(index)));
|
public java.lang.String | getQName(int i)Look up an attribute's qualified name by index.
return ((Attr) m_attrs.item(i)).getName();
|
public java.lang.String | getType(int i)Get the attribute's node type by index
return "CDATA"; // for the moment
|
public java.lang.String | getType(java.lang.String name)Get the attribute's node type by name
return "CDATA"; // for the moment
|
public java.lang.String | getType(java.lang.String uri, java.lang.String localName)Look up an attribute's type by Namespace name.
return "CDATA"; // for the moment
|
public java.lang.String | getURI(int index)Look up an attribute's Namespace URI by index.
String ns = m_dh.getNamespaceOfNode(((Attr) m_attrs.item(index)));
if(null == ns)
ns = "";
return ns;
|
public java.lang.String | getValue(java.lang.String name)Look up an attribute's value by name.
Attr attr = ((Attr) m_attrs.getNamedItem(name));
return (null != attr)
? attr.getValue() : null;
|
public java.lang.String | getValue(java.lang.String uri, java.lang.String localName)Look up an attribute's value by Namespace name.
Node a=m_attrs.getNamedItemNS(uri,localName);
return (a==null) ? null : a.getNodeValue();
|
public java.lang.String | getValue(int i)Get the attribute's node value by index
return ((Attr) m_attrs.item(i)).getValue();
|