Save This Page
Home » openjdk-7 » com.sun.org.apache.xml.internal » serializer » utils » [javadoc | source]
com.sun.org.apache.xml.internal.serializer.utils
public final class: AttList [javadoc | source]
java.lang.Object
   com.sun.org.apache.xml.internal.serializer.utils.AttList

All Implemented Interfaces:
    Attributes

Wraps a DOM attribute list in a SAX Attributes. This class is a copy of the one in com.sun.org.apache.xml.internal.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 com.sun.org.apache.xml.internal.serializer.
Field Summary
 NamedNodeMap m_attrs    List of attribute nodes 
 int m_lastIndex    Index of last attribute node 
 DOM2Helper m_dh    Local reference to DOMHelper 
Constructor:
 public AttList(NamedNodeMap attrs,
    DOM2Helper dh) 
    Constructor AttList
    Parameters:
    attrs - List of attributes this will contain
    dh - DOMHelper
Method from com.sun.org.apache.xml.internal.serializer.utils.AttList Summary:
getIndex,   getIndex,   getLength,   getLocalName,   getQName,   getType,   getType,   getType,   getURI,   getValue,   getValue,   getValue
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.org.apache.xml.internal.serializer.utils.AttList Detail:
 public int getIndex(String qName) 
    Look up the index of an attribute by raw XML 1.0 name.
 public int getIndex(String uri,
    String localPart) 
    Look up the index of an attribute by Namespace name.
 public int getLength() 
    Get the number of attribute nodes in the list
 public String getLocalName(int index) 
    Look up an attribute's local name by index.
 public String getQName(int i) 
    Look up an attribute's qualified name by index.
 public String getType(int i) 
    Get the attribute's node type by index
 public String getType(String name) 
    Get the attribute's node type by name
 public String getType(String uri,
    String localName) 
    Look up an attribute's type by Namespace name.
 public String getURI(int index) 
    Look up an attribute's Namespace URI by index.
 public String getValue(int i) 
    Get the attribute's node value by index
 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.