ws-woden-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkapu...@apache.org
Subject svn commit: r293249 - /incubator/woden/java/src/org/apache/woden/wsdl20/xml/DescriptionElement.java
Date Mon, 03 Oct 2005 05:14:25 GMT
Author: jkaputin
Date: Sun Oct  2 22:14:19 2005
New Revision: 293249

URL: http://svn.apache.org/viewcvs?rev=293249&view=rev
Log:
added namespace handling methods

Modified:
    incubator/woden/java/src/org/apache/woden/wsdl20/xml/DescriptionElement.java

Modified: incubator/woden/java/src/org/apache/woden/wsdl20/xml/DescriptionElement.java
URL: http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/wsdl20/xml/DescriptionElement.java?rev=293249&r1=293248&r2=293249&view=diff
==============================================================================
--- incubator/woden/java/src/org/apache/woden/wsdl20/xml/DescriptionElement.java (original)
+++ incubator/woden/java/src/org/apache/woden/wsdl20/xml/DescriptionElement.java Sun Oct 
2 22:14:19 2005
@@ -43,9 +43,33 @@
     public void setTargetNamespace(String namespace);
     public String getTargetNamespace();
 
+    /**
+     * This is a way to add a namespace association to a definition.
+     * It is similar to adding a namespace prefix declaration to the
+     * top of a <wsdl:definition> element. This has nothing to do
+     * with the <wsdl:import> element; there are separate methods for
+     * dealing with information described by <wsdl:import> elements.
+     *
+     * @param prefix the prefix to use for this namespace (when
+     * rendering this information as XML). Use null or an empty string
+     * to describe the default namespace (i.e. xmlns="...").
+     * @param namespaceURI the namespace URI to associate the prefix
+     * with. If you use null, the namespace association will be removed.
+     */
     public void addNamespace(String prefix, String namespace);
+    
     public void removeNamespace(String prefix);
+    
+    /**
+     * Get the namespace URI associated with this prefix. Or null if
+     * there is no namespace URI associated with this prefix. This is
+     * unrelated to the <wsdl:import> element.
+     *
+     * @see #addNamespace(String, String)
+     * @see #getPrefix(String)
+     */
     public String getNamespace(String prefix);
+    
     public Map getNamespaces();//TODO return arrays instead of Map?
     
     /*



---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org


Mime
View raw message