<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc on Tue Sep 18 10:25:51 GMT+01:00 2001 --> <TITLE> : Class AttributeCollection </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> </HEAD> <BODY BGCOLOR="white"> <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_top"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../../com/icl/saxon/tree/DocumentImpl.html"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="AttributeCollection.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> com.icl.saxon.tree</FONT> <BR> Class AttributeCollection</H2> <PRE> java.lang.Object | +--<B>com.icl.saxon.tree.AttributeCollection</B> </PRE> <DL> <DT><B>All Implemented Interfaces:</B> <DD>org.xml.sax.Attributes</DD> </DL> <HR> <DL> <DT>public final class <B>AttributeCollection</B><DT>extends java.lang.Object<DT>implements org.xml.sax.Attributes</DL> <P> AttributeCollection is an implementation of the SAX2 interface Attributes that also provides the ability to manipulate namespaces and to convert attributes into Nodes. It is extremely similar (both in interface and in implementation) to the SAX2 Attributes class, but was defined before SAX2 was available. <P> <HR> <P> <!-- ======== INNER CLASS SUMMARY ======== --> <!-- =========== FIELD SUMMARY =========== --> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <A NAME="constructor_summary"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Constructor Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/icl/saxon/tree/AttributeCollection.html#AttributeCollection(com.icl.saxon.tree.AttributeCollection)">AttributeCollection</A></B>(<A HREF="../../../../com/icl/saxon/tree/AttributeCollection.html">AttributeCollection</A> atts)</CODE> <BR> Create a new attribute collection as a clone</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/icl/saxon/tree/AttributeCollection.html#AttributeCollection(com.icl.saxon.om.NamePool)">AttributeCollection</A></B>(<A HREF="../../../../com/icl/saxon/om/NamePool.html">NamePool</A> pool)</CODE> <BR> Create an empty attribute list.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/icl/saxon/tree/AttributeCollection.html#AttributeCollection(com.icl.saxon.om.NamePool, org.xml.sax.Attributes)">AttributeCollection</A></B>(<A HREF="../../../../com/icl/saxon/om/NamePool.html">NamePool</A> pool, org.xml.sax.Attributes atts)</CODE> <BR> Create a new attribute collection as a clone</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/icl/saxon/tree/AttributeCollection.html#AttributeCollection(com.icl.saxon.om.NamePool, int)">AttributeCollection</A></B>(<A HREF="../../../../com/icl/saxon/om/NamePool.html">NamePool</A> pool, int n)</CODE> <BR> Create an empty attribute list with space for n attributes</TD> </TR> </TABLE> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Method Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/tree/AttributeCollection.html#addAttribute(int, java.lang.String, java.lang.String)">addAttribute</A></B>(int nameCode, java.lang.String type, java.lang.String value)</CODE> <BR> Add an attribute to an attribute list.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/tree/AttributeCollection.html#addAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)">addAttribute</A></B>(java.lang.String prefix, java.lang.String uri, java.lang.String localName, java.lang.String type, java.lang.String value)</CODE> <BR> Add an attribute to an attribute list.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/tree/AttributeCollection.html#clear()">clear</A></B>()</CODE> <BR> Clear the attribute list.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/tree/AttributeCollection.html#compact()">compact</A></B>()</CODE> <BR> Compact the attribute list to avoid wasting memory</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/tree/AttributeCollection.html#getIndex(java.lang.String)">getIndex</A></B>(java.lang.String name)</CODE> <BR> Get the index of an attribute (by name).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/tree/AttributeCollection.html#getIndex(java.lang.String, java.lang.String)">getIndex</A></B>(java.lang.String uri, java.lang.String localname)</CODE> <BR> Get the index of an attribute (by name).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/tree/AttributeCollection.html#getIndexByFingerprint(int)">getIndexByFingerprint</A></B>(int fingerprint)</CODE> <BR> Get the index, given the fingerprint</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/tree/AttributeCollection.html#getLength()">getLength</A></B>()</CODE> <BR> Return the number of attributes in the list.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/tree/AttributeCollection.html#getLocalName(int)">getLocalName</A></B>(int index)</CODE> <BR> Get the local name of an attribute (by position).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/tree/AttributeCollection.html#getNameCode(int)">getNameCode</A></B>(int index)</CODE> <BR> Get the namecode of an attribute (by position).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/tree/AttributeCollection.html#getQName(int)">getQName</A></B>(int index)</CODE> <BR> Get the display name of an attribute (by position).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/tree/AttributeCollection.html#getType(int)">getType</A></B>(int index)</CODE> <BR> Get the type of an attribute (by position).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/tree/AttributeCollection.html#getType(java.lang.String)">getType</A></B>(java.lang.String name)</CODE> <BR> Get the type of an attribute (by name).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/tree/AttributeCollection.html#getType(java.lang.String, java.lang.String)">getType</A></B>(java.lang.String uri, java.lang.String localname)</CODE> <BR> Get the type of an attribute (by name).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/tree/AttributeCollection.html#getURI(int)">getURI</A></B>(int index)</CODE> <BR> Get the namespace URI of an attribute (by position).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/tree/AttributeCollection.html#getValue(int)">getValue</A></B>(int index)</CODE> <BR> Get the value of an attribute (by position).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/tree/AttributeCollection.html#getValue(java.lang.String)">getValue</A></B>(java.lang.String name)</CODE> <BR> Get the value of an attribute (by name).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/tree/AttributeCollection.html#getValue(java.lang.String, java.lang.String)">getValue</A></B>(java.lang.String uri, java.lang.String localname)</CODE> <BR> Get the value of an attribute (by name).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/tree/AttributeCollection.html#getValueByFingerprint(int)">getValueByFingerprint</A></B>(int fingerprint)</CODE> <BR> Get the attribute value using its fingerprint</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/tree/AttributeCollection.html#setAttribute(int, java.lang.String, java.lang.String)">setAttribute</A></B>(int nameCode, java.lang.String type, java.lang.String value)</CODE> <BR> Set an attribute value</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/tree/AttributeCollection.html#setAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)">setAttribute</A></B>(java.lang.String prefix, java.lang.String uri, java.lang.String localName, java.lang.String type, java.lang.String value)</CODE> <BR> Set an attribute value</TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TD><B>Methods inherited from class java.lang.Object</B></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> </TR> </TABLE> <P> <!-- ============ FIELD DETAIL =========== --> <!-- ========= CONSTRUCTOR DETAIL ======== --> <A NAME="constructor_detail"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Constructor Detail</B></FONT></TD> </TR> </TABLE> <A NAME="AttributeCollection(com.icl.saxon.om.NamePool)"><!-- --></A><H3> AttributeCollection</H3> <PRE> public <B>AttributeCollection</B>(<A HREF="../../../../com/icl/saxon/om/NamePool.html">NamePool</A> pool)</PRE> <DL> <DD>Create an empty attribute list.</DL> <HR> <A NAME="AttributeCollection(com.icl.saxon.om.NamePool, int)"><!-- --></A><H3> AttributeCollection</H3> <PRE> public <B>AttributeCollection</B>(<A HREF="../../../../com/icl/saxon/om/NamePool.html">NamePool</A> pool, int n)</PRE> <DL> <DD>Create an empty attribute list with space for n attributes</DL> <HR> <A NAME="AttributeCollection(com.icl.saxon.tree.AttributeCollection)"><!-- --></A><H3> AttributeCollection</H3> <PRE> public <B>AttributeCollection</B>(<A HREF="../../../../com/icl/saxon/tree/AttributeCollection.html">AttributeCollection</A> atts)</PRE> <DL> <DD>Create a new attribute collection as a clone</DL> <HR> <A NAME="AttributeCollection(com.icl.saxon.om.NamePool, org.xml.sax.Attributes)"><!-- --></A><H3> AttributeCollection</H3> <PRE> public <B>AttributeCollection</B>(<A HREF="../../../../com/icl/saxon/om/NamePool.html">NamePool</A> pool, org.xml.sax.Attributes atts)</PRE> <DL> <DD>Create a new attribute collection as a clone</DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Method Detail</B></FONT></TD> </TR> </TABLE> <A NAME="addAttribute(int, java.lang.String, java.lang.String)"><!-- --></A><H3> addAttribute</H3> <PRE> public void <B>addAttribute</B>(int nameCode, java.lang.String type, java.lang.String value)</PRE> <DL> <DD>Add an attribute to an attribute list.<DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>name</CODE> - The attribute name.<DD><CODE>type</CODE> - The attribute type ("NMTOKEN" for an enumeration).<DD><CODE>value</CODE> - The attribute value (must not be null).<DT><B>See Also: </B><DD><CODE>DocumentHandler.startElement(java.lang.String, org.xml.sax.AttributeList)</CODE></DL> </DD> </DL> <HR> <A NAME="addAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3> addAttribute</H3> <PRE> public void <B>addAttribute</B>(java.lang.String prefix, java.lang.String uri, java.lang.String localName, java.lang.String type, java.lang.String value)</PRE> <DL> <DD>Add an attribute to an attribute list.<DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>prefix</CODE> - The namespace prefix of the attribute name.<DD><CODE>uri</CODE> - The namespace uri of the attribute name.<DD><CODE>localname</CODE> - The local part of the attribute name.<DD><CODE>type</CODE> - The attribute type (e.g. "NMTOKEN").<DD><CODE>value</CODE> - The attribute value (must not be null).<DT><B>See Also: </B><DD><CODE>DocumentHandler.startElement(java.lang.String, org.xml.sax.AttributeList)</CODE></DL> </DD> </DL> <HR> <A NAME="setAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3> setAttribute</H3> <PRE> public void <B>setAttribute</B>(java.lang.String prefix, java.lang.String uri, java.lang.String localName, java.lang.String type, java.lang.String value)</PRE> <DL> <DD>Set an attribute value<DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the attribute<DD><CODE>type</CODE> - the type of the attribute (e.g. CDATA)<DD><CODE>value</CODE> - the value of the attribute</DL> </DD> </DL> <HR> <A NAME="setAttribute(int, java.lang.String, java.lang.String)"><!-- --></A><H3> setAttribute</H3> <PRE> public void <B>setAttribute</B>(int nameCode, java.lang.String type, java.lang.String value)</PRE> <DL> <DD>Set an attribute value<DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the attribute<DD><CODE>type</CODE> - the type of the attribute (e.g. CDATA)<DD><CODE>value</CODE> - the value of the attribute</DL> </DD> </DL> <HR> <A NAME="clear()"><!-- --></A><H3> clear</H3> <PRE> public void <B>clear</B>()</PRE> <DL> <DD>Clear the attribute list.<DD><DL> </DL> </DD> </DL> <HR> <A NAME="compact()"><!-- --></A><H3> compact</H3> <PRE> public void <B>compact</B>()</PRE> <DL> <DD>Compact the attribute list to avoid wasting memory<DD><DL> </DL> </DD> </DL> <HR> <A NAME="getLength()"><!-- --></A><H3> getLength</H3> <PRE> public int <B>getLength</B>()</PRE> <DL> <DD>Return the number of attributes in the list.<DD><DL> <DT><B>Specified by: </B><DD><CODE>getLength</CODE> in interface <CODE>org.xml.sax.Attributes</CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>The number of attributes in the list.</DL> </DD> </DL> <HR> <A NAME="getNameCode(int)"><!-- --></A><H3> getNameCode</H3> <PRE> public int <B>getNameCode</B>(int index)</PRE> <DL> <DD>Get the namecode of an attribute (by position).<DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>i</CODE> - The position of the attribute in the list.<DT><B>Returns:</B><DD>The display name of the attribute as a string, or null if there is no attribute at that position.</DL> </DD> </DL> <HR> <A NAME="getQName(int)"><!-- --></A><H3> getQName</H3> <PRE> public java.lang.String <B>getQName</B>(int index)</PRE> <DL> <DD>Get the display name of an attribute (by position).<DD><DL> <DT><B>Specified by: </B><DD><CODE>getQName</CODE> in interface <CODE>org.xml.sax.Attributes</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>i</CODE> - The position of the attribute in the list.<DT><B>Returns:</B><DD>The display name of the attribute as a string, or null if there is no attribute at that position.</DL> </DD> </DL> <HR> <A NAME="getLocalName(int)"><!-- --></A><H3> getLocalName</H3> <PRE> public java.lang.String <B>getLocalName</B>(int index)</PRE> <DL> <DD>Get the local name of an attribute (by position).<DD><DL> <DT><B>Specified by: </B><DD><CODE>getLocalName</CODE> in interface <CODE>org.xml.sax.Attributes</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>i</CODE> - The position of the attribute in the list.<DT><B>Returns:</B><DD>The local name of the attribute as a string, or null if there is no attribute at that position.</DL> </DD> </DL> <HR> <A NAME="getURI(int)"><!-- --></A><H3> getURI</H3> <PRE> public java.lang.String <B>getURI</B>(int index)</PRE> <DL> <DD>Get the namespace URI of an attribute (by position).<DD><DL> <DT><B>Specified by: </B><DD><CODE>getURI</CODE> in interface <CODE>org.xml.sax.Attributes</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>index</CODE> - The position of the attribute in the list.<DT><B>Returns:</B><DD>The local name of the attribute as a string, or null if there is no attribute at that position.</DL> </DD> </DL> <HR> <A NAME="getType(int)"><!-- --></A><H3> getType</H3> <PRE> public java.lang.String <B>getType</B>(int index)</PRE> <DL> <DD>Get the type of an attribute (by position).<DD><DL> <DT><B>Specified by: </B><DD><CODE>getType</CODE> in interface <CODE>org.xml.sax.Attributes</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>index</CODE> - The position of the attribute in the list.<DT><B>Returns:</B><DD>The attribute type as a string ("NMTOKEN" for an enumeration, and "CDATA" if no declaration was read), or null if there is no attribute at that position.</DL> </DD> </DL> <HR> <A NAME="getType(java.lang.String, java.lang.String)"><!-- --></A><H3> getType</H3> <PRE> public java.lang.String <B>getType</B>(java.lang.String uri, java.lang.String localname)</PRE> <DL> <DD>Get the type of an attribute (by name).<DD><DL> <DT><B>Specified by: </B><DD><CODE>getType</CODE> in interface <CODE>org.xml.sax.Attributes</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>uri</CODE> - The namespace uri of the attribute.<DD><CODE>localname</CODE> - The local name of the attribute.<DT><B>Returns:</B><DD>The index position of the attribute</DL> </DD> </DL> <HR> <A NAME="getValue(int)"><!-- --></A><H3> getValue</H3> <PRE> public java.lang.String <B>getValue</B>(int index)</PRE> <DL> <DD>Get the value of an attribute (by position).<DD><DL> <DT><B>Specified by: </B><DD><CODE>getValue</CODE> in interface <CODE>org.xml.sax.Attributes</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>index</CODE> - The position of the attribute in the list.<DT><B>Returns:</B><DD>The attribute value as a string, or null if there is no attribute at that position.</DL> </DD> </DL> <HR> <A NAME="getValue(java.lang.String, java.lang.String)"><!-- --></A><H3> getValue</H3> <PRE> public java.lang.String <B>getValue</B>(java.lang.String uri, java.lang.String localname)</PRE> <DL> <DD>Get the value of an attribute (by name).<DD><DL> <DT><B>Specified by: </B><DD><CODE>getValue</CODE> in interface <CODE>org.xml.sax.Attributes</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>uri</CODE> - The namespace uri of the attribute.<DD><CODE>localname</CODE> - The local name of the attribute.<DT><B>Returns:</B><DD>The index position of the attribute</DL> </DD> </DL> <HR> <A NAME="getValueByFingerprint(int)"><!-- --></A><H3> getValueByFingerprint</H3> <PRE> public java.lang.String <B>getValueByFingerprint</B>(int fingerprint)</PRE> <DL> <DD>Get the attribute value using its fingerprint<DD><DL> </DL> </DD> </DL> <HR> <A NAME="getIndex(java.lang.String)"><!-- --></A><H3> getIndex</H3> <PRE> public int <B>getIndex</B>(java.lang.String name)</PRE> <DL> <DD>Get the index of an attribute (by name).<DD><DL> <DT><B>Specified by: </B><DD><CODE>getIndex</CODE> in interface <CODE>org.xml.sax.Attributes</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>name</CODE> - The display name of the attribute.<DT><B>Returns:</B><DD>The index position of the attribute</DL> </DD> </DL> <HR> <A NAME="getIndex(java.lang.String, java.lang.String)"><!-- --></A><H3> getIndex</H3> <PRE> public int <B>getIndex</B>(java.lang.String uri, java.lang.String localname)</PRE> <DL> <DD>Get the index of an attribute (by name).<DD><DL> <DT><B>Specified by: </B><DD><CODE>getIndex</CODE> in interface <CODE>org.xml.sax.Attributes</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>uri</CODE> - The namespace uri of the attribute.<DD><CODE>localname</CODE> - The local name of the attribute.<DT><B>Returns:</B><DD>The index position of the attribute</DL> </DD> </DL> <HR> <A NAME="getIndexByFingerprint(int)"><!-- --></A><H3> getIndexByFingerprint</H3> <PRE> public int <B>getIndexByFingerprint</B>(int fingerprint)</PRE> <DL> <DD>Get the index, given the fingerprint<DD><DL> </DL> </DD> </DL> <HR> <A NAME="getType(java.lang.String)"><!-- --></A><H3> getType</H3> <PRE> public java.lang.String <B>getType</B>(java.lang.String name)</PRE> <DL> <DD>Get the type of an attribute (by name).<DD><DL> <DT><B>Specified by: </B><DD><CODE>getType</CODE> in interface <CODE>org.xml.sax.Attributes</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>name</CODE> - The display name of the attribute.<DT><B>Returns:</B><DD>The attribute type as a string ("NMTOKEN" for an enumeration, and "CDATA" if no declaration was read).</DL> </DD> </DL> <HR> <A NAME="getValue(java.lang.String)"><!-- --></A><H3> getValue</H3> <PRE> public java.lang.String <B>getValue</B>(java.lang.String name)</PRE> <DL> <DD>Get the value of an attribute (by name).<DD><DL> <DT><B>Specified by: </B><DD><CODE>getValue</CODE> in interface <CODE>org.xml.sax.Attributes</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>name</CODE> - The attribute name.</DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_bottom"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../../com/icl/saxon/tree/DocumentImpl.html"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="AttributeCollection.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <HR> </BODY> </HTML>