| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| 2 |
<!--NewPage--> |
| 3 |
<HTML> |
| 4 |
<HEAD> |
| 5 |
<!-- Generated by javadoc (build 1.4.2_08) on Sat Apr 22 18:57:23 PDT 2006 --> |
| 6 |
<TITLE> |
| 7 |
NSStack (Axis API) |
| 8 |
</TITLE> |
| 9 |
|
| 10 |
<META NAME="keywords" CONTENT="org.apache.axis.utils.NSStack class"> |
| 11 |
|
| 12 |
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
| 13 |
|
| 14 |
<SCRIPT type="text/javascript"> |
| 15 |
function windowTitle() |
| 16 |
{ |
| 17 |
parent.document.title="NSStack (Axis API)"; |
| 18 |
} |
| 19 |
</SCRIPT> |
| 20 |
|
| 21 |
</HEAD> |
| 22 |
|
| 23 |
<BODY BGCOLOR="white" onload="windowTitle();"> |
| 24 |
|
| 25 |
|
| 26 |
<!-- ========= START OF TOP NAVBAR ======= --> |
| 27 |
<A NAME="navbar_top"><!-- --></A> |
| 28 |
<A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
| 29 |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| 30 |
<TR> |
| 31 |
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| 32 |
<A NAME="navbar_top_firstrow"><!-- --></A> |
| 33 |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| 34 |
<TR ALIGN="center" VALIGN="top"> |
| 35 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| 36 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| 37 |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| 38 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/NSStack.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| 39 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| 40 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| 41 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| 42 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| 43 |
</TR> |
| 44 |
</TABLE> |
| 45 |
</TD> |
| 46 |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| 47 |
</EM> |
| 48 |
</TD> |
| 49 |
</TR> |
| 50 |
|
| 51 |
<TR> |
| 52 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| 53 |
<A HREF="../../../../org/apache/axis/utils/NetworkUtils.html" title="class in org.apache.axis.utils"><B>PREV CLASS</B></A> |
| 54 |
<A HREF="../../../../org/apache/axis/utils/Options.html" title="class in org.apache.axis.utils"><B>NEXT CLASS</B></A></FONT></TD> |
| 55 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| 56 |
<A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> |
| 57 |
<A HREF="NSStack.html" target="_top"><B>NO FRAMES</B></A> |
| 58 |
<SCRIPT type="text/javascript"> |
| 59 |
<!-- |
| 60 |
if(window==top) { |
| 61 |
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| 62 |
} |
| 63 |
//--> |
| 64 |
</SCRIPT> |
| 65 |
<NOSCRIPT> |
| 66 |
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
| 67 |
</NOSCRIPT> |
| 68 |
|
| 69 |
</FONT></TD> |
| 70 |
</TR> |
| 71 |
<TR> |
| 72 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| 73 |
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| 74 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| 75 |
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| 76 |
</TR> |
| 77 |
</TABLE> |
| 78 |
<A NAME="skip-navbar_top"></A> |
| 79 |
<!-- ========= END OF TOP NAVBAR ========= --> |
| 80 |
|
| 81 |
<HR> |
| 82 |
<!-- ======== START OF CLASS DATA ======== --> |
| 83 |
<H2> |
| 84 |
<FONT SIZE="-1"> |
| 85 |
org.apache.axis.utils</FONT> |
| 86 |
<BR> |
| 87 |
Class NSStack</H2> |
| 88 |
<PRE> |
| 89 |
java.lang.Object |
| 90 |
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.axis.utils.NSStack</B> |
| 91 |
</PRE> |
| 92 |
<HR> |
| 93 |
<DL> |
| 94 |
<DT>public class <B>NSStack</B><DT>extends java.lang.Object</DL> |
| 95 |
|
| 96 |
<P> |
| 97 |
The abstraction this class provides is a push down stack of variable |
| 98 |
length frames of prefix to namespace mappings. Used for keeping track |
| 99 |
of what namespaces are active at any given point as an XML document is |
| 100 |
traversed or produced. |
| 101 |
|
| 102 |
From a performance point of view, this data will both be modified frequently |
| 103 |
(at a minimum, there will be one push and pop per XML element processed), |
| 104 |
and scanned frequently (many of the "good" mappings will be at the bottom |
| 105 |
of the stack). The one saving grace is that the expected maximum |
| 106 |
cardinalities of the number of frames and the number of total mappings |
| 107 |
is only in the dozens, representing the nesting depth of an XML document |
| 108 |
and the number of active namespaces at any point in the processing. |
| 109 |
|
| 110 |
Accordingly, this stack is implemented as a single array, will null |
| 111 |
values used to indicate frame boundaries. |
| 112 |
<P> |
| 113 |
|
| 114 |
<P> |
| 115 |
<DL> |
| 116 |
<DT><B>Author:</B></DT> |
| 117 |
<DD>James Snell, Glen Daniels ([email protected]), Sam Ruby ([email protected])</DD> |
| 118 |
</DL> |
| 119 |
<HR> |
| 120 |
|
| 121 |
<P> |
| 122 |
<!-- ======== NESTED CLASS SUMMARY ======== --> |
| 123 |
|
| 124 |
|
| 125 |
<!-- =========== FIELD SUMMARY =========== --> |
| 126 |
|
| 127 |
<A NAME="field_summary"><!-- --></A> |
| 128 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 129 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| 130 |
<TD COLSPAN=2><FONT SIZE="+2"> |
| 131 |
<B>Field Summary</B></FONT></TD> |
| 132 |
</TR> |
| 133 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 134 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 135 |
<CODE>protected static org.apache.commons.logging.Log</CODE></FONT></TD> |
| 136 |
<TD><CODE><B><A HREF="../../../../org/apache/axis/utils/NSStack.html#log">log</A></B></CODE> |
| 137 |
|
| 138 |
<BR> |
| 139 |
</TD> |
| 140 |
</TR> |
| 141 |
</TABLE> |
| 142 |
|
| 143 |
<!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| 144 |
|
| 145 |
<A NAME="constructor_summary"><!-- --></A> |
| 146 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 147 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| 148 |
<TD COLSPAN=2><FONT SIZE="+2"> |
| 149 |
<B>Constructor Summary</B></FONT></TD> |
| 150 |
</TR> |
| 151 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 152 |
<TD><CODE><B><A HREF="../../../../org/apache/axis/utils/NSStack.html#NSStack()">NSStack</A></B>()</CODE> |
| 153 |
|
| 154 |
<BR> |
| 155 |
</TD> |
| 156 |
</TR> |
| 157 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 158 |
<TD><CODE><B><A HREF="../../../../org/apache/axis/utils/NSStack.html#NSStack(boolean)">NSStack</A></B>(boolean optimizePrefixes)</CODE> |
| 159 |
|
| 160 |
<BR> |
| 161 |
</TD> |
| 162 |
</TR> |
| 163 |
</TABLE> |
| 164 |
|
| 165 |
<!-- ========== METHOD SUMMARY =========== --> |
| 166 |
|
| 167 |
<A NAME="method_summary"><!-- --></A> |
| 168 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 169 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| 170 |
<TD COLSPAN=2><FONT SIZE="+2"> |
| 171 |
<B>Method Summary</B></FONT></TD> |
| 172 |
</TR> |
| 173 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 174 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 175 |
<CODE> void</CODE></FONT></TD> |
| 176 |
<TD><CODE><B><A HREF="../../../../org/apache/axis/utils/NSStack.html#add(java.lang.String, java.lang.String)">add</A></B>(java.lang.String namespaceURI, |
| 177 |
java.lang.String prefix)</CODE> |
| 178 |
|
| 179 |
<BR> |
| 180 |
Add a mapping for a namespaceURI to the specified prefix to the top |
| 181 |
frame in the stack.</TD> |
| 182 |
</TR> |
| 183 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 184 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 185 |
<CODE> java.util.ArrayList</CODE></FONT></TD> |
| 186 |
<TD><CODE><B><A HREF="../../../../org/apache/axis/utils/NSStack.html#cloneFrame()">cloneFrame</A></B>()</CODE> |
| 187 |
|
| 188 |
<BR> |
| 189 |
Return a copy of the current frame.</TD> |
| 190 |
</TR> |
| 191 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 192 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 193 |
<CODE> void</CODE></FONT></TD> |
| 194 |
<TD><CODE><B><A HREF="../../../../org/apache/axis/utils/NSStack.html#dump(java.lang.String)">dump</A></B>(java.lang.String dumpPrefix)</CODE> |
| 195 |
|
| 196 |
<BR> |
| 197 |
Produce a trace dump of the entire stack, starting from the top and |
| 198 |
including frame markers.</TD> |
| 199 |
</TR> |
| 200 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 201 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 202 |
<CODE> java.lang.String</CODE></FONT></TD> |
| 203 |
<TD><CODE><B><A HREF="../../../../org/apache/axis/utils/NSStack.html#getNamespaceURI(java.lang.String)">getNamespaceURI</A></B>(java.lang.String prefix)</CODE> |
| 204 |
|
| 205 |
<BR> |
| 206 |
Given a prefix, return the associated namespace (if any).</TD> |
| 207 |
</TR> |
| 208 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 209 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 210 |
<CODE> java.lang.String</CODE></FONT></TD> |
| 211 |
<TD><CODE><B><A HREF="../../../../org/apache/axis/utils/NSStack.html#getPrefix(java.lang.String)">getPrefix</A></B>(java.lang.String namespaceURI)</CODE> |
| 212 |
|
| 213 |
<BR> |
| 214 |
Return an active prefix for the given namespaceURI, including |
| 215 |
the default prefix ("").</TD> |
| 216 |
</TR> |
| 217 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 218 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 219 |
<CODE> java.lang.String</CODE></FONT></TD> |
| 220 |
<TD><CODE><B><A HREF="../../../../org/apache/axis/utils/NSStack.html#getPrefix(java.lang.String, boolean)">getPrefix</A></B>(java.lang.String namespaceURI, |
| 221 |
boolean noDefault)</CODE> |
| 222 |
|
| 223 |
<BR> |
| 224 |
Return an active prefix for the given namespaceURI.</TD> |
| 225 |
</TR> |
| 226 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 227 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 228 |
<CODE> <A HREF="../../../../org/apache/axis/utils/Mapping.html" title="class in org.apache.axis.utils">Mapping</A></CODE></FONT></TD> |
| 229 |
<TD><CODE><B><A HREF="../../../../org/apache/axis/utils/NSStack.html#next()">next</A></B>()</CODE> |
| 230 |
|
| 231 |
<BR> |
| 232 |
Return the next namespace mapping in the top frame.</TD> |
| 233 |
</TR> |
| 234 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 235 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 236 |
<CODE> void</CODE></FONT></TD> |
| 237 |
<TD><CODE><B><A HREF="../../../../org/apache/axis/utils/NSStack.html#pop()">pop</A></B>()</CODE> |
| 238 |
|
| 239 |
<BR> |
| 240 |
Remove the top frame from the stack.</TD> |
| 241 |
</TR> |
| 242 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 243 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 244 |
<CODE> void</CODE></FONT></TD> |
| 245 |
<TD><CODE><B><A HREF="../../../../org/apache/axis/utils/NSStack.html#push()">push</A></B>()</CODE> |
| 246 |
|
| 247 |
<BR> |
| 248 |
Create a new frame at the top of the stack.</TD> |
| 249 |
</TR> |
| 250 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 251 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 252 |
<CODE> <A HREF="../../../../org/apache/axis/utils/Mapping.html" title="class in org.apache.axis.utils">Mapping</A></CODE></FONT></TD> |
| 253 |
<TD><CODE><B><A HREF="../../../../org/apache/axis/utils/NSStack.html#topOfFrame()">topOfFrame</A></B>()</CODE> |
| 254 |
|
| 255 |
<BR> |
| 256 |
Reset the embedded iterator in this class to the top of the current |
| 257 |
(i.e., last) frame.</TD> |
| 258 |
</TR> |
| 259 |
</TABLE> |
| 260 |
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
| 261 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 262 |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| 263 |
<TD><B>Methods inherited from class java.lang.Object</B></TD> |
| 264 |
</TR> |
| 265 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 266 |
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> |
| 267 |
</TR> |
| 268 |
</TABLE> |
| 269 |
|
| 270 |
<P> |
| 271 |
|
| 272 |
<!-- ============ FIELD DETAIL =========== --> |
| 273 |
|
| 274 |
<A NAME="field_detail"><!-- --></A> |
| 275 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 276 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| 277 |
<TD COLSPAN=1><FONT SIZE="+2"> |
| 278 |
<B>Field Detail</B></FONT></TD> |
| 279 |
</TR> |
| 280 |
</TABLE> |
| 281 |
|
| 282 |
<A NAME="log"><!-- --></A><H3> |
| 283 |
log</H3> |
| 284 |
<PRE> |
| 285 |
protected static org.apache.commons.logging.Log <B>log</B></PRE> |
| 286 |
<DL> |
| 287 |
<DL> |
| 288 |
</DL> |
| 289 |
</DL> |
| 290 |
|
| 291 |
<!-- ========= CONSTRUCTOR DETAIL ======== --> |
| 292 |
|
| 293 |
<A NAME="constructor_detail"><!-- --></A> |
| 294 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 295 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| 296 |
<TD COLSPAN=1><FONT SIZE="+2"> |
| 297 |
<B>Constructor Detail</B></FONT></TD> |
| 298 |
</TR> |
| 299 |
</TABLE> |
| 300 |
|
| 301 |
<A NAME="NSStack(boolean)"><!-- --></A><H3> |
| 302 |
NSStack</H3> |
| 303 |
<PRE> |
| 304 |
public <B>NSStack</B>(boolean optimizePrefixes)</PRE> |
| 305 |
<DL> |
| 306 |
</DL> |
| 307 |
<HR> |
| 308 |
|
| 309 |
<A NAME="NSStack()"><!-- --></A><H3> |
| 310 |
NSStack</H3> |
| 311 |
<PRE> |
| 312 |
public <B>NSStack</B>()</PRE> |
| 313 |
<DL> |
| 314 |
</DL> |
| 315 |
|
| 316 |
<!-- ============ METHOD DETAIL ========== --> |
| 317 |
|
| 318 |
<A NAME="method_detail"><!-- --></A> |
| 319 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 320 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| 321 |
<TD COLSPAN=1><FONT SIZE="+2"> |
| 322 |
<B>Method Detail</B></FONT></TD> |
| 323 |
</TR> |
| 324 |
</TABLE> |
| 325 |
|
| 326 |
<A NAME="push()"><!-- --></A><H3> |
| 327 |
push</H3> |
| 328 |
<PRE> |
| 329 |
public void <B>push</B>()</PRE> |
| 330 |
<DL> |
| 331 |
<DD>Create a new frame at the top of the stack. |
| 332 |
<P> |
| 333 |
<DD><DL> |
| 334 |
</DL> |
| 335 |
</DD> |
| 336 |
</DL> |
| 337 |
<HR> |
| 338 |
|
| 339 |
<A NAME="pop()"><!-- --></A><H3> |
| 340 |
pop</H3> |
| 341 |
<PRE> |
| 342 |
public void <B>pop</B>()</PRE> |
| 343 |
<DL> |
| 344 |
<DD>Remove the top frame from the stack. |
| 345 |
<P> |
| 346 |
<DD><DL> |
| 347 |
</DL> |
| 348 |
</DD> |
| 349 |
</DL> |
| 350 |
<HR> |
| 351 |
|
| 352 |
<A NAME="cloneFrame()"><!-- --></A><H3> |
| 353 |
cloneFrame</H3> |
| 354 |
<PRE> |
| 355 |
public java.util.ArrayList <B>cloneFrame</B>()</PRE> |
| 356 |
<DL> |
| 357 |
<DD>Return a copy of the current frame. Returns null if none are present. |
| 358 |
<P> |
| 359 |
<DD><DL> |
| 360 |
</DL> |
| 361 |
</DD> |
| 362 |
</DL> |
| 363 |
<HR> |
| 364 |
|
| 365 |
<A NAME="topOfFrame()"><!-- --></A><H3> |
| 366 |
topOfFrame</H3> |
| 367 |
<PRE> |
| 368 |
public <A HREF="../../../../org/apache/axis/utils/Mapping.html" title="class in org.apache.axis.utils">Mapping</A> <B>topOfFrame</B>()</PRE> |
| 369 |
<DL> |
| 370 |
<DD>Reset the embedded iterator in this class to the top of the current |
| 371 |
(i.e., last) frame. Note that this is not threadsafe, nor does it |
| 372 |
provide multiple iterators, so don't use this recursively. Nor |
| 373 |
should you modify the stack while iterating over it. |
| 374 |
<P> |
| 375 |
<DD><DL> |
| 376 |
</DL> |
| 377 |
</DD> |
| 378 |
</DL> |
| 379 |
<HR> |
| 380 |
|
| 381 |
<A NAME="next()"><!-- --></A><H3> |
| 382 |
next</H3> |
| 383 |
<PRE> |
| 384 |
public <A HREF="../../../../org/apache/axis/utils/Mapping.html" title="class in org.apache.axis.utils">Mapping</A> <B>next</B>()</PRE> |
| 385 |
<DL> |
| 386 |
<DD>Return the next namespace mapping in the top frame. |
| 387 |
<P> |
| 388 |
<DD><DL> |
| 389 |
</DL> |
| 390 |
</DD> |
| 391 |
</DL> |
| 392 |
<HR> |
| 393 |
|
| 394 |
<A NAME="add(java.lang.String, java.lang.String)"><!-- --></A><H3> |
| 395 |
add</H3> |
| 396 |
<PRE> |
| 397 |
public void <B>add</B>(java.lang.String namespaceURI, |
| 398 |
java.lang.String prefix)</PRE> |
| 399 |
<DL> |
| 400 |
<DD>Add a mapping for a namespaceURI to the specified prefix to the top |
| 401 |
frame in the stack. If the prefix is already mapped in that frame, |
| 402 |
remap it to the (possibly different) namespaceURI. |
| 403 |
<P> |
| 404 |
<DD><DL> |
| 405 |
</DL> |
| 406 |
</DD> |
| 407 |
</DL> |
| 408 |
<HR> |
| 409 |
|
| 410 |
<A NAME="getPrefix(java.lang.String, boolean)"><!-- --></A><H3> |
| 411 |
getPrefix</H3> |
| 412 |
<PRE> |
| 413 |
public java.lang.String <B>getPrefix</B>(java.lang.String namespaceURI, |
| 414 |
boolean noDefault)</PRE> |
| 415 |
<DL> |
| 416 |
<DD>Return an active prefix for the given namespaceURI. NOTE : This |
| 417 |
may return null even if the namespaceURI was actually mapped further |
| 418 |
up the stack IF the prefix which was used has been repeated further |
| 419 |
down the stack. I.e.: |
| 420 |
|
| 421 |
<pre:outer xmlns:pre="namespace"> |
| 422 |
<pre:inner xmlns:pre="otherNamespace"> |
| 423 |
*here's where we're looking* |
| 424 |
</pre:inner> |
| 425 |
</pre:outer> |
| 426 |
|
| 427 |
If we look for a prefix for "namespace" at the indicated spot, we won't |
| 428 |
find one because "pre" is actually mapped to "otherNamespace" |
| 429 |
<P> |
| 430 |
<DD><DL> |
| 431 |
</DL> |
| 432 |
</DD> |
| 433 |
</DL> |
| 434 |
<HR> |
| 435 |
|
| 436 |
<A NAME="getPrefix(java.lang.String)"><!-- --></A><H3> |
| 437 |
getPrefix</H3> |
| 438 |
<PRE> |
| 439 |
public java.lang.String <B>getPrefix</B>(java.lang.String namespaceURI)</PRE> |
| 440 |
<DL> |
| 441 |
<DD>Return an active prefix for the given namespaceURI, including |
| 442 |
the default prefix (""). |
| 443 |
<P> |
| 444 |
<DD><DL> |
| 445 |
</DL> |
| 446 |
</DD> |
| 447 |
</DL> |
| 448 |
<HR> |
| 449 |
|
| 450 |
<A NAME="getNamespaceURI(java.lang.String)"><!-- --></A><H3> |
| 451 |
getNamespaceURI</H3> |
| 452 |
<PRE> |
| 453 |
public java.lang.String <B>getNamespaceURI</B>(java.lang.String prefix)</PRE> |
| 454 |
<DL> |
| 455 |
<DD>Given a prefix, return the associated namespace (if any). |
| 456 |
<P> |
| 457 |
<DD><DL> |
| 458 |
</DL> |
| 459 |
</DD> |
| 460 |
</DL> |
| 461 |
<HR> |
| 462 |
|
| 463 |
<A NAME="dump(java.lang.String)"><!-- --></A><H3> |
| 464 |
dump</H3> |
| 465 |
<PRE> |
| 466 |
public void <B>dump</B>(java.lang.String dumpPrefix)</PRE> |
| 467 |
<DL> |
| 468 |
<DD>Produce a trace dump of the entire stack, starting from the top and |
| 469 |
including frame markers. |
| 470 |
<P> |
| 471 |
<DD><DL> |
| 472 |
</DL> |
| 473 |
</DD> |
| 474 |
</DL> |
| 475 |
<!-- ========= END OF CLASS DATA ========= --> |
| 476 |
<HR> |
| 477 |
|
| 478 |
|
| 479 |
<!-- ======= START OF BOTTOM NAVBAR ====== --> |
| 480 |
<A NAME="navbar_bottom"><!-- --></A> |
| 481 |
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
| 482 |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| 483 |
<TR> |
| 484 |
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| 485 |
<A NAME="navbar_bottom_firstrow"><!-- --></A> |
| 486 |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| 487 |
<TR ALIGN="center" VALIGN="top"> |
| 488 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| 489 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| 490 |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| 491 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/NSStack.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| 492 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| 493 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| 494 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| 495 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| 496 |
</TR> |
| 497 |
</TABLE> |
| 498 |
</TD> |
| 499 |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| 500 |
</EM> |
| 501 |
</TD> |
| 502 |
</TR> |
| 503 |
|
| 504 |
<TR> |
| 505 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| 506 |
<A HREF="../../../../org/apache/axis/utils/NetworkUtils.html" title="class in org.apache.axis.utils"><B>PREV CLASS</B></A> |
| 507 |
<A HREF="../../../../org/apache/axis/utils/Options.html" title="class in org.apache.axis.utils"><B>NEXT CLASS</B></A></FONT></TD> |
| 508 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| 509 |
<A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> |
| 510 |
<A HREF="NSStack.html" target="_top"><B>NO FRAMES</B></A> |
| 511 |
<SCRIPT type="text/javascript"> |
| 512 |
<!-- |
| 513 |
if(window==top) { |
| 514 |
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| 515 |
} |
| 516 |
//--> |
| 517 |
</SCRIPT> |
| 518 |
<NOSCRIPT> |
| 519 |
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
| 520 |
</NOSCRIPT> |
| 521 |
|
| 522 |
</FONT></TD> |
| 523 |
</TR> |
| 524 |
<TR> |
| 525 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| 526 |
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| 527 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| 528 |
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| 529 |
</TR> |
| 530 |
</TABLE> |
| 531 |
<A NAME="skip-navbar_bottom"></A> |
| 532 |
<!-- ======== END OF BOTTOM NAVBAR ======= --> |
| 533 |
|
| 534 |
<HR> |
| 535 |
Copyright © 2005 Apache Web Services Project. All Rights Reserved. |
| 536 |
</BODY> |
| 537 |
</HTML> |