axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ami...@apache.org
Subject svn commit: r594908 - in /webservices/axis2/trunk/java/modules/adb: src/org/apache/axis2/databinding/ src/org/apache/axis2/databinding/typemapping/ src/org/apache/axis2/databinding/utils/ test/org/apache/axis2/databinding/ test/org/apache/axis2/databin...
Date Wed, 14 Nov 2007 14:33:05 GMT
Author: amilas
Date: Wed Nov 14 06:32:53 2007
New Revision: 594908

URL: http://svn.apache.org/viewvc?rev=594908&view=rev
Log:
add support to custome any types

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/src/org/apache/axis2/databinding/typemapping/SimpleTypeMapper.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.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

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=594908&r1=594907&r2=594908&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
Wed Nov 14 06:32:53 2007
@@ -18,6 +18,9 @@
  */
 package org.apache.axis2.databinding;
 
+import org.apache.axiom.om.OMFactory;
+import org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter;
+
 import javax.xml.namespace.QName;
 import javax.xml.stream.XMLStreamReader;
 import javax.xml.stream.XMLStreamException;
@@ -36,6 +39,18 @@
      * @return Returns a pull parser for this ADBBean.
      */
     public XMLStreamReader getPullParser(QName adbBeanQName) throws XMLStreamException;
+
+
+    public void serialize(final QName parentQName,
+                          final OMFactory factory,
+                          MTOMAwareXMLStreamWriter xmlWriter)
+            throws XMLStreamException, ADBException;
+
+    public void serialize(final QName parentQName,
+                          final OMFactory factory,
+                          MTOMAwareXMLStreamWriter xmlWriter,
+                          boolean serializeType)
+            throws XMLStreamException, ADBException;
 
     /**
      * There will be a self factory in every generated data bound class XXX:

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=594908&r1=594907&r2=594908&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
Wed Nov 14 06:32:53 2007
@@ -23,10 +23,13 @@
 import org.apache.axiom.soap.SOAPEnvelope;
 import org.apache.axiom.soap.SOAPFactory;
 import org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder;
+import org.apache.axiom.om.OMFactory;
 import org.apache.axis2.util.StreamWrapper;
+import org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter;
 
 import javax.xml.namespace.QName;
 import javax.xml.stream.XMLStreamReader;
+import javax.xml.stream.XMLStreamException;
 
 /** Builds a SOAPEnvelope around an ADB pull parser */
 public class ADBSOAPModelBuilder extends StAXSOAPModelBuilder {
@@ -65,6 +68,21 @@
                     new StreamWrapper(new org.apache.axis2.databinding.utils.reader.
                             ADBXMLStreamReaderImpl(qName, elementList.toArray(), null));
         }
+
+        public void serialize(final QName parentQName,
+                              final OMFactory factory,
+                              MTOMAwareXMLStreamWriter xmlWriter)
+                throws XMLStreamException, ADBException {
+            serialize(parentQName,factory,xmlWriter,false);
+        }
+
+        public void serialize(final QName parentQName,
+                              final OMFactory factory,
+                              MTOMAwareXMLStreamWriter xmlWriter,
+                              boolean serializeType)
+                throws XMLStreamException, ADBException {
+            throw new UnsupportedOperationException("Un implemented method");
+        }
     }
 
     protected void identifySOAPVersion(String soapVersionURIFromTransport) {
@@ -87,6 +105,21 @@
                                                                                         elementList.toArray(),
                                                                                         null);
         }
+
+        public void serialize(final QName parentQName,
+                              final OMFactory factory,
+                              MTOMAwareXMLStreamWriter xmlWriter)
+                throws XMLStreamException, ADBException {
+            serialize(parentQName,factory,xmlWriter,false);
+        }
+
+        public void serialize(final QName parentQName,
+                              final OMFactory factory,
+                              MTOMAwareXMLStreamWriter xmlWriter,
+                              boolean serializeType)
+                throws XMLStreamException, ADBException {
+            throw new UnsupportedOperationException("Un implemented method");
+        }
     }
 
     public static class Header
@@ -97,6 +130,20 @@
                                                                                         elementList.toArray(),
                                                                                         null);
         }
+        public void serialize(final QName parentQName,
+                              final OMFactory factory,
+                              MTOMAwareXMLStreamWriter xmlWriter)
+                throws XMLStreamException, ADBException {
+            serialize(parentQName,factory,xmlWriter,false);
+        }
+
+        public void serialize(final QName parentQName,
+                              final OMFactory factory,
+                              MTOMAwareXMLStreamWriter xmlWriter,
+                              boolean serializeType)
+                throws XMLStreamException, ADBException {
+            throw new UnsupportedOperationException("Un implemented method");
+        }
     }
 
     public static class Child
@@ -109,6 +156,20 @@
 
         public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
{
             return parser;
+        }
+        public void serialize(final QName parentQName,
+                              final OMFactory factory,
+                              MTOMAwareXMLStreamWriter xmlWriter)
+                throws XMLStreamException, ADBException {
+            serialize(parentQName,factory,xmlWriter,false);
+        }
+
+        public void serialize(final QName parentQName,
+                              final OMFactory factory,
+                              MTOMAwareXMLStreamWriter xmlWriter,
+                              boolean serializeType)
+                throws XMLStreamException, ADBException {
+            throw new UnsupportedOperationException("Un implemented method");
         }
     }
 }

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/typemapping/SimpleTypeMapper.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/typemapping/SimpleTypeMapper.java?rev=594908&r1=594907&r2=594908&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/typemapping/SimpleTypeMapper.java
(original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/typemapping/SimpleTypeMapper.java
Wed Nov 14 06:32:53 2007
@@ -73,6 +73,7 @@
     public static Object getSimpleTypeObject(Class parameter, OMElement value) {
         String name = parameter.getName();
         String text = value.getText();
+        
         if(name.equals(STRING)) {
             return text;
         } else  if (text == null || text.length() == 0) {

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java?rev=594908&r1=594907&r2=594908&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
(original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
Wed Nov 14 06:32:53 2007
@@ -1307,7 +1307,8 @@
         xmlStreamWriter.writeAttribute(Constants.XSI_NAMESPACE, "type", attributeValue);
     }
 
-    public static Object getAnyTypeObject(XMLStreamReader xmlStreamReader) throws XMLStreamException
{
+    public static Object getAnyTypeObject(XMLStreamReader xmlStreamReader,
+                                          Class extensionMapperClass) throws XMLStreamException
{
         Object returnObject = null;
 
         // make sure reader is at the first element.
@@ -1321,78 +1322,101 @@
         } else {
             String attributeType = xmlStreamReader.getAttributeValue(Constants.XSI_NAMESPACE,
"type");
             if (attributeType != null) {
+                String attributeTypePrefix = "";
                 if (attributeType.indexOf(":") > -1) {
+                    attributeTypePrefix = attributeType.substring(0,attributeType.indexOf(":"));
                     attributeType = attributeType.substring(attributeType.indexOf(":") +
1);
                 }
                 NamespaceContext namespaceContext = xmlStreamReader.getNamespaceContext();
-                xmlStreamReader.next();
+                String attributeNameSpace = namespaceContext.getNamespaceURI(attributeTypePrefix);
 
-                if ("base64Binary".equals(attributeType)) {
-                    returnObject = getDataHandlerObject(xmlStreamReader);
-                } else {
-                    String attribValue = xmlStreamReader.getText();
-                    if (attribValue != null) {
-                        if (attributeType.equals("string")) {
-                            returnObject = attribValue;
-                        } else if (attributeType.equals("int")) {
-                            returnObject = new Integer(attribValue);
-                        } else if (attributeType.equals("QName")) {
-                            String namespacePrefix = null;
-                            String localPart = null;
-                            if (attribValue.indexOf(":") > -1) {
-                                namespacePrefix = attribValue.substring(0, attribValue.indexOf(":"));
-                                localPart = attribValue.substring(attribValue.indexOf(":")
+ 1);
-                                returnObject = new QName(namespaceContext.getNamespaceURI(namespacePrefix),
localPart);
-                            }
-                        } else if ("boolean".equals(attributeType)) {
-                            returnObject = new Boolean(attribValue);
-                        } else if ("anyURI".equals(attributeType)) {
-                            try {
-                                returnObject = new URI(attribValue);
-                            } catch (URI.MalformedURIException e) {
-                                throw new XMLStreamException("Invalid URI");
+                if (attributeNameSpace.equals(Constants.XSD_NAMESPACE)) {
+                    xmlStreamReader.next();
+                    if ("base64Binary".equals(attributeType)) {
+                        returnObject = getDataHandlerObject(xmlStreamReader);
+                    } else {
+                        String attribValue = xmlStreamReader.getText();
+                        if (attribValue != null) {
+                            if (attributeType.equals("string")) {
+                                returnObject = attribValue;
+                            } else if (attributeType.equals("int")) {
+                                returnObject = new Integer(attribValue);
+                            } else if (attributeType.equals("QName")) {
+                                String namespacePrefix = null;
+                                String localPart = null;
+                                if (attribValue.indexOf(":") > -1) {
+                                    namespacePrefix = attribValue.substring(0, attribValue.indexOf(":"));
+                                    localPart = attribValue.substring(attribValue.indexOf(":")
+ 1);
+                                    returnObject = new QName(namespaceContext.getNamespaceURI(namespacePrefix),
localPart);
+                                }
+                            } else if ("boolean".equals(attributeType)) {
+                                returnObject = new Boolean(attribValue);
+                            } else if ("anyURI".equals(attributeType)) {
+                                try {
+                                    returnObject = new URI(attribValue);
+                                } catch (URI.MalformedURIException e) {
+                                    throw new XMLStreamException("Invalid URI");
+                                }
+                            } else if ("date".equals(attributeType)) {
+                                returnObject = ConverterUtil.convertToDate(attribValue);
+                            } else if ("dateTime".equals(attributeType)) {
+                                returnObject = ConverterUtil.convertToDateTime(attribValue);
+                            } else if ("time".equals(attributeType)) {
+                                returnObject = ConverterUtil.convertToTime(attribValue);
+                            } else if ("byte".equals(attributeType)) {
+                                returnObject = new Byte(attribValue);
+                            } else if ("short".equals(attributeType)) {
+                                returnObject = new Short(attribValue);
+                            } else if ("float".equals(attributeType)) {
+                                returnObject = new Float(attribValue);
+                            } else if ("long".equals(attributeType)) {
+                                returnObject = new Long(attribValue);
+                            } else if ("double".equals(attributeType)) {
+                                returnObject = new Double(attribValue);
+                            } else if ("decimal".equals(attributeType)) {
+                                returnObject = new BigDecimal(attribValue);
+                            } else if ("unsignedLong".equals(attributeType)) {
+                                returnObject = new UnsignedLong(attribValue);
+                            } else if ("unsignedInt".equals(attributeType)) {
+                                returnObject = new UnsignedInt(attribValue);
+                            } else if ("unsignedShort".equals(attributeType)) {
+                                returnObject = new UnsignedShort(attribValue);
+                            } else if ("unsignedByte".equals(attributeType)) {
+                                returnObject = new UnsignedByte(attribValue);
+                            } else if ("positiveInteger".equals(attributeType)) {
+                                returnObject = new PositiveInteger(attribValue);
+                            } else if ("negativeInteger".equals(attributeType)) {
+                                returnObject = new NegativeInteger(attribValue);
+                            } else if ("nonNegativeInteger".equals(attributeType)) {
+                                returnObject = new NonNegativeInteger(attribValue);
+                            } else if ("nonPositiveInteger".equals(attributeType)) {
+                                returnObject = new NonPositiveInteger(attribValue);
+                            } else {
+                                throw new ADBException("Unknown type ==> " + attributeType);
                             }
-                        } else if ("date".equals(attributeType)) {
-                            returnObject = ConverterUtil.convertToDate(attribValue);
-                        } else if ("dateTime".equals(attributeType)) {
-                            returnObject = ConverterUtil.convertToDateTime(attribValue);
-                        } else if ("time".equals(attributeType)) {
-                            returnObject = ConverterUtil.convertToTime(attribValue);
-                        } else if ("byte".equals(attributeType)) {
-                            returnObject = new Byte(attribValue);
-                        } else if ("short".equals(attributeType)) {
-                            returnObject = new Short(attribValue);
-                        } else if ("float".equals(attributeType)) {
-                            returnObject = new Float(attribValue);
-                        } else if ("long".equals(attributeType)) {
-                            returnObject = new Long(attribValue);
-                        } else if ("double".equals(attributeType)) {
-                            returnObject = new Double(attribValue);
-                        } else if ("decimal".equals(attributeType)) {
-                            returnObject = new BigDecimal(attribValue);
-                        } else if ("unsignedLong".equals(attributeType)) {
-                            returnObject = new UnsignedLong(attribValue);
-                        } else if ("unsignedInt".equals(attributeType)) {
-                            returnObject = new UnsignedInt(attribValue);
-                        } else if ("unsignedShort".equals(attributeType)) {
-                            returnObject = new UnsignedShort(attribValue);
-                        } else if ("unsignedByte".equals(attributeType)) {
-                            returnObject = new UnsignedByte(attribValue);
-                        } else if ("positiveInteger".equals(attributeType)) {
-                            returnObject = new PositiveInteger(attribValue);
-                        } else if ("negativeInteger".equals(attributeType)) {
-                            returnObject = new NegativeInteger(attribValue);
-                        } else if ("nonNegativeInteger".equals(attributeType)) {
-                            returnObject = new NonNegativeInteger(attribValue);
-                        } else if ("nonPositiveInteger".equals(attributeType)) {
-                            returnObject = new NonPositiveInteger(attribValue);
                         } else {
-                            throw new ADBException("Unknown type ==> " + attributeType);
+                            throw new ADBException("Attribute value is null");
                         }
-                    } else {
-                        throw new ADBException("Attribute value is null");
                     }
+                } else {
+                    try {
+                        Method getObjectMethod = extensionMapperClass.getMethod("getTypeObject",
+                                new Class[]{String.class, String.class, XMLStreamReader.class});
+                        returnObject = getObjectMethod.invoke(null,
+                                new Object[]{attributeNameSpace, attributeType, xmlStreamReader});
+                    } catch (NoSuchMethodException e) {
+                        throw new ADBException("Can not find the getTypeObject method in
the " +
+                                "extension mapper class ", e);
+                    } catch (IllegalAccessException e) {
+                        throw new ADBException("Can not access the getTypeObject method in
the " +
+                                "extension mapper class ", e);
+                    } catch (InvocationTargetException e) {
+                        throw new ADBException("Can not invoke the getTypeObject method in
the " +
+                                "extension mapper class ", e);
+                    }
+
                 }
+
             } else {
                 throw new ADBException("Any type element type has not been given");
             }

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=594908&r1=594907&r2=594908&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
Wed Nov 14 06:32:53 2007
@@ -21,12 +21,14 @@
 
 import org.apache.axiom.om.OMAbstractFactory;
 import org.apache.axiom.om.OMElement;
+import org.apache.axiom.om.OMFactory;
 import org.apache.axiom.om.impl.dom.DOOMAbstractFactory;
 import org.apache.axiom.om.util.StAXUtils;
 import org.apache.axiom.soap.SOAP11Constants;
 import org.apache.axiom.soap.SOAPEnvelope;
 import org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder;
 import org.apache.axis2.databinding.utils.PrintEvents;
+import org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter;
 import org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl;
 import org.custommonkey.xmlunit.XMLTestCase;
 import org.w3c.dom.Document;
@@ -37,6 +39,7 @@
 import javax.xml.parsers.DocumentBuilderFactory;
 import javax.xml.parsers.ParserConfigurationException;
 import javax.xml.stream.XMLStreamReader;
+import javax.xml.stream.XMLStreamException;
 import java.io.ByteArrayInputStream;
 import java.io.IOException;
 import java.io.StringReader;
@@ -188,6 +191,21 @@
 
         public XMLStreamReader getPullParser(QName adbBeanQName) {
             return new ADBXMLStreamReaderImpl(adbBeanQName, propertyList.toArray(), null);
+        }
+
+        public void serialize(final QName parentQName,
+                              final OMFactory factory,
+                              MTOMAwareXMLStreamWriter xmlWriter)
+                throws XMLStreamException, ADBException {
+            serialize(parentQName,factory,xmlWriter,false);
+        }
+
+        public void serialize(final QName parentQName,
+                              final OMFactory factory,
+                              MTOMAwareXMLStreamWriter xmlWriter,
+                              boolean serializeType)
+                throws XMLStreamException, ADBException {
+            throw new UnsupportedOperationException("Un implemented 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=594908&r1=594907&r2=594908&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
Wed Nov 14 06:32:53 2007
@@ -26,6 +26,12 @@
 
 package org.apache.axis2.databinding;
 
+import org.apache.axiom.om.OMFactory;
+import org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter;
+
+import javax.xml.namespace.QName;
+import javax.xml.stream.XMLStreamException;
+
 /** ClientInfo bean class */
 
 public class ClientInfo
@@ -117,6 +123,21 @@
 
 
     }
+
+    public void serialize(final QName parentQName,
+                          final OMFactory factory,
+                          MTOMAwareXMLStreamWriter xmlWriter)
+                throws XMLStreamException, ADBException {
+            serialize(parentQName,factory,xmlWriter,false);
+        }
+
+        public void serialize(final QName parentQName,
+                              final OMFactory factory,
+                              MTOMAwareXMLStreamWriter xmlWriter,
+                              boolean serializeType)
+                throws XMLStreamException, ADBException {
+            throw new UnsupportedOperationException("Un implemented method");
+        }
 
     /** Factory class that keeps the parse method */
     public static class Factory {

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=594908&r1=594907&r2=594908&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
Wed Nov 14 06:32:53 2007
@@ -26,6 +26,12 @@
 
 package org.apache.axis2.databinding;
 
+import org.apache.axiom.om.OMFactory;
+import org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter;
+
+import javax.xml.namespace.QName;
+import javax.xml.stream.XMLStreamException;
+
 /** CreateAccountRequest bean class */
 
 public class CreateAccountRequest implements
@@ -98,6 +104,21 @@
                         .toArray());
 
     }
+
+    public void serialize(final QName parentQName,
+                          final OMFactory factory,
+                          MTOMAwareXMLStreamWriter xmlWriter)
+                throws XMLStreamException, ADBException {
+            serialize(parentQName,factory,xmlWriter,false);
+        }
+
+        public void serialize(final QName parentQName,
+                              final OMFactory factory,
+                              MTOMAwareXMLStreamWriter xmlWriter,
+                              boolean serializeType)
+                throws XMLStreamException, ADBException {
+            throw new UnsupportedOperationException("Un implemented method");
+        }
 
     /** Factory class that keeps the parse method */
     public static class Factory {

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=594908&r1=594907&r2=594908&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
Wed Nov 14 06:32:53 2007
@@ -28,7 +28,9 @@
 import org.apache.axiom.om.util.Base64;
 import org.apache.axiom.om.util.StAXUtils;
 import org.apache.axis2.databinding.ADBBean;
+import org.apache.axis2.databinding.ADBException;
 import org.apache.axis2.databinding.utils.Constants;
+import org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter;
 import org.apache.axis2.util.StreamWrapper;
 import org.custommonkey.xmlunit.XMLTestCase;
 import org.w3c.dom.Document;
@@ -308,6 +310,21 @@
 
         public XMLStreamReader getPullParser(QName adbBeanQName) {
             return new ADBXMLStreamReaderImpl(adbBeanQName, propertyList.toArray(), null);
+        }
+
+        public void serialize(final QName parentQName,
+                              final OMFactory factory,
+                              MTOMAwareXMLStreamWriter xmlWriter)
+                throws XMLStreamException, ADBException {
+            serialize(parentQName,factory,xmlWriter,false);
+        }
+
+        public void serialize(final QName parentQName,
+                              final OMFactory factory,
+                              MTOMAwareXMLStreamWriter xmlWriter,
+                              boolean serializeType)
+                throws XMLStreamException, ADBException {
+            throw new UnsupportedOperationException("Un implemented method");
         }
     }
 



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


Mime
View raw message