1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Thu Mar 15 14:18:28 EST 2001 -->
<TITLE>
Xalan-Java 2: Class DOM2Helper
</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 ID="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT ID="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/DOM2Helper.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT ID="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/xpath/Arg.html"><B>PREV CLASS</B></A>
<A HREF="../../../org/apache/xpath/DOMHelper.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="DOM2Helper.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">
org.apache.xpath</FONT>
<BR>
Class DOM2Helper</H2>
<PRE>
java.lang.Object
|
+--<A HREF="../../../org/apache/xpath/DOMHelper.html">org.apache.xpath.DOMHelper</A>
|
+--<B>org.apache.xpath.DOM2Helper</B>
</PRE>
<DL>
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../org/apache/xalan/stree/StreeDOMHelper.html">StreeDOMHelper</A></DD>
</DL>
<HR>
<DL>
<DT>public class <B>DOM2Helper</B><DT>extends <A HREF="../../../org/apache/xpath/DOMHelper.html">DOMHelper</A></DL>
<P>
<i><font size="-1" color="#00FF00">**For advanced use only** </font></i><meta name="usage" content="advanced"/>
This class provides a DOM level 2 "helper", which provides services currently
not provided be the DOM standard.
<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="../../../org/apache/xpath/DOM2Helper.html#DOM2Helper()">DOM2Helper</A></B>()</CODE>
<BR>
Construct an instance.</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="../../../org/apache/xpath/DOM2Helper.html#checkNode(org.w3c.dom.Node)">checkNode</A></B>(<A HREF="../../../org/w3c/dom/Node.html">Node</A> node)</CODE>
<BR>
<i><font size="-1" color="#FF0000">**For internal use only** </font></i><meta name="usage" content="internal"/>
Check node to see if it was created by a DOM implementation
that this helper is intended to support.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../org/w3c/dom/Document.html">Document</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/DOM2Helper.html#getDocument()">getDocument</A></B>()</CODE>
<BR>
Query which document this helper is currently operating on.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../org/w3c/dom/Element.html">Element</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/DOM2Helper.html#getElementByID(java.lang.String, org.w3c.dom.Document)">getElementByID</A></B>(java.lang.String id,
<A HREF="../../../org/w3c/dom/Document.html">Document</A> doc)</CODE>
<BR>
Given an XML ID, return the element.</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="../../../org/apache/xpath/DOM2Helper.html#getLocalNameOfNode(org.w3c.dom.Node)">getLocalNameOfNode</A></B>(<A HREF="../../../org/w3c/dom/Node.html">Node</A> n)</CODE>
<BR>
Returns the local name of the given node, as defined by the
XML Namespaces specification.</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="../../../org/apache/xpath/DOM2Helper.html#getNamespaceOfNode(org.w3c.dom.Node)">getNamespaceOfNode</A></B>(<A HREF="../../../org/w3c/dom/Node.html">Node</A> n)</CODE>
<BR>
Returns the Namespace Name (Namespace URI) for the given node.</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/xpath/DOM2Helper.html#getParentOfNode(org.w3c.dom.Node)">getParentOfNode</A></B>(<A HREF="../../../org/w3c/dom/Node.html">Node</A> node)</CODE>
<BR>
Get the XPath-model parent of a node.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/DOM2Helper.html#isNodeAfter(org.w3c.dom.Node, org.w3c.dom.Node)">isNodeAfter</A></B>(<A HREF="../../../org/w3c/dom/Node.html">Node</A> node1,
<A HREF="../../../org/w3c/dom/Node.html">Node</A> node2)</CODE>
<BR>
Figure out whether node2 should be considered as being later
in the document than node1, in Document Order as defined
by the XPath model.</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="../../../org/apache/xpath/DOM2Helper.html#parse(org.xml.sax.InputSource)">parse</A></B>(<A HREF="../../../org/xml/sax/InputSource.html">InputSource</A> source)</CODE>
<BR>
<i><font size="-1" color="#FF0000">**For internal use only** </font></i><meta name="usage" content="internal"/>
Parse an XML document.</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="../../../org/apache/xpath/DOM2Helper.html#setDocument(org.w3c.dom.Document)">setDocument</A></B>(<A HREF="../../../org/w3c/dom/Document.html">Document</A> doc)</CODE>
<BR>
Specify which document this helper is currently operating on.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/DOM2Helper.html#supportsSAX()">supportsSAX</A></B>()</CODE>
<BR>
Returns true if the DOM implementation handled by this helper
supports the SAX ContentHandler interface.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_org.apache.xpath.DOMHelper"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class org.apache.xpath.<A HREF="../../../org/apache/xpath/DOMHelper.html">DOMHelper</A></B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../org/apache/xpath/DOMHelper.html#createDocument()">createDocument</A>,
<A HREF="../../../org/apache/xpath/DOMHelper.html#getDOMFactory()">getDOMFactory</A>,
<A HREF="../../../org/apache/xpath/DOMHelper.html#getExpandedAttributeName(org.w3c.dom.Attr)">getExpandedAttributeName</A>,
<A HREF="../../../org/apache/xpath/DOMHelper.html#getExpandedElementName(org.w3c.dom.Element)">getExpandedElementName</A>,
<A HREF="../../../org/apache/xpath/DOMHelper.html#getLevel(org.w3c.dom.Node)">getLevel</A>,
<A HREF="../../../org/apache/xpath/DOMHelper.html#getNamespaceForPrefix(java.lang.String, org.w3c.dom.Element)">getNamespaceForPrefix</A>,
<A HREF="../../../org/apache/xpath/DOMHelper.html#getNodeData(org.w3c.dom.Node)">getNodeData</A>,
<A HREF="../../../org/apache/xpath/DOMHelper.html#getNodeData(org.w3c.dom.Node, org.apache.xml.utils.FastStringBuffer)">getNodeData</A>,
<A HREF="../../../org/apache/xpath/DOMHelper.html#getRoot(org.w3c.dom.Node)">getRoot</A>,
<A HREF="../../../org/apache/xpath/DOMHelper.html#getRootNode(org.w3c.dom.Node)">getRootNode</A>,
<A HREF="../../../org/apache/xpath/DOMHelper.html#getUniqueID(org.w3c.dom.Node)">getUniqueID</A>,
<A HREF="../../../org/apache/xpath/DOMHelper.html#getUnparsedEntityURI(java.lang.String, org.w3c.dom.Document)">getUnparsedEntityURI</A>,
<A HREF="../../../org/apache/xpath/DOMHelper.html#isIgnorableWhitespace(org.w3c.dom.Text)">isIgnorableWhitespace</A>,
<A HREF="../../../org/apache/xpath/DOMHelper.html#isNamespaceNode(org.w3c.dom.Node)">isNamespaceNode</A>,
<A HREF="../../../org/apache/xpath/DOMHelper.html#setDOMFactory(org.w3c.dom.Document)">setDOMFactory</A>,
<A HREF="../../../org/apache/xpath/DOMHelper.html#shouldStripSourceNode(org.w3c.dom.Node)">shouldStripSourceNode</A></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="DOM2Helper()"><!-- --></A><H3>
DOM2Helper</H3>
<PRE>
public <B>DOM2Helper</B>()</PRE>
<DL>
<DD>Construct an instance.</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="checkNode(org.w3c.dom.Node)"><!-- --></A><H3>
checkNode</H3>
<PRE>
public void <B>checkNode</B>(<A HREF="../../../org/w3c/dom/Node.html">Node</A> node)
throws <A HREF="../../../javax/xml/transform/TransformerException.html">TransformerException</A></PRE>
<DL>
<DD><i><font size="-1" color="#FF0000">**For internal use only** </font></i><meta name="usage" content="internal"/>
Check node to see if it was created by a DOM implementation
that this helper is intended to support. This is currently
disabled, and assumes all nodes are acceptable rather than checking
that they implement org.apache.xerces.dom.NodeImpl.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>node</CODE> - The node to be tested.<DT><B>Throws:</B><DD><A HREF="../../../javax/xml/transform/TransformerException.html">TransformerException</A> - if the node is not one which this
DOM2Helper can support. If we return without throwing the exception,
the node is compatable.</DL>
</DD>
</DL>
<HR>
<A NAME="supportsSAX()"><!-- --></A><H3>
supportsSAX</H3>
<PRE>
public boolean <B>supportsSAX</B>()</PRE>
<DL>
<DD>Returns true if the DOM implementation handled by this helper
supports the SAX ContentHandler interface.<DD><DL>
<DT><B>Returns:</B><DD>true (since Xerces does).</DL>
</DD>
</DL>
<HR>
<A NAME="setDocument(org.w3c.dom.Document)"><!-- --></A><H3>
setDocument</H3>
<PRE>
public void <B>setDocument</B>(<A HREF="../../../org/w3c/dom/Document.html">Document</A> doc)</PRE>
<DL>
<DD>Specify which document this helper is currently operating on.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>doc</CODE> - The DOM Document node for this document.<DT><B>See Also: </B><DD><A HREF="../../../org/apache/xpath/DOM2Helper.html#getDocument()"><CODE>getDocument()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getDocument()"><!-- --></A><H3>
getDocument</H3>
<PRE>
public <A HREF="../../../org/w3c/dom/Document.html">Document</A> <B>getDocument</B>()</PRE>
<DL>
<DD>Query which document this helper is currently operating on.<DD><DL>
<DT><B>Returns:</B><DD>The DOM Document node for this document.<DT><B>See Also: </B><DD><A HREF="../../../org/apache/xpath/DOM2Helper.html#setDocument(org.w3c.dom.Document)"><CODE>setDocument(org.w3c.dom.Document)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="parse(org.xml.sax.InputSource)"><!-- --></A><H3>
parse</H3>
<PRE>
public void <B>parse</B>(<A HREF="../../../org/xml/sax/InputSource.html">InputSource</A> source)
throws <A HREF="../../../javax/xml/transform/TransformerException.html">TransformerException</A></PRE>
<DL>
<DD><i><font size="-1" color="#FF0000">**For internal use only** </font></i><meta name="usage" content="internal"/>
Parse an XML document.
<p>Right now the Xerces DOMParser class is used. This needs
fixing, either via jaxp, or via some other, standard method.</p>
<p>The application can use this method to instruct the SAX parser
to begin parsing an XML document from any valid input
source (a character stream, a byte stream, or a URI).</p>
<p>Applications may not invoke this method while a parse is in
progress (they should create a new Parser instead for each
additional XML document). Once a parse is complete, an
application may reuse the same Parser object, possibly with a
different input source.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>source</CODE> - The input source for the top-level of the
XML document.<DT><B>Throws:</B><DD><A HREF="../../../javax/xml/transform/TransformerException.html">TransformerException</A> - if any checked exception is thrown.</DL>
</DD>
</DL>
<HR>
<A NAME="getElementByID(java.lang.String, org.w3c.dom.Document)"><!-- --></A><H3>
getElementByID</H3>
<PRE>
public <A HREF="../../../org/w3c/dom/Element.html">Element</A> <B>getElementByID</B>(java.lang.String id,
<A HREF="../../../org/w3c/dom/Document.html">Document</A> doc)</PRE>
<DL>
<DD>Given an XML ID, return the element. This requires assistance from the
DOM and parser, and is meaningful only in the context of a DTD
or schema which declares attributes as being of type ID. This
information may or may not be available in all parsers, may or
may not be available for specific documents, and may or may not
be available when validation is not turned on.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>id</CODE> - The ID to search for, as a String.<DD><CODE>doc</CODE> - The document to search within, as a DOM Document node.<DT><B>Returns:</B><DD>DOM Element node with an attribute of type ID whose value
uniquely matches the requested id string, or null if there isn't
such an element or if the DOM can't answer the question for other
reasons.<DT><B>Overrides:</B><DD><A HREF="../../../org/apache/xpath/DOMHelper.html#getElementByID(java.lang.String, org.w3c.dom.Document)">getElementByID</A> in class <A HREF="../../../org/apache/xpath/DOMHelper.html">DOMHelper</A></DL>
</DD>
</DL>
<HR>
<A NAME="isNodeAfter(org.w3c.dom.Node, org.w3c.dom.Node)"><!-- --></A><H3>
isNodeAfter</H3>
<PRE>
public boolean <B>isNodeAfter</B>(<A HREF="../../../org/w3c/dom/Node.html">Node</A> node1,
<A HREF="../../../org/w3c/dom/Node.html">Node</A> node2)</PRE>
<DL>
<DD>Figure out whether node2 should be considered as being later
in the document than node1, in Document Order as defined
by the XPath model. This may not agree with the ordering defined
by other XML applications.
<p>
There are some cases where ordering isn't defined, and neither are
the results of this function -- though we'll generally return true.
<p>
TODO: Make sure this does the right thing with attribute nodes!!!<DD><DL>
<DT><B>Parameters:</B><DD><CODE>node1</CODE> - DOM Node to perform position comparison on.<DD><CODE>node2</CODE> - DOM Node to perform position comparison on .<DT><B>Returns:</B><DD>false if node2 comes before node1, otherwise return true.
You can think of this as
<code>(node1.documentOrderPosition <= node2.documentOrderPosition)</code>.<DT><B>Overrides:</B><DD><A HREF="../../../org/apache/xpath/DOMHelper.html#isNodeAfter(org.w3c.dom.Node, org.w3c.dom.Node)">isNodeAfter</A> in class <A HREF="../../../org/apache/xpath/DOMHelper.html">DOMHelper</A></DL>
</DD>
</DL>
<HR>
<A NAME="getParentOfNode(org.w3c.dom.Node)"><!-- --></A><H3>
getParentOfNode</H3>
<PRE>
public <A HREF="../../../org/w3c/dom/Node.html">Node</A> <B>getParentOfNode</B>(<A HREF="../../../org/w3c/dom/Node.html">Node</A> node)</PRE>
<DL>
<DD>Get the XPath-model parent of a node. This version takes advantage
of the DOM Level 2 Attr.ownerElement() method; the base version we
would otherwise inherit is prepared to fall back on exhaustively
walking the document to find an Attr's parent.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>node</CODE> - Node to be examined<DT><B>Returns:</B><DD>the DOM parent of the input node, if there is one, or the
ownerElement if the input node is an Attr, or null if the node is
a Document, a DocumentFragment, or an orphan.<DT><B>Overrides:</B><DD><A HREF="../../../org/apache/xpath/DOMHelper.html#getParentOfNode(org.w3c.dom.Node)">getParentOfNode</A> in class <A HREF="../../../org/apache/xpath/DOMHelper.html">DOMHelper</A></DL>
</DD>
</DL>
<HR>
<A NAME="getLocalNameOfNode(org.w3c.dom.Node)"><!-- --></A><H3>
getLocalNameOfNode</H3>
<PRE>
public java.lang.String <B>getLocalNameOfNode</B>(<A HREF="../../../org/w3c/dom/Node.html">Node</A> n)</PRE>
<DL>
<DD>Returns the local name of the given node, as defined by the
XML Namespaces specification. This is prepared to handle documents
built using DOM Level 1 methods by falling back upon explicitly
parsing the node name.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>n</CODE> - Node to be examined<DT><B>Returns:</B><DD>String containing the local name, or null if the node
was not assigned a Namespace.<DT><B>Overrides:</B><DD><A HREF="../../../org/apache/xpath/DOMHelper.html#getLocalNameOfNode(org.w3c.dom.Node)">getLocalNameOfNode</A> in class <A HREF="../../../org/apache/xpath/DOMHelper.html">DOMHelper</A></DL>
</DD>
</DL>
<HR>
<A NAME="getNamespaceOfNode(org.w3c.dom.Node)"><!-- --></A><H3>
getNamespaceOfNode</H3>
<PRE>
public java.lang.String <B>getNamespaceOfNode</B>(<A HREF="../../../org/w3c/dom/Node.html">Node</A> n)</PRE>
<DL>
<DD>Returns the Namespace Name (Namespace URI) for the given node.
In a Level 2 DOM, you can ask the node itself. Note, however, that
doing so conflicts with our decision in getLocalNameOfNode not
to trust the that the DOM was indeed created using the Level 2
methods. If Level 1 methods were used, these two functions will
disagree with each other.
<p>
TODO: Reconcile with getLocalNameOfNode.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>n</CODE> - Node to be examined<DT><B>Returns:</B><DD>String containing the Namespace URI bound to this DOM node
at the time the Node was created.<DT><B>Overrides:</B><DD><A HREF="../../../org/apache/xpath/DOMHelper.html#getNamespaceOfNode(org.w3c.dom.Node)">getNamespaceOfNode</A> in class <A HREF="../../../org/apache/xpath/DOMHelper.html">DOMHelper</A></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 ID="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT ID="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/DOM2Helper.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT ID="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/xpath/Arg.html"><B>PREV CLASS</B></A>
<A HREF="../../../org/apache/xpath/DOMHelper.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="DOM2Helper.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>
Copyright 2000 Apache XML Project. All Rights Reserved.
</BODY>
</HTML>
|