| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>Name (Apache Axis)</title> |
| <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="Name (Apache Axis)"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar_top"> |
| <!-- --> |
| </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/Name.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../index-all.html">Index</a></li> |
| <li><a href="../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../javax/xml/soap/MimeHeaders.html" title="class in javax.xml.soap"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../javax/xml/soap/Node.html" title="interface in javax.xml.soap"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../index.html?javax/xml/soap/Name.html" target="_top">Frames</a></li> |
| <li><a href="Name.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">javax.xml.soap</div> |
| <h2 title="Interface Name" class="title">Interface Name</h2> |
| </div> |
| <div class="contentContainer"> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Known Implementing Classes:</dt> |
| <dd><a href="../../../org/apache/axis/message/PrefixedQName.html" title="class in org.apache.axis.message">PrefixedQName</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public interface <span class="strong">Name</span></pre> |
| <div class="block">A representation of an XML name. This interface provides methods for |
| getting the local and namespace-qualified names and also for getting the |
| prefix associated with the namespace for the name. It is also possible |
| to get the URI of the namespace. |
| <P> |
| The following is an example of a namespace declaration in an element. |
| <PRE> |
| <wombat:GetLastTradePrice xmlns:wombat="http://www.wombat.org/trader"> |
| </PRE> |
| ("xmlns" stands for "XML namespace".) |
| The following |
| shows what the methods in the <code>Name</code> interface will return. |
| <UL> |
| <LI><code>getQualifiedName</code> will return "prefix:LocalName" = |
| "WOMBAT:GetLastTradePrice" |
| <LI><code>getURI</code> will return "http://www.wombat.org/trader" |
| <LI><code>getLocalName</code> will return "GetLastTracePrice" |
| <LI><code>getPrefix</code> will return "WOMBAT" |
| </UL> |
| <P> |
| XML namespaces are used to disambiguate SOAP identifiers from |
| application-specific identifiers. |
| <P> |
| <code>Name</code> objects are created using the method |
| <code>SOAPEnvelope.createName</code>, which has two versions. |
| One method creates <code>Name</code> objects with |
| a local name, a namespace prefix, and a namespace URI. |
| and the second creates <code>Name</code> objects with just a local name. |
| The following line of |
| code, in which <i>se</i> is a <code>SOAPEnvelope</code> object, creates a new |
| <code>Name</code> object with all three. |
| <PRE> |
| Name name = se.createName("GetLastTradePrice", "WOMBAT", |
| "http://www.wombat.org/trader"); |
| </PRE> |
| The following line of code gives an example of how a <code>Name</code> object |
| can be used. The variable <i>element</i> is a <code>SOAPElement</code> object. |
| This code creates a new <code>SOAPElement</code> object with the given name and |
| adds it to <i>element</i>. |
| <PRE> |
| element.addChildElement(name); |
| </PRE></div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span>Methods</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../javax/xml/soap/Name.html#getLocalName()">getLocalName</a></strong>()</code> |
| <div class="block">Gets the local name part of the XML name that this <code>Name</code> |
| object represents.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../javax/xml/soap/Name.html#getPrefix()">getPrefix</a></strong>()</code> |
| <div class="block">Returns the prefix associated with the namespace for the XML |
| name that this <code>Name</code> object represents.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../javax/xml/soap/Name.html#getQualifiedName()">getQualifiedName</a></strong>()</code> |
| <div class="block">Gets the namespace-qualified name of the XML name that this |
| <code>Name</code> object represents.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../javax/xml/soap/Name.html#getURI()">getURI</a></strong>()</code> |
| <div class="block">Returns the URI of the namespace for the XML |
| name that this <code>Name</code> object represents.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="getLocalName()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getLocalName</h4> |
| <pre><a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getLocalName()</pre> |
| <div class="block">Gets the local name part of the XML name that this <code>Name</code> |
| object represents.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>a string giving the local name</dd></dl> |
| </li> |
| </ul> |
| <a name="getQualifiedName()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getQualifiedName</h4> |
| <pre><a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getQualifiedName()</pre> |
| <div class="block">Gets the namespace-qualified name of the XML name that this |
| <code>Name</code> object represents.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>the namespace-qualified name as a string</dd></dl> |
| </li> |
| </ul> |
| <a name="getPrefix()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPrefix</h4> |
| <pre><a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getPrefix()</pre> |
| <div class="block">Returns the prefix associated with the namespace for the XML |
| name that this <code>Name</code> object represents.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>the prefix as a string</dd></dl> |
| </li> |
| </ul> |
| <a name="getURI()"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>getURI</h4> |
| <pre><a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getURI()</pre> |
| <div class="block">Returns the URI of the namespace for the XML |
| name that this <code>Name</code> object represents.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>the URI as a string</dd></dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar_bottom"> |
| <!-- --> |
| </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/Name.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../index-all.html">Index</a></li> |
| <li><a href="../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../javax/xml/soap/MimeHeaders.html" title="class in javax.xml.soap"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../javax/xml/soap/Node.html" title="interface in javax.xml.soap"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../index.html?javax/xml/soap/Name.html" target="_top">Frames</a></li> |
| <li><a href="Name.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.</small></p> |
| </body> |
| </html> |