| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
| <!--NewPage-->
|
| <HTML>
|
| <HEAD>
|
| <!-- Generated by javadoc on Thu Nov 22 17:12:56 EST 2007 -->
|
| <TITLE>
|
| Xalan-Java 2.7.1: Class DTMNamedNodeMap
|
| </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="class-use/DTMNamedNodeMap.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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">
|
| <A HREF="../../../../../org/apache/xml/dtm/ref/DTMManagerDefault.html"><B>PREV CLASS</B></A>
|
| <A HREF="../../../../../org/apache/xml/dtm/ref/DTMNodeIterator.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="DTMNamedNodeMap.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
|
| </TR>
|
| <TR>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| SUMMARY: <A HREF="#inner_class_summary">INNER</A> | 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">
|
| org.apache.xml.dtm.ref</FONT>
|
| <BR>
|
| Class DTMNamedNodeMap</H2>
|
| <PRE>
|
| java.lang.Object
|
| |
|
| +--<B>org.apache.xml.dtm.ref.DTMNamedNodeMap</B>
|
| </PRE>
|
| <HR>
|
| <DL>
|
| <DT>public class <B>DTMNamedNodeMap</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../../org/w3c/dom/NamedNodeMap.html">NamedNodeMap</A></DL>
|
|
|
| <P>
|
| DTMNamedNodeMap is a quickie (as opposed to quick) implementation of the DOM's |
| NamedNodeMap interface, intended to support DTMProxy's getAttributes() |
| call. |
| <p> |
| ***** Note: this does _not_ current attempt to cache any of the data; |
| if you ask for attribute 27 and then 28, you'll have to rescan the first |
| 27. It should probably at least keep track of the last one retrieved, |
| and possibly buffer the whole array. |
| <p> |
| ***** Also note that there's no fastpath for the by-name query; we search |
| linearly until we find it or fail to find it. Again, that could be |
| optimized at some cost in object creation/storage.
|
| <P>
|
| <DL>
|
| <DT><B>Usage:</B><DD><i><font size="-1" color="#FF0000"> **For internal use only**</font></i></DD> |
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <P>
|
| <!-- ======== INNER CLASS SUMMARY ======== -->
|
|
|
| <A NAME="inner_class_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| <TD COLSPAN=2><FONT SIZE="+2">
|
| <B>Inner Class Summary</B></FONT></TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> interface</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/dtm/ref/DTMNamedNodeMap.DTMException.html">DTMNamedNodeMap.DTMException</A></B></CODE>
|
|
|
| <BR>
|
| Simple implementation of DOMException.</TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <!-- =========== 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="../../../../../org/apache/xml/dtm/ref/DTMNamedNodeMap.html#DTMNamedNodeMap(org.apache.xml.dtm.DTM, int)">DTMNamedNodeMap</A></B>(<A HREF="../../../../../org/apache/xml/dtm/DTM.html">DTM</A> dtm, |
| int element)</CODE>
|
|
|
| <BR>
|
| Create a getAttributes NamedNodeMap for a given DTM element node</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> int</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/dtm/ref/DTMNamedNodeMap.html#getLength()">getLength</A></B>()</CODE>
|
|
|
| <BR>
|
| Return the number of Attributes on this Element</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> <A HREF="../../../../../org/w3c/dom/Node.html">Node</A></CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/dtm/ref/DTMNamedNodeMap.html#getNamedItem(java.lang.String)">getNamedItem</A></B>(java.lang.String name)</CODE>
|
|
|
| <BR>
|
| Retrieves a node specified by name.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> <A HREF="../../../../../org/w3c/dom/Node.html">Node</A></CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/dtm/ref/DTMNamedNodeMap.html#getNamedItemNS(java.lang.String, java.lang.String)">getNamedItemNS</A></B>(java.lang.String namespaceURI, |
| java.lang.String localName)</CODE>
|
|
|
| <BR>
|
| Retrieves a node specified by local name and namespace URI.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> <A HREF="../../../../../org/w3c/dom/Node.html">Node</A></CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/dtm/ref/DTMNamedNodeMap.html#item(int)">item</A></B>(int i)</CODE>
|
|
|
| <BR>
|
| Returns the <code>index</code>th item in the map.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> <A HREF="../../../../../org/w3c/dom/Node.html">Node</A></CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/dtm/ref/DTMNamedNodeMap.html#removeNamedItem(java.lang.String)">removeNamedItem</A></B>(java.lang.String name)</CODE>
|
|
|
| <BR>
|
| Removes a node specified by name.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> <A HREF="../../../../../org/w3c/dom/Node.html">Node</A></CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/dtm/ref/DTMNamedNodeMap.html#removeNamedItemNS(java.lang.String, java.lang.String)">removeNamedItemNS</A></B>(java.lang.String namespaceURI, |
| java.lang.String localName)</CODE>
|
|
|
| <BR>
|
| Removes a node specified by local name and namespace URI.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> <A HREF="../../../../../org/w3c/dom/Node.html">Node</A></CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/dtm/ref/DTMNamedNodeMap.html#setNamedItem(org.w3c.dom.Node)">setNamedItem</A></B>(<A HREF="../../../../../org/w3c/dom/Node.html">Node</A> newNode)</CODE>
|
|
|
| <BR>
|
| Adds a node using its <code>nodeName</code> attribute.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> <A HREF="../../../../../org/w3c/dom/Node.html">Node</A></CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xml/dtm/ref/DTMNamedNodeMap.html#setNamedItemNS(org.w3c.dom.Node)">setNamedItemNS</A></B>(<A HREF="../../../../../org/w3c/dom/Node.html">Node</A> arg)</CODE>
|
|
|
| <BR>
|
| Adds a node using its <code>namespaceURI</code> and |
| <code>localName</code>.</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>equals,
|
| 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="DTMNamedNodeMap(org.apache.xml.dtm.DTM, int)"><!-- --></A><H3>
|
| DTMNamedNodeMap</H3>
|
| <PRE>
|
| public <B>DTMNamedNodeMap</B>(<A HREF="../../../../../org/apache/xml/dtm/DTM.html">DTM</A> dtm, |
| int element)</PRE>
|
| <DL>
|
| <DD>Create a getAttributes NamedNodeMap for a given DTM element node<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>dtm</CODE> - The DTM Reference, must be non-null.<DD><CODE>element</CODE> - The DTM element handle.</DL>
|
| </DD>
|
| </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="getLength()"><!-- --></A><H3>
|
| getLength</H3>
|
| <PRE>
|
| public int <B>getLength</B>()</PRE>
|
| <DL>
|
| <DD>Return the number of Attributes on this Element<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../../org/w3c/dom/NamedNodeMap.html#getLength()">getLength</A> in interface <A HREF="../../../../../org/w3c/dom/NamedNodeMap.html">NamedNodeMap</A><DT><B>Returns:</B><DD>The number of nodes in this map.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getNamedItem(java.lang.String)"><!-- --></A><H3>
|
| getNamedItem</H3>
|
| <PRE>
|
| public <A HREF="../../../../../org/w3c/dom/Node.html">Node</A> <B>getNamedItem</B>(java.lang.String name)</PRE>
|
| <DL>
|
| <DD>Retrieves a node specified by name.<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../../org/w3c/dom/NamedNodeMap.html#getNamedItem(java.lang.String)">getNamedItem</A> in interface <A HREF="../../../../../org/w3c/dom/NamedNodeMap.html">NamedNodeMap</A><DT><B>Parameters:</B><DD><CODE>name</CODE> - The <code>nodeName</code> of a node to retrieve.<DT><B>Returns:</B><DD>A <code>Node</code> (of any type) with the specified |
| <code>nodeName</code>, or <code>null</code> if it does not identify |
| any node in this map.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="item(int)"><!-- --></A><H3>
|
| item</H3>
|
| <PRE>
|
| public <A HREF="../../../../../org/w3c/dom/Node.html">Node</A> <B>item</B>(int i)</PRE>
|
| <DL>
|
| <DD>Returns the <code>index</code>th item in the map. If <code>index</code> |
| is greater than or equal to the number of nodes in this map, this |
| returns <code>null</code>.<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../../org/w3c/dom/NamedNodeMap.html#item(int)">item</A> in interface <A HREF="../../../../../org/w3c/dom/NamedNodeMap.html">NamedNodeMap</A><DT><B>Parameters:</B><DD><CODE>i</CODE> - The index of the requested item.<DT><B>Returns:</B><DD>The node at the <code>index</code>th position in the map, or |
| <code>null</code> if that is not a valid index.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="setNamedItem(org.w3c.dom.Node)"><!-- --></A><H3>
|
| setNamedItem</H3>
|
| <PRE>
|
| public <A HREF="../../../../../org/w3c/dom/Node.html">Node</A> <B>setNamedItem</B>(<A HREF="../../../../../org/w3c/dom/Node.html">Node</A> newNode)</PRE>
|
| <DL>
|
| <DD>Adds a node using its <code>nodeName</code> attribute. If a node with |
| that name is already present in this map, it is replaced by the new |
| one. |
| <br>As the <code>nodeName</code> attribute is used to derive the name |
| which the node must be stored under, multiple nodes of certain types |
| (those that have a "special" string value) cannot be stored as the |
| names would clash. This is seen as preferable to allowing nodes to be |
| aliased.<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../../org/w3c/dom/NamedNodeMap.html#setNamedItem(org.w3c.dom.Node)">setNamedItem</A> in interface <A HREF="../../../../../org/w3c/dom/NamedNodeMap.html">NamedNodeMap</A><DT><B>Parameters:</B><DD><CODE>newNode</CODE> - node to store in this map. The node will later be |
| accessible using the value of its <code>nodeName</code> attribute.<DT><B>Returns:</B><DD>If the new <code>Node</code> replaces an existing node the |
| replaced <code>Node</code> is returned, otherwise <code>null</code> |
| is returned.<DT><B>Throws:</B><DD><A HREF="../../../../../org/w3c/dom/DOMException.html">DOMException</A> - WRONG_DOCUMENT_ERR: Raised if <code>arg</code> was created from a |
| different document than the one that created this map. |
| <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly. |
| <br>INUSE_ATTRIBUTE_ERR: Raised if <code>arg</code> is an |
| <code>Attr</code> that is already an attribute of another |
| <code>Element</code> object. The DOM user must explicitly clone |
| <code>Attr</code> nodes to re-use them in other elements.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="removeNamedItem(java.lang.String)"><!-- --></A><H3>
|
| removeNamedItem</H3>
|
| <PRE>
|
| public <A HREF="../../../../../org/w3c/dom/Node.html">Node</A> <B>removeNamedItem</B>(java.lang.String name)</PRE>
|
| <DL>
|
| <DD>Removes a node specified by name. When this map contains the attributes |
| attached to an element, if the removed attribute is known to have a |
| default value, an attribute immediately appears containing the |
| default value as well as the corresponding namespace URI, local name, |
| and prefix when applicable.<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../../org/w3c/dom/NamedNodeMap.html#removeNamedItem(java.lang.String)">removeNamedItem</A> in interface <A HREF="../../../../../org/w3c/dom/NamedNodeMap.html">NamedNodeMap</A><DT><B>Parameters:</B><DD><CODE>name</CODE> - The <code>nodeName</code> of the node to remove.<DT><B>Returns:</B><DD>The node removed from this map if a node with such a name |
| exists.<DT><B>Throws:</B><DD><A HREF="../../../../../org/w3c/dom/DOMException.html">DOMException</A> - NOT_FOUND_ERR: Raised if there is no node named <code>name</code> in |
| this map. |
| <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.</DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getNamedItemNS(java.lang.String, java.lang.String)"><!-- --></A><H3>
|
| getNamedItemNS</H3>
|
| <PRE>
|
| public <A HREF="../../../../../org/w3c/dom/Node.html">Node</A> <B>getNamedItemNS</B>(java.lang.String namespaceURI, |
| java.lang.String localName)</PRE>
|
| <DL>
|
| <DD>Retrieves a node specified by local name and namespace URI. HTML-only |
| DOM implementations do not need to implement this method.<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../../org/w3c/dom/NamedNodeMap.html#getNamedItemNS(java.lang.String, java.lang.String)">getNamedItemNS</A> in interface <A HREF="../../../../../org/w3c/dom/NamedNodeMap.html">NamedNodeMap</A><DT><B>Parameters:</B><DD><CODE>namespaceURI</CODE> - The namespace URI of the node to retrieve.<DD><CODE>localName</CODE> - The local name of the node to retrieve.<DT><B>Returns:</B><DD>A <code>Node</code> (of any type) with the specified local |
| name and namespace URI, or <code>null</code> if they do not |
| identify any node in this map.<DT><B>Since: </B><DD>DOM Level 2</DD>
|
| </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="setNamedItemNS(org.w3c.dom.Node)"><!-- --></A><H3>
|
| setNamedItemNS</H3>
|
| <PRE>
|
| public <A HREF="../../../../../org/w3c/dom/Node.html">Node</A> <B>setNamedItemNS</B>(<A HREF="../../../../../org/w3c/dom/Node.html">Node</A> arg) |
| throws <A HREF="../../../../../org/w3c/dom/DOMException.html">DOMException</A></PRE>
|
| <DL>
|
| <DD>Adds a node using its <code>namespaceURI</code> and |
| <code>localName</code>. If a node with that namespace URI and that |
| local name is already present in this map, it is replaced by the new |
| one. |
| <br>HTML-only DOM implementations do not need to implement this method.<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../../org/w3c/dom/NamedNodeMap.html#setNamedItemNS(org.w3c.dom.Node)">setNamedItemNS</A> in interface <A HREF="../../../../../org/w3c/dom/NamedNodeMap.html">NamedNodeMap</A><DT><B>Parameters:</B><DD><CODE>arg</CODE> - A node to store in this map. The node will later be |
| accessible using the value of its <code>namespaceURI</code> and |
| <code>localName</code> attributes.<DT><B>Returns:</B><DD>If the new <code>Node</code> replaces an existing node the |
| replaced <code>Node</code> is returned, otherwise <code>null</code> |
| is returned.<DT><B>Throws:</B><DD><A HREF="../../../../../org/w3c/dom/DOMException.html">DOMException</A> - WRONG_DOCUMENT_ERR: Raised if <code>arg</code> was created from a |
| different document than the one that created this map. |
| <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly. |
| <br>INUSE_ATTRIBUTE_ERR: Raised if <code>arg</code> is an |
| <code>Attr</code> that is already an attribute of another |
| <code>Element</code> object. The DOM user must explicitly clone |
| <code>Attr</code> nodes to re-use them in other elements.<DT><B>Since: </B><DD>DOM Level 2</DD>
|
| </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="removeNamedItemNS(java.lang.String, java.lang.String)"><!-- --></A><H3>
|
| removeNamedItemNS</H3>
|
| <PRE>
|
| public <A HREF="../../../../../org/w3c/dom/Node.html">Node</A> <B>removeNamedItemNS</B>(java.lang.String namespaceURI, |
| java.lang.String localName) |
| throws <A HREF="../../../../../org/w3c/dom/DOMException.html">DOMException</A></PRE>
|
| <DL>
|
| <DD>Removes a node specified by local name and namespace URI. A removed |
| attribute may be known to have a default value when this map contains |
| the attributes attached to an element, as returned by the attributes |
| attribute of the <code>Node</code> interface. If so, an attribute |
| immediately appears containing the default value as well as the |
| corresponding namespace URI, local name, and prefix when applicable. |
| <br>HTML-only DOM implementations do not need to implement this method.<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../../org/w3c/dom/NamedNodeMap.html#removeNamedItemNS(java.lang.String, java.lang.String)">removeNamedItemNS</A> in interface <A HREF="../../../../../org/w3c/dom/NamedNodeMap.html">NamedNodeMap</A><DT><B>Parameters:</B><DD><CODE>namespaceURI</CODE> - The namespace URI of the node to remove.<DD><CODE>localName</CODE> - The local name of the node to remove.<DT><B>Returns:</B><DD>The node removed from this map if a node with such a local |
| name and namespace URI exists.<DT><B>Throws:</B><DD><A HREF="../../../../../org/w3c/dom/DOMException.html">DOMException</A> - NOT_FOUND_ERR: Raised if there is no node with the specified |
| <code>namespaceURI</code> and <code>localName</code> in this map. |
| <br>NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.<DT><B>Since: </B><DD>DOM Level 2</DD>
|
| </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="class-use/DTMNamedNodeMap.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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">
|
| <A HREF="../../../../../org/apache/xml/dtm/ref/DTMManagerDefault.html"><B>PREV CLASS</B></A>
|
| <A HREF="../../../../../org/apache/xml/dtm/ref/DTMNodeIterator.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="DTMNamedNodeMap.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
|
| </TR>
|
| <TR>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| SUMMARY: <A HREF="#inner_class_summary">INNER</A> | 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>
|
| Copyright © 2006 Apache XML Project. All Rights Reserved.
|
| </BODY>
|
| </HTML>
|