axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chinth...@apache.org
Subject svn commit: r312580 - in /webservices/axis2/trunk/java/modules: core/src/org/apache/axis2/addressing/EndpointReference.java xml/src/org/apache/axis2/om/impl/llom/OMElementImpl.java
Date Mon, 10 Oct 2005 08:17:14 GMT
Author: chinthaka
Date: Mon Oct 10 01:16:53 2005
New Revision: 312580

URL: http://svn.apache.org/viewcvs?rev=312580&view=rev
Log:
Fixing build break (Created by me of course :) )

Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/addressing/EndpointReference.java
    webservices/axis2/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/OMElementImpl.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/addressing/EndpointReference.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/addressing/EndpointReference.java?rev=312580&r1=312579&r2=312580&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/addressing/EndpointReference.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/addressing/EndpointReference.java
Mon Oct 10 01:16:53 2005
@@ -63,8 +63,6 @@
 
     /**
      * Method getValue
-     *
-     * @return
      */
     public String getAddress() {
         return address;
@@ -81,8 +79,6 @@
 
     /**
      * Method getInterfaceName
-     *
-     * @return
      */
     public QName getInterfaceName() {
         return interfaceName;
@@ -99,8 +95,6 @@
 
     /**
      * Method getReferenceProperties
-     *
-     * @return
      */
     public AnyContentType getReferenceProperties() {
         return referenceProperties;
@@ -117,8 +111,6 @@
 
     /**
      * Method getReferenceParameters
-     *
-     * @return
      */
     public AnyContentType getReferenceParameters() {
         return referenceParameters;
@@ -135,8 +127,6 @@
 
     /**
      * Method getServiceName
-     *
-     * @return
      */
     public ServiceName getServiceName() {
         return serviceName;
@@ -165,6 +155,13 @@
 
     public void setMetadata(AnyContentType metadata) {
         this.metadata = metadata;
+    }
+
+    public void addReferenceParameter(QName qname, String value) {
+        if (getReferenceParameters() == null) {
+            setReferenceParameters(new AnyContentType());
+        }
+        referenceParameters.addReferenceValue(qname, value);
     }
 
 

Modified: webservices/axis2/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/OMElementImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/OMElementImpl.java?rev=312580&r1=312579&r2=312580&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/OMElementImpl.java
(original)
+++ webservices/axis2/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/OMElementImpl.java
Mon Oct 10 01:16:53 2005
@@ -386,7 +386,8 @@
      * @return an OMAttribute with the given name if found, or null
      */
     public OMAttribute getAttribute(QName qname) {
-        return (OMAttribute) attributes.get(qname);
+
+        return attributes == null ? null : (OMAttribute) attributes.get(qname);
     }
 
     /**



Mime
View raw message