axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r786805 - in /webservices/axis2/trunk/java/modules: adb/src/org/apache/axis2/databinding/ adb/test/org/apache/axis2/databinding/ adb/test/org/apache/axis2/databinding/utils/reader/ jaxws-integration/test/server/
Date Sat, 20 Jun 2009 12:25:19 GMT
Author: veithen
Date: Sat Jun 20 12:25:19 2009
New Revision: 786805

URL: http://svn.apache.org/viewvc?rev=786805&view=rev
Log:
Added the getOMElement method (which is generated for all ADB beans) to the ADBBean interface.

Modified:
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBBean.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBSOAPModelBuilder.java
    webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/ADBSOAPModelBuilderTest.java
    webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/ClientInfo.java
    webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/CreateAccountRequest.java
    webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/utils/reader/ADBXMLStreamReaderTest.java
    webservices/axis2/trunk/java/modules/jaxws-integration/test/server/EchoString.java
    webservices/axis2/trunk/java/modules/jaxws-integration/test/server/EchoStringResponse.java

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBBean.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBBean.java?rev=786805&r1=786804&r2=786805&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBBean.java
(original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBBean.java
Sat Jun 20 12:25:19 2009
@@ -19,6 +19,7 @@
 
 package org.apache.axis2.databinding;
 
+import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMFactory;
 import org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter;
 
@@ -42,6 +43,7 @@
      */
     public XMLStreamReader getPullParser(QName adbBeanQName) throws XMLStreamException;
 
+    public OMElement getOMElement(QName parentQName, OMFactory factory) throws ADBException;
 
     public void serialize(final QName parentQName,
                           final OMFactory factory,

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBSOAPModelBuilder.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBSOAPModelBuilder.java?rev=786805&r1=786804&r2=786805&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBSOAPModelBuilder.java
(original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBSOAPModelBuilder.java
Sat Jun 20 12:25:19 2009
@@ -19,6 +19,7 @@
 
 package org.apache.axis2.databinding;
 
+import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMFactory;
 import org.apache.axiom.soap.SOAPConstants;
 import org.apache.axiom.soap.SOAPEnvelope;
@@ -69,6 +70,10 @@
                             ADBXMLStreamReaderImpl(qName, elementList.toArray(), null));
         }
 
+        public OMElement getOMElement(QName parentQName, OMFactory factory) throws ADBException
{
+            throw new UnsupportedOperationException("Unimplemented method");
+        }
+
         public void serialize(final QName parentQName,
                               final OMFactory factory,
                               MTOMAwareXMLStreamWriter xmlWriter)
@@ -81,7 +86,7 @@
                               MTOMAwareXMLStreamWriter xmlWriter,
                               boolean serializeType)
                 throws XMLStreamException, ADBException {
-            throw new UnsupportedOperationException("Un implemented method");
+            throw new UnsupportedOperationException("Unimplemented method");
         }
     }
 
@@ -106,6 +111,10 @@
                                                                                         null);
         }
 
+        public OMElement getOMElement(QName parentQName, OMFactory factory) throws ADBException
{
+            throw new UnsupportedOperationException("Unimplemented method");
+        }
+
         public void serialize(final QName parentQName,
                               final OMFactory factory,
                               MTOMAwareXMLStreamWriter xmlWriter)
@@ -118,7 +127,7 @@
                               MTOMAwareXMLStreamWriter xmlWriter,
                               boolean serializeType)
                 throws XMLStreamException, ADBException {
-            throw new UnsupportedOperationException("Un implemented method");
+            throw new UnsupportedOperationException("Unimplemented method");
         }
     }
 
@@ -130,6 +139,11 @@
                                                                                         elementList.toArray(),
                                                                                         null);
         }
+
+        public OMElement getOMElement(QName parentQName, OMFactory factory) throws ADBException
{
+            throw new UnsupportedOperationException("Unimplemented method");
+        }
+
         public void serialize(final QName parentQName,
                               final OMFactory factory,
                               MTOMAwareXMLStreamWriter xmlWriter)
@@ -142,7 +156,7 @@
                               MTOMAwareXMLStreamWriter xmlWriter,
                               boolean serializeType)
                 throws XMLStreamException, ADBException {
-            throw new UnsupportedOperationException("Un implemented method");
+            throw new UnsupportedOperationException("Unimplemented method");
         }
     }
 
@@ -157,6 +171,11 @@
         public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
{
             return parser;
         }
+
+        public OMElement getOMElement(QName parentQName, OMFactory factory) throws ADBException
{
+            throw new UnsupportedOperationException("Unimplemented method");
+        }
+
         public void serialize(final QName parentQName,
                               final OMFactory factory,
                               MTOMAwareXMLStreamWriter xmlWriter)
@@ -169,7 +188,7 @@
                               MTOMAwareXMLStreamWriter xmlWriter,
                               boolean serializeType)
                 throws XMLStreamException, ADBException {
-            throw new UnsupportedOperationException("Un implemented method");
+            throw new UnsupportedOperationException("Unimplemented method");
         }
     }
 }

Modified: webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/ADBSOAPModelBuilderTest.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/ADBSOAPModelBuilderTest.java?rev=786805&r1=786804&r2=786805&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/ADBSOAPModelBuilderTest.java
(original)
+++ webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/ADBSOAPModelBuilderTest.java
Sat Jun 20 12:25:19 2009
@@ -193,6 +193,10 @@
             return new ADBXMLStreamReaderImpl(adbBeanQName, propertyList.toArray(), null);
         }
 
+        public OMElement getOMElement(QName parentQName, OMFactory factory) throws ADBException
{
+            throw new UnsupportedOperationException("Unimplemented method");
+        }
+
         public void serialize(final QName parentQName,
                               final OMFactory factory,
                               MTOMAwareXMLStreamWriter xmlWriter)
@@ -205,7 +209,7 @@
                               MTOMAwareXMLStreamWriter xmlWriter,
                               boolean serializeType)
                 throws XMLStreamException, ADBException {
-            throw new UnsupportedOperationException("Un implemented method");
+            throw new UnsupportedOperationException("Unimplemented method");
         }
     }
 

Modified: webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/ClientInfo.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/ClientInfo.java?rev=786805&r1=786804&r2=786805&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/ClientInfo.java
(original)
+++ webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/ClientInfo.java
Sat Jun 20 12:25:19 2009
@@ -26,6 +26,7 @@
 
 package org.apache.axis2.databinding;
 
+import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMFactory;
 import org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter;
 
@@ -124,6 +125,10 @@
 
     }
 
+    public OMElement getOMElement(QName parentQName, OMFactory factory) throws ADBException
{
+        throw new UnsupportedOperationException("Unimplemented method");
+    }
+
     public void serialize(final QName parentQName,
                           final OMFactory factory,
                           MTOMAwareXMLStreamWriter xmlWriter)
@@ -136,7 +141,7 @@
                               MTOMAwareXMLStreamWriter xmlWriter,
                               boolean serializeType)
                 throws XMLStreamException, ADBException {
-            throw new UnsupportedOperationException("Un implemented method");
+            throw new UnsupportedOperationException("Unimplemented method");
         }
 
     /** Factory class that keeps the parse method */

Modified: webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/CreateAccountRequest.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/CreateAccountRequest.java?rev=786805&r1=786804&r2=786805&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/CreateAccountRequest.java
(original)
+++ webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/CreateAccountRequest.java
Sat Jun 20 12:25:19 2009
@@ -26,6 +26,7 @@
 
 package org.apache.axis2.databinding;
 
+import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMFactory;
 import org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter;
 
@@ -105,6 +106,10 @@
 
     }
 
+    public OMElement getOMElement(QName parentQName, OMFactory factory) throws ADBException
{
+        throw new UnsupportedOperationException("Unimplemented method");
+    }
+
     public void serialize(final QName parentQName,
                           final OMFactory factory,
                           MTOMAwareXMLStreamWriter xmlWriter)
@@ -117,7 +122,7 @@
                               MTOMAwareXMLStreamWriter xmlWriter,
                               boolean serializeType)
                 throws XMLStreamException, ADBException {
-            throw new UnsupportedOperationException("Un implemented method");
+            throw new UnsupportedOperationException("Unimplemented method");
         }
 
     /** Factory class that keeps the parse method */

Modified: webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/utils/reader/ADBXMLStreamReaderTest.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/utils/reader/ADBXMLStreamReaderTest.java?rev=786805&r1=786804&r2=786805&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/utils/reader/ADBXMLStreamReaderTest.java
(original)
+++ webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/utils/reader/ADBXMLStreamReaderTest.java
Sat Jun 20 12:25:19 2009
@@ -313,6 +313,10 @@
             return new ADBXMLStreamReaderImpl(adbBeanQName, propertyList.toArray(), null);
         }
 
+        public OMElement getOMElement(QName parentQName, OMFactory factory) throws ADBException
{
+            throw new UnsupportedOperationException("Unimplemented method");
+        }
+
         public void serialize(final QName parentQName,
                               final OMFactory factory,
                               MTOMAwareXMLStreamWriter xmlWriter)
@@ -325,7 +329,7 @@
                               MTOMAwareXMLStreamWriter xmlWriter,
                               boolean serializeType)
                 throws XMLStreamException, ADBException {
-            throw new UnsupportedOperationException("Un implemented method");
+            throw new UnsupportedOperationException("Unimplemented method");
         }
     }
 

Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/server/EchoString.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/server/EchoString.java?rev=786805&r1=786804&r2=786805&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/server/EchoString.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/server/EchoString.java Sat
Jun 20 12:25:19 2009
@@ -104,6 +104,30 @@
 
         }
 
+        /**
+        *
+        * @param parentQName
+        * @param factory
+        * @return org.apache.axiom.om.OMElement
+        */
+       public org.apache.axiom.om.OMElement getOMElement (
+               final javax.xml.namespace.QName parentQName,
+               final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
+
+
+        
+                org.apache.axiom.om.OMDataSource dataSource =
+                       new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME){
+
+                 public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter
xmlWriter) throws javax.xml.stream.XMLStreamException {
+                       EchoString.this.serialize(MY_QNAME,factory,xmlWriter);
+                 }
+               };
+               return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
+               MY_QNAME,factory,dataSource);
+            
+       }
+
                 public void serialize(final QName parentQName,
                                       final OMFactory factory,
                                       MTOMAwareXMLStreamWriter xmlWriter)

Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/server/EchoStringResponse.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/server/EchoStringResponse.java?rev=786805&r1=786804&r2=786805&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/server/EchoStringResponse.java
(original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/server/EchoStringResponse.java
Sat Jun 20 12:25:19 2009
@@ -86,6 +86,30 @@
 
     }
 
+    /**
+    *
+    * @param parentQName
+    * @param factory
+    * @return org.apache.axiom.om.OMElement
+    */
+   public org.apache.axiom.om.OMElement getOMElement (
+           final javax.xml.namespace.QName parentQName,
+           final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
+
+
+    
+            org.apache.axiom.om.OMDataSource dataSource =
+                   new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME){
+
+             public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter
xmlWriter) throws javax.xml.stream.XMLStreamException {
+                   EchoStringResponse.this.serialize(MY_QNAME,factory,xmlWriter);
+             }
+           };
+           return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
+           MY_QNAME,factory,dataSource);
+        
+   }
+
     public void serialize(final QName parentQName,
                           final OMFactory factory,
                           MTOMAwareXMLStreamWriter xmlWriter)



Mime
View raw message