You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by gd...@apache.org on 2005/07/11 19:49:08 UTC

svn commit: r210165 [15/20] - in /webservices/axis/trunk/java/modules: addressing/src/org/apache/axis2/handlers/addressing/ addressing/test/org/apache/axis2/handlers/addressing/ addressing/test/org/apache/axis2/handlers/util/ core/src/org/apache/axis2/...

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/builder/StAXOMBuilder.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/builder/StAXOMBuilder.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/builder/StAXOMBuilder.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/builder/StAXOMBuilder.java Mon Jul 11 10:48:55 2005
@@ -15,7 +15,13 @@
 */
 package org.apache.axis2.om.impl.llom.builder;
 
-import org.apache.axis2.om.*;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.om.OMException;
+import org.apache.axis2.om.OMFactory;
+import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.om.OMNode;
+import org.apache.axis2.om.OMText;
 import org.apache.axis2.om.impl.llom.OMDocument;
 import org.apache.axis2.soap.SOAPEnvelope;
 
@@ -70,13 +76,13 @@
             document.addChild(node);
         } else if (lastNode.isComplete()) {
             node = omfactory.createOMElement(elementName, null,
-                                             lastNode.getParent(), this);
+                    lastNode.getParent(), this);
             lastNode.setNextSibling(node);
             node.setPreviousSibling(lastNode);
         } else {
             OMElement e = (OMElement) lastNode;
             node = omfactory.createOMElement(elementName, null,
-                                             (OMElement) lastNode, this);
+                    (OMElement) lastNode, this);
             e.setFirstChild(node);
         }
 
@@ -100,7 +106,9 @@
             node = omfactory.createText(parser.getText());
             document.addChild(node);
         } else if (lastNode.isComplete()) {
-            node = omfactory.createText((OMElement) lastNode.getParent(), parser.getText());
+            node =
+                    omfactory.createText((OMElement) lastNode.getParent(),
+                            parser.getText());
             lastNode.setNextSibling(node);
             node.setPreviousSibling(lastNode);
         } else {
@@ -136,7 +144,9 @@
             node.setType(OMNode.PI_NODE);
             document.addChild(node);
         } else if (lastNode.isComplete()) {
-            node = omfactory.createText((OMElement) lastNode.getParent(), "<?" + target + " " + data + "?>");
+            node =
+                    omfactory.createText((OMElement) lastNode.getParent(),
+                            "<?" + target + " " + data + "?>");
             node.setType(OMNode.PI_NODE);
             lastNode.setNextSibling(node);
             node.setPreviousSibling(lastNode);
@@ -252,7 +262,7 @@
         int namespaceCount = parser.getNamespaceCount();
         for (int i = 0; i < namespaceCount; i++) {
             node.declareNamespace(parser.getNamespaceURI(i),
-                                  parser.getNamespacePrefix(i));
+                    parser.getNamespacePrefix(i));
         }
 
         // set the own namespace
@@ -272,7 +282,8 @@
             } else {
                 namespace = node.findNamespace(namespaceURI, prefix);
                 if (namespace == null) {
-                    node.setNamespace(omfactory.createOMNamespace(namespaceURI, prefix));
+                    node.setNamespace(
+                            omfactory.createOMNamespace(namespaceURI, prefix));
                 } else {
                     node.setNamespace(namespace);
                 }

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/factory/OMLinkedListImplFactory.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/factory/OMLinkedListImplFactory.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/factory/OMLinkedListImplFactory.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/factory/OMLinkedListImplFactory.java Mon Jul 11 10:48:55 2005
@@ -15,7 +15,14 @@
  */
 package org.apache.axis2.om.impl.llom.factory;
 
-import org.apache.axis2.om.*;
+import org.apache.axis2.om.OMAttribute;
+import org.apache.axis2.om.OMContainer;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.om.OMException;
+import org.apache.axis2.om.OMFactory;
+import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.om.OMText;
+import org.apache.axis2.om.OMXMLParserWrapper;
 import org.apache.axis2.om.impl.llom.OMAttributeImpl;
 import org.apache.axis2.om.impl.llom.OMElementImpl;
 import org.apache.axis2.om.impl.llom.OMNamespaceImpl;
@@ -58,7 +65,7 @@
                                      OMContainer parent,
                                      OMXMLParserWrapper builder) {
         OMElementImpl element = new OMElementImpl(localName, ns, parent,
-                                                  builder);
+                builder);
         return element;
     }
 
@@ -73,8 +80,8 @@
     public OMElement createOMElement(String localName, String namespaceURI,
                                      String namespacePrefix) {
         return this.createOMElement(localName,
-                                    this.createOMNamespace(namespaceURI,
-                                                           namespacePrefix));
+                this.createOMNamespace(namespaceURI,
+                        namespacePrefix));
     }
 
     /**
@@ -133,11 +140,16 @@
         return new OMTextImpl(dataHandler, optimize);
     }
 
-    public OMText createText(OMElement parent, String s, String mimeType, boolean optimize) {
+    public OMText createText(OMElement parent,
+                             String s,
+                             String mimeType,
+                             boolean optimize) {
         return new OMTextImpl(parent, s, mimeType, optimize);
     }
 
-    public OMAttribute createOMAttribute(String localName, OMNamespace ns, String value) {
+    public OMAttribute createOMAttribute(String localName,
+                                         OMNamespace ns,
+                                         String value) {
         return new OMAttributeImpl(localName, ns, value);
     }
 

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/factory/OMXMLBuilderFactory.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/factory/OMXMLBuilderFactory.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/factory/OMXMLBuilderFactory.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/factory/OMXMLBuilderFactory.java Mon Jul 11 10:48:55 2005
@@ -53,7 +53,8 @@
      * @param parser
      * @return
      */
-    public static StAXSOAPModelBuilder createStAXSOAPModelBuilder(SOAPFactory soapFactory, XMLStreamReader parser) {
+    public static StAXSOAPModelBuilder createStAXSOAPModelBuilder(
+            SOAPFactory soapFactory, XMLStreamReader parser) {
         return new StAXSOAPModelBuilder(parser);
     }
 

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/mtom/MTOMStAXSOAPModelBuilder.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/mtom/MTOMStAXSOAPModelBuilder.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/mtom/MTOMStAXSOAPModelBuilder.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/mtom/MTOMStAXSOAPModelBuilder.java Mon Jul 11 10:48:55 2005
@@ -17,7 +17,11 @@
 package org.apache.axis2.om.impl.llom.mtom;
 
 import org.apache.axis2.attachments.MIMEHelper;
-import org.apache.axis2.om.*;
+import org.apache.axis2.om.OMAttribute;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.om.OMException;
+import org.apache.axis2.om.OMNode;
+import org.apache.axis2.om.OMText;
 import org.apache.axis2.om.impl.llom.OMTextImpl;
 import org.apache.axis2.soap.SOAPFactory;
 import org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder;
@@ -43,7 +47,8 @@
     int partIndex = 0;
 
     public MTOMStAXSOAPModelBuilder(XMLStreamReader parser,
-                                    SOAPFactory factory, MIMEHelper mimeHelper) {
+                                    SOAPFactory factory,
+                                    MIMEHelper mimeHelper) {
         super(parser, factory);
         this.mimeHelper = mimeHelper;
     }
@@ -75,7 +80,8 @@
             OMAttribute Attr;
             if (lastNode == null) {
                 // Decide whether to ckeck the level >3 or not
-                throw new OMException("XOP:Include element is not supported here");
+                throw new OMException(
+                        "XOP:Include element is not supported here");
             }
             if (parser.getAttributeCount() > 0) {
                 contentID = parser.getAttributeValue(0);
@@ -85,10 +91,12 @@
                         & contentID.substring(0, 3).equalsIgnoreCase("cid")) {
                     contentID = contentID.substring(4);
                 } else {
-                    throw new OMException("contentID not Found in XOP:Include element");
+                    throw new OMException(
+                            "contentID not Found in XOP:Include element");
                 }
             } else {
-                throw new OMException("Href attribute not found in XOP:Include element");
+                throw new OMException(
+                        "Href attribute not found in XOP:Include element");
             }
 
             // This cannot happen. XOP:Include is always the only child of an parent element
@@ -98,7 +106,9 @@
                 node = new OMTextImpl(contentID, (OMElement) lastNode, this);
                 e.setFirstChild(node);
             } catch (ClassCastException e) {
-                throw new OMException("Last Node & Parent of an OMText should be an Element" + e);
+                throw new OMException(
+                        "Last Node & Parent of an OMText should be an Element" +
+                        e);
             }
 
             return node;
@@ -108,7 +118,10 @@
             if (lastNode == null) {
                 node = constructNode(null, elementName, true);
             } else if (lastNode.isComplete()) {
-                node = constructNode((OMElement) lastNode.getParent(), elementName, false);
+                node =
+                        constructNode((OMElement) lastNode.getParent(),
+                                elementName,
+                                false);
                 lastNode.setNextSibling(node);
                 node.setPreviousSibling(lastNode);
             } else {

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/serialize/StreamWriterToContentHandlerConverter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/serialize/StreamWriterToContentHandlerConverter.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/serialize/StreamWriterToContentHandlerConverter.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/serialize/StreamWriterToContentHandlerConverter.java Mon Jul 11 10:48:55 2005
@@ -170,7 +170,9 @@
      * @param qName
      * @throws SAXException
      */
-    public void endElement(String namespaceURI, String localName, String qName)
+    public void endElement(String namespaceURI,
+                           String localName,
+                           String qName)
             throws SAXException {
         try {
             writer.writeEndElement();
@@ -201,11 +203,14 @@
      * @param atts
      * @throws SAXException
      */
-    public void startElement(String namespaceURI, String localName, String qName, Attributes atts)
+    public void startElement(String namespaceURI,
+                             String localName,
+                             String qName,
+                             Attributes atts)
             throws SAXException {
         try {
             log.info("writing element {" + namespaceURI + '}' + localName
-                     + " directly to stream ");
+                    + " directly to stream ");
             String prefix = getPrefix(qName);
 
             // it is only the prefix we want to learn from the QName! so we can get rid of the
@@ -219,7 +224,7 @@
                 int attCount = atts.getLength();
                 for (int i = 0; i < attCount; i++) {
                     writer.writeAttribute(atts.getURI(i), localName,
-                                          atts.getValue(i));
+                            atts.getValue(i));
                 }
             }
         } catch (XMLStreamException e) {

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/serialize/StreamingOMSerializer.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/serialize/StreamingOMSerializer.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/serialize/StreamingOMSerializer.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/serialize/StreamingOMSerializer.java Mon Jul 11 10:48:55 2005
@@ -50,7 +50,8 @@
     public void serialize(Object obj, OMOutput omOutput)
             throws XMLStreamException {
         if (!(obj instanceof XMLStreamReader)) {
-            throw new UnsupportedOperationException("Unsupported input object. Must be of the the type XMLStreamReader");
+            throw new UnsupportedOperationException(
+                    "Unsupported input object. Must be of the the type XMLStreamReader");
         }
         XMLStreamReader node = (XMLStreamReader) obj;
         serializeNode(node, omOutput);
@@ -102,7 +103,8 @@
      * @param writer
      * @throws XMLStreamException
      */
-    protected void serializeElement(XMLStreamReader reader, XMLStreamWriter writer)
+    protected void serializeElement(XMLStreamReader reader,
+                                    XMLStreamWriter writer)
             throws XMLStreamException {
         String prefix = reader.getPrefix();
         String nameSpaceName = reader.getNamespaceURI();
@@ -113,12 +115,12 @@
             } else {
                 if (prefix != null) {
                     writer.writeStartElement(prefix, reader.getLocalName(),
-                                             nameSpaceName);
+                            nameSpaceName);
                     writer.writeNamespace(prefix, nameSpaceName);
                     writer.setPrefix(prefix, nameSpaceName);
                 } else {
                     writer.writeStartElement(nameSpaceName,
-                                             reader.getLocalName());
+                            reader.getLocalName());
                     writer.writeDefaultNamespace(nameSpaceName);
                     writer.setDefaultNamespace(nameSpaceName);
                 }
@@ -135,7 +137,7 @@
         int count = reader.getNamespaceCount();
         for (int i = 0; i < count; i++) {
             serializeNamespace(reader.getNamespacePrefix(i),
-                               reader.getNamespaceURI(i), writer);
+                    reader.getNamespaceURI(i), writer);
         }
     }
 
@@ -155,7 +157,8 @@
      * @param writer
      * @throws XMLStreamException
      */
-    protected void serializeText(XMLStreamReader reader, XMLStreamWriter writer)
+    protected void serializeText(XMLStreamReader reader,
+                                 XMLStreamWriter writer)
             throws XMLStreamException {
         writer.writeCharacters(reader.getText());
     }
@@ -167,7 +170,8 @@
      * @param writer
      * @throws XMLStreamException
      */
-    protected void serializeCData(XMLStreamReader reader, XMLStreamWriter writer)
+    protected void serializeCData(XMLStreamReader reader,
+                                  XMLStreamWriter writer)
             throws XMLStreamException {
         writer.writeCData(reader.getText());
     }
@@ -179,7 +183,8 @@
      * @param writer
      * @throws XMLStreamException
      */
-    protected void serializeComment(XMLStreamReader reader, XMLStreamWriter writer)
+    protected void serializeComment(XMLStreamReader reader,
+                                    XMLStreamWriter writer)
             throws XMLStreamException {
         writer.writeComment(reader.getText());
     }
@@ -189,7 +194,8 @@
      * @param writer
      * @throws XMLStreamException
      */
-    protected void serializeAttributes(XMLStreamReader reader, XMLStreamWriter writer)
+    protected void serializeAttributes(XMLStreamReader reader,
+                                       XMLStreamWriter writer)
             throws XMLStreamException {
         int count = reader.getAttributeCount();
         String prefix = null;
@@ -199,11 +205,11 @@
             namespaceName = reader.getAttributeNamespace(i);
             if ((prefix != null) && !namespaceName.equals("")) {
                 writer.writeAttribute(prefix, namespaceName,
-                                      reader.getAttributeLocalName(i),
-                                      reader.getAttributeValue(i));
+                        reader.getAttributeLocalName(i),
+                        reader.getAttributeValue(i));
             } else {
                 writer.writeAttribute(reader.getAttributeLocalName(i),
-                                      reader.getAttributeValue(i));
+                        reader.getAttributeValue(i));
             }
         }
     }
@@ -216,7 +222,9 @@
      * @param writer
      * @throws XMLStreamException
      */
-    private void serializeNamespace(String prefix, String URI, XMLStreamWriter writer)
+    private void serializeNamespace(String prefix,
+                                    String URI,
+                                    XMLStreamWriter writer)
             throws XMLStreamException {
         String prefix1 = writer.getPrefix(URI);
         if (prefix1 == null) {

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/traverse/OMChildrenIterator.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/traverse/OMChildrenIterator.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/traverse/OMChildrenIterator.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/traverse/OMChildrenIterator.java Mon Jul 11 10:48:55 2005
@@ -69,7 +69,8 @@
      */
     public void remove() {
         if (!nextCalled) {
-            throw new IllegalStateException("next method has not yet being called");
+            throw new IllegalStateException(
+                    "next method has not yet being called");
         }
         if (removeCalled) {
             throw new IllegalStateException("remove has already being called");

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/traverse/OMChildrenQNameIterator.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/traverse/OMChildrenQNameIterator.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/traverse/OMChildrenQNameIterator.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/traverse/OMChildrenQNameIterator.java Mon Jul 11 10:48:55 2005
@@ -63,8 +63,9 @@
 
                 // check the current node for the criteria
                 if ((currentChild instanceof OMElementImpl)
-                        && (isQNamesMatch(((OMElementImpl) currentChild).getQName(),
-                                          this.givenQName))) {
+                        && (isQNamesMatch(
+                                ((OMElementImpl) currentChild).getQName(),
+                                this.givenQName))) {
                     isMatchingNodeFound = true;
                     needToMoveForward = false;
                 } else {
@@ -120,13 +121,19 @@
         boolean localNameMatch =
                 (qNameToBeMatched.getLocalPart() == null)
                 || (qNameToBeMatched.getLocalPart() == "")
-                || ((elementQName != null)
-                && elementQName.getLocalPart().equalsIgnoreCase(qNameToBeMatched.getLocalPart()));
+                ||
+                ((elementQName != null)
+                &&
+                elementQName.getLocalPart().equalsIgnoreCase(
+                        qNameToBeMatched.getLocalPart()));
         boolean namespaceURIMatch =
                 (qNameToBeMatched.getNamespaceURI() == null)
                 || (qNameToBeMatched.getNamespaceURI() == "")
-                || ((elementQName != null)
-                && elementQName.getNamespaceURI().equalsIgnoreCase(qNameToBeMatched.getNamespaceURI()));
+                ||
+                ((elementQName != null)
+                &&
+                elementQName.getNamespaceURI().equalsIgnoreCase(
+                        qNameToBeMatched.getNamespaceURI()));
         return localNameMatch && namespaceURIMatch;
     }
 }

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/traverse/OMChildrenWithSpecificAttributeIterator.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/traverse/OMChildrenWithSpecificAttributeIterator.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/traverse/OMChildrenWithSpecificAttributeIterator.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/traverse/OMChildrenWithSpecificAttributeIterator.java Mon Jul 11 10:48:55 2005
@@ -50,7 +50,9 @@
      * @param detach
      */
     public OMChildrenWithSpecificAttributeIterator(OMNode currentChild,
-                                                   QName attributeName, String attributeValue, boolean detach) {
+                                                   QName attributeName,
+                                                   String attributeValue,
+                                                   boolean detach) {
         super(currentChild);
         this.attributeName = attributeName;
         this.attributeValue = attributeValue;
@@ -77,7 +79,8 @@
             // check the current node for the criteria
             if (currentChild instanceof OMElement) {
                 OMAttribute attr =
-                        ((OMElement) currentChild).getFirstAttribute(attributeName);
+                        ((OMElement) currentChild).getFirstAttribute(
+                                attributeName);
                 if ((attr != null)
                         && attr.getValue().equalsIgnoreCase(attributeValue)) {
                     isMatchingNodeFound = true;

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/util/XMLComparator.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/util/XMLComparator.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/util/XMLComparator.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/util/XMLComparator.java Mon Jul 11 10:48:55 2005
@@ -39,25 +39,36 @@
             return true;
         }
         if (elementOne == null && elementTwo != null) {
-            throw new XMLComparisonException("Element One is null and Element Two is not null");
+            throw new XMLComparisonException(
+                    "Element One is null and Element Two is not null");
         }
         if (elementOne != null && elementTwo == null) {
-            throw new XMLComparisonException("Element Two is null and Element One is not null");
+            throw new XMLComparisonException(
+                    "Element Two is null and Element One is not null");
         }
 
-        log.info("Now Checking " + elementOne.getLocalName() + " and " + elementTwo.getLocalName() + "=============================");
+        log.info(
+                "Now Checking " + elementOne.getLocalName() + " and " +
+                elementTwo.getLocalName() +
+                "=============================");
 
         log.info("Comparing Element Names .......");
-        compare("Elements names are not equal. ", elementOne.getLocalName(), elementTwo.getLocalName());
+        compare("Elements names are not equal. ",
+                elementOne.getLocalName(),
+                elementTwo.getLocalName());
 
         log.info("Comparing Namespaces .........");
-        compare("Element namespaces are not equal", elementOne.getNamespace(), elementTwo.getNamespace());
+        compare("Element namespaces are not equal",
+                elementOne.getNamespace(),
+                elementTwo.getNamespace());
 
         log.info("Comparing attributes .....");
         compareAllAttributes(elementOne, elementTwo);
 
         log.info("Comparing texts .....");
-        compare("Elements texts are not equal ", elementOne.getText(), elementTwo.getText());
+        compare("Elements texts are not equal ",
+                elementOne.getText(),
+                elementTwo.getText());
 
         log.info("Comparing Children ......");
         compareAllChildren(elementOne, elementTwo);
@@ -66,12 +77,14 @@
         return true;
     }
 
-    private void compareAllAttributes(OMElement elementOne, OMElement elementTwo) throws XMLComparisonException {
+    private void compareAllAttributes(OMElement elementOne,
+                                      OMElement elementTwo) throws XMLComparisonException {
         compareAttibutes(elementOne, elementTwo);
         compareAttibutes(elementTwo, elementOne);
     }
 
-    private void compareAllChildren(OMElement elementOne, OMElement elementTwo) throws XMLComparisonException {
+    private void compareAllChildren(OMElement elementOne,
+                                    OMElement elementTwo) throws XMLComparisonException {
         compareChildren(elementOne, elementTwo);
         compareChildren(elementTwo, elementOne);
     }
@@ -85,9 +98,13 @@
                 if ("Reference4".equals(elementOneChild.getLocalName())) {
                     System.out.println("Reference4");
                 }
-                OMElement elementTwoChild = elementTwo.getFirstChildWithName(elementOneChild.getQName());
+                OMElement elementTwoChild = elementTwo.getFirstChildWithName(
+                        elementOneChild.getQName());
                 if (elementTwoChild == null) {
-                    throw new XMLComparisonException(" There is no " + elementOneChild.getLocalName() + " element under " + elementTwo.getLocalName());
+                    throw new XMLComparisonException(
+                            " There is no " + elementOneChild.getLocalName() +
+                            " element under " +
+                            elementTwo.getLocalName());
                 }
                 compare(elementOneChild, elementTwoChild);
             }
@@ -101,9 +118,13 @@
         Iterator attributes = elementOne.getAttributes();
         while (attributes.hasNext()) {
             OMAttribute omAttribute = (OMAttribute) attributes.next();
-            OMAttribute attr = elementTwo.getFirstAttribute(omAttribute.getQName());
+            OMAttribute attr = elementTwo.getFirstAttribute(
+                    omAttribute.getQName());
             if (attr == null) {
-                throw new XMLComparisonException("Attributes are not the same in two elements. Attribute " + omAttribute.getLocalName() + " != ");
+                throw new XMLComparisonException(
+                        "Attributes are not the same in two elements. Attribute " +
+                        omAttribute.getLocalName() +
+                        " != ");
             }
             elementOneAtribCount++;
         }
@@ -116,27 +137,34 @@
         }
 
         if (elementOneAtribCount != elementTwoAtribCount) {
-            throw new XMLComparisonException("Attributes are not the same in two elements.");
+            throw new XMLComparisonException(
+                    "Attributes are not the same in two elements.");
         }
     }
 
     private void compare(String failureNotice, String one, String two) throws XMLComparisonException {
         if (!one.equals(two)) {
-            throw new XMLComparisonException(failureNotice + one + " != " + two);
+            throw new XMLComparisonException(
+                    failureNotice + one + " != " + two);
         }
     }
 
-    private void compare(String failureNotice, OMNamespace one, OMNamespace two) throws XMLComparisonException {
+    private void compare(String failureNotice,
+                         OMNamespace one,
+                         OMNamespace two) throws XMLComparisonException {
         if (one == null && two == null) {
             return;
         } else if (one != null && two == null) {
-            throw new XMLComparisonException("First Namespace is NOT null. But the second is null");
+            throw new XMLComparisonException(
+                    "First Namespace is NOT null. But the second is null");
         } else if (one == null && two != null) {
-            throw new XMLComparisonException("First Namespace is null. But the second is NOT null");
+            throw new XMLComparisonException(
+                    "First Namespace is null. But the second is NOT null");
         }
 
         if (!one.getName().equals(two.getName())) {
-            throw new XMLComparisonException(failureNotice + one + " != " + two);
+            throw new XMLComparisonException(
+                    failureNotice + one + " != " + two);
         }
 
         // Do we need to compare prefixes as well

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/xpath/DocumentNavigator.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/xpath/DocumentNavigator.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/xpath/DocumentNavigator.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/xpath/DocumentNavigator.java Mon Jul 11 10:48:55 2005
@@ -1,6 +1,11 @@
 package org.apache.axis2.om.xpath;
 
-import org.apache.axis2.om.*;
+import org.apache.axis2.om.OMAttribute;
+import org.apache.axis2.om.OMContainer;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.om.OMNode;
+import org.apache.axis2.om.OMText;
 import org.apache.axis2.om.impl.llom.OMDocument;
 import org.apache.axis2.om.impl.llom.OMNamespaceImpl;
 import org.apache.axis2.om.impl.llom.builder.StAXOMBuilder;
@@ -213,7 +218,8 @@
      */
     public String getElementStringValue(Object object) {
         if (isElement(object)) {
-            return getStringValue((OMElement) object, new StringBuffer()).toString();
+            return getStringValue((OMElement) object, new StringBuffer())
+                    .toString();
         }
         return null;
     }
@@ -311,7 +317,9 @@
             ArrayList attributes = new ArrayList();
             Iterator i = ((OMElement) contextNode).getAttributes();
             while (i != null && i.hasNext()) {
-                attributes.add(new OMAttributeEx((OMAttribute) i.next(), (OMContainer) contextNode));
+                attributes.add(
+                        new OMAttributeEx((OMAttribute) i.next(),
+                                (OMContainer) contextNode));
             }
             return attributes.iterator();
         }
@@ -328,12 +336,15 @@
      *                                  not supported by this object model
      */
     public Iterator getNamespaceAxisIterator(Object contextNode) throws UnsupportedAxisException {
-        if (!(contextNode instanceof OMContainer && contextNode instanceof OMElement)) {
+        if (!(contextNode instanceof OMContainer &&
+                contextNode instanceof OMElement)) {
             return JaxenConstants.EMPTY_ITERATOR;
         }
         List nsList = new ArrayList();
         HashSet prefixes = new HashSet();
-        for (OMContainer context = (OMContainer) contextNode; context != null && !(context instanceof OMDocument); context = ((OMElement) context).getParent()) {
+        for (OMContainer context = (OMContainer) contextNode;
+             context != null && !(context instanceof OMDocument);
+             context = ((OMElement) context).getParent()) {
             OMElement element = (OMElement) context;
             ArrayList declaredNS = new ArrayList();
             Iterator i = element.getAllDeclaredNamespaces();
@@ -341,11 +352,13 @@
                 declaredNS.add(i.next());
             }
             declaredNS.add(element.getNamespace());
-            for (Iterator iter = element.getAttributes(); iter != null && iter.hasNext();) {
+            for (Iterator iter = element.getAttributes();
+                 iter != null && iter.hasNext();) {
                 OMAttribute attr = (OMAttribute) iter.next();
                 declaredNS.add(attr.getNamespace());
             }
-            for (Iterator iter = declaredNS.iterator(); iter != null && iter.hasNext();) {
+            for (Iterator iter = declaredNS.iterator();
+                 iter != null && iter.hasNext();) {
                 OMNamespace namespace = (OMNamespace) iter.next();
                 if (namespace != null) {
                     String prefix = namespace.getPrefix();
@@ -356,7 +369,11 @@
                 }
             }
         }
-        nsList.add(new OMNamespaceEx(new OMNamespaceImpl("http://www.w3.org/XML/1998/namespace", "xml"), (OMContainer) contextNode));
+        nsList.add(
+                new OMNamespaceEx(
+                        new OMNamespaceImpl(
+                                "http://www.w3.org/XML/1998/namespace", "xml"),
+                        (OMContainer) contextNode));
         return nsList.iterator();
     }
 
@@ -414,9 +431,11 @@
         if (contextNode instanceof OMNode) {
             return new SingleObjectIterator(((OMNode) contextNode).getParent());
         } else if (contextNode instanceof OMNamespaceEx) {
-            return new SingleObjectIterator(((OMNamespaceEx) contextNode).getParent());
+            return new SingleObjectIterator(
+                    ((OMNamespaceEx) contextNode).getParent());
         } else if (contextNode instanceof OMAttributeEx) {
-            return new SingleObjectIterator(((OMAttributeEx) contextNode).getParent());
+            return new SingleObjectIterator(
+                    ((OMAttributeEx) contextNode).getParent());
         }
         return JaxenConstants.EMPTY_ITERATOR;
     }
@@ -516,10 +535,14 @@
         try {
             XMLStreamReader parser;
             if (uri.indexOf(':') == -1) {
-                parser = XMLInputFactory.newInstance().createXMLStreamReader(new FileInputStream(uri));
+                parser =
+                        XMLInputFactory.newInstance().createXMLStreamReader(
+                                new FileInputStream(uri));
             } else {
                 URL url = new URL(uri);
-                parser = XMLInputFactory.newInstance().createXMLStreamReader(url.openStream());
+                parser =
+                        XMLInputFactory.newInstance().createXMLStreamReader(
+                                url.openStream());
             }
             StAXOMBuilder builder =
                     new StAXOMBuilder(parser);

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/SOAPFactory.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/SOAPFactory.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/SOAPFactory.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/SOAPFactory.java Mon Jul 11 10:48:55 2005
@@ -49,14 +49,17 @@
      * @param builder
      * @return
      */
-    public SOAPHeader createSOAPHeader(SOAPEnvelope envelope, OMXMLParserWrapper builder);
+    public SOAPHeader createSOAPHeader(SOAPEnvelope envelope,
+                                       OMXMLParserWrapper builder);
 
     /**
      * @param localName
      * @param ns
      * @return
      */
-    public SOAPHeaderBlock createSOAPHeaderBlock(String localName, OMNamespace ns, SOAPHeader parent) throws SOAPProcessingException;
+    public SOAPHeaderBlock createSOAPHeaderBlock(String localName,
+                                                 OMNamespace ns,
+                                                 SOAPHeader parent) throws SOAPProcessingException;
 
     /**
      * @param localName
@@ -65,7 +68,10 @@
      * @param builder
      * @return
      */
-    public SOAPHeaderBlock createSOAPHeaderBlock(String localName, OMNamespace ns, SOAPHeader parent, OMXMLParserWrapper builder) throws SOAPProcessingException;
+    public SOAPHeaderBlock createSOAPHeaderBlock(String localName,
+                                                 OMNamespace ns,
+                                                 SOAPHeader parent,
+                                                 OMXMLParserWrapper builder) throws SOAPProcessingException;
 
     /**
      * @param parent
@@ -82,7 +88,8 @@
      * @param builder
      * @return
      */
-    public SOAPFault createSOAPFault(SOAPBody parent, OMXMLParserWrapper builder);
+    public SOAPFault createSOAPFault(SOAPBody parent,
+                                     OMXMLParserWrapper builder);
 
     /**
      * @param envelope
@@ -95,7 +102,8 @@
      * @param builder
      * @return
      */
-    public SOAPBody createSOAPBody(SOAPEnvelope envelope, OMXMLParserWrapper builder);
+    public SOAPBody createSOAPBody(SOAPEnvelope envelope,
+                                   OMXMLParserWrapper builder);
 
     /* ========================
        =  SOAPFaultCode       =
@@ -116,7 +124,8 @@
      * @param builder
      * @return
      */
-    public SOAPFaultCode createSOAPFaultCode(SOAPFault parent, OMXMLParserWrapper builder);
+    public SOAPFaultCode createSOAPFaultCode(SOAPFault parent,
+                                             OMXMLParserWrapper builder);
 
 
     /*========================
@@ -137,7 +146,8 @@
      * @param builder
      * @return
      */
-    public SOAPFaultValue createSOAPFaultValue(SOAPFaultCode parent, OMXMLParserWrapper builder);
+    public SOAPFaultValue createSOAPFaultValue(SOAPFaultCode parent,
+                                               OMXMLParserWrapper builder);
 
     /*========================
       =  SOAPFaultSubCode    =
@@ -154,7 +164,8 @@
     public SOAPFaultValue createSOAPFaultValue(SOAPFaultSubCode parent) throws SOAPProcessingException;
 
     //added
-    public SOAPFaultValue createSOAPFaultValue(SOAPFaultSubCode parent, OMXMLParserWrapper builder);
+    public SOAPFaultValue createSOAPFaultValue(SOAPFaultSubCode parent,
+                                               OMXMLParserWrapper builder);
 
     //changed
     public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultCode parent) throws SOAPProcessingException;
@@ -167,7 +178,8 @@
      * @return
      */
     //changed
-    public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultCode parent, OMXMLParserWrapper builder);
+    public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultCode parent,
+                                                   OMXMLParserWrapper builder);
 
     /**
      * SubCode eii under SubCode (parent)
@@ -184,7 +196,8 @@
      * @param builder
      * @return
      */
-    public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultSubCode parent, OMXMLParserWrapper builder);
+    public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultSubCode parent,
+                                                   OMXMLParserWrapper builder);
 
 
     /*========================
@@ -206,7 +219,8 @@
      * @param builder
      * @return
      */
-    public SOAPFaultReason createSOAPFaultReason(SOAPFault parent, OMXMLParserWrapper builder);
+    public SOAPFaultReason createSOAPFaultReason(SOAPFault parent,
+                                                 OMXMLParserWrapper builder);
 
     /*========================
       =  SOAPFaultReasonText     =
@@ -227,7 +241,8 @@
      * @param builder
      * @return
      */
-    public SOAPFaultText createSOAPFaultText(SOAPFaultReason parent, OMXMLParserWrapper builder);
+    public SOAPFaultText createSOAPFaultText(SOAPFaultReason parent,
+                                             OMXMLParserWrapper builder);
 
 
     /*========================
@@ -249,7 +264,8 @@
      * @param builder
      * @return
      */
-    public SOAPFaultNode createSOAPFaultNode(SOAPFault parent, OMXMLParserWrapper builder);
+    public SOAPFaultNode createSOAPFaultNode(SOAPFault parent,
+                                             OMXMLParserWrapper builder);
 
     /*========================
       =  SOAPFaultRole       =
@@ -270,7 +286,8 @@
      * @param builder
      * @return
      */
-    public SOAPFaultRole createSOAPFaultRole(SOAPFault parent, OMXMLParserWrapper builder);
+    public SOAPFaultRole createSOAPFaultRole(SOAPFault parent,
+                                             OMXMLParserWrapper builder);
 
     /*========================
       =  SOAPFaultDetail     =
@@ -291,7 +308,8 @@
      * @param builder
      * @return
      */
-    public SOAPFaultDetail createSOAPFaultDetail(SOAPFault parent, OMXMLParserWrapper builder);
+    public SOAPFaultDetail createSOAPFaultDetail(SOAPFault parent,
+                                                 OMXMLParserWrapper builder);
 
 
     /**

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/SOAPHeader.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/SOAPHeader.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/SOAPHeader.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/SOAPHeader.java Mon Jul 11 10:48:55 2005
@@ -39,7 +39,8 @@
      * @throws org.apache.axis2.om.OMException
      *          if a SOAP error occurs
      */
-    public abstract SOAPHeaderBlock addHeaderBlock(String localName, OMNamespace ns) throws OMException;
+    public abstract SOAPHeaderBlock addHeaderBlock(String localName,
+                                                   OMNamespace ns) throws OMException;
 
     /**
      * Returns a list of all the <CODE>SOAPHeaderBlock</CODE>

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPBodyImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPBodyImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPBodyImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPBodyImpl.java Mon Jul 11 10:48:55 2005
@@ -79,9 +79,15 @@
         } else {
             OMElement element = getFirstElement();
             if (element != null
-                    && SOAPConstants.SOAPFAULT_LOCAL_NAME.equals(element.getLocalName())
-                    && (SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(element.getNamespace().getName())
-                    || SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(element.getNamespace().getName()))) {  //added this line
+                    &&
+                    SOAPConstants.SOAPFAULT_LOCAL_NAME.equals(
+                            element.getLocalName())
+                    &&
+                    (SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(
+                            element.getNamespace().getName())
+                    ||
+                    SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(
+                            element.getNamespace().getName()))) {  //added this line
                 hasSOAPFault = true;
                 return true;
             } else {
@@ -102,9 +108,15 @@
         if (hasSOAPFault) {
             return (SOAPFault) element;
         } else if (element != null
-                && SOAPConstants.SOAPFAULT_LOCAL_NAME.equals(element.getLocalName())
-                && (SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(element.getNamespace().getName())
-                || SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(element.getNamespace().getName()))) {     //added this line
+                &&
+                SOAPConstants.SOAPFAULT_LOCAL_NAME.equals(
+                        element.getLocalName())
+                &&
+                (SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(
+                        element.getNamespace().getName())
+                ||
+                SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(
+                        element.getNamespace().getName()))) {     //added this line
             hasSOAPFault = true;
             return (SOAPFault) element;
         } else {
@@ -121,7 +133,8 @@
      */
     public void addFault(SOAPFault soapFault) throws OMException {
         if (hasSOAPFault) {
-            throw new OMException("SOAP Body already has a SOAP Fault and there can not be more than one SOAP fault");
+            throw new OMException(
+                    "SOAP Body already has a SOAP Fault and there can not be more than one SOAP fault");
         }
         addChild(soapFault);
         hasSOAPFault = true;
@@ -129,7 +142,8 @@
 
     protected void checkParent(OMElement parent) throws SOAPProcessingException {
         if (!(parent instanceof SOAPEnvelopeImpl)) {
-            throw new SOAPProcessingException("Expecting an implementation of SOAP Envelope as the parent. But received some other implementation");
+            throw new SOAPProcessingException(
+                    "Expecting an implementation of SOAP Envelope as the parent. But received some other implementation");
         }
     }
 }

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPElement.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPElement.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPElement.java Mon Jul 11 10:48:55 2005
@@ -33,10 +33,14 @@
      * @param parent
      * @param parent
      */
-    protected SOAPElement(OMElement parent, String localName, boolean extractNamespaceFromParent) throws SOAPProcessingException {
+    protected SOAPElement(OMElement parent,
+                          String localName,
+                          boolean extractNamespaceFromParent) throws SOAPProcessingException {
         super(parent);
         if (parent == null) {
-            throw new SOAPProcessingException(" Can not create " + localName + " element without a parent !!");
+            throw new SOAPProcessingException(
+                    " Can not create " + localName +
+                    " element without a parent !!");
         }
         checkParent(parent);
 
@@ -47,7 +51,9 @@
     }
 
 
-    protected SOAPElement(OMElement parent, String localName, OMXMLParserWrapper builder) {
+    protected SOAPElement(OMElement parent,
+                          String localName,
+                          OMXMLParserWrapper builder) {
         super(localName, null, parent, builder);
     }
 

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPEnvelopeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPEnvelopeImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPEnvelopeImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPEnvelopeImpl.java Mon Jul 11 10:48:55 2005
@@ -15,7 +15,12 @@
  */
 package org.apache.axis2.soap.impl.llom;
 
-import org.apache.axis2.om.*;
+import org.apache.axis2.om.OMConstants;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.om.OMException;
+import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.om.OMNode;
+import org.apache.axis2.om.OMXMLParserWrapper;
 import org.apache.axis2.soap.SOAPBody;
 import org.apache.axis2.soap.SOAPEnvelope;
 import org.apache.axis2.soap.SOAPHeader;
@@ -56,7 +61,8 @@
      * @throws OMException
      */
     public SOAPHeader getHeader() throws OMException {
-        return (SOAPHeader) getFirstChildWithName(new QName(SOAPConstants.HEADER_LOCAL_NAME));
+        return (SOAPHeader) getFirstChildWithName(
+                new QName(SOAPConstants.HEADER_LOCAL_NAME));
     }
 
     /**
@@ -84,10 +90,13 @@
                 }
                 element = (OMElement) node;
 
-                if (node != null && SOAPConstants.BODY_LOCAL_NAME.equals(element.getLocalName())) {
+                if (node != null &&
+                        SOAPConstants.BODY_LOCAL_NAME.equals(
+                                element.getLocalName())) {
                     return (SOAPBody) element;
                 } else {
-                    throw new OMException("SOAPEnvelope must contain a body element which is either first or second child element of the SOAPEnvelope.");
+                    throw new OMException(
+                            "SOAPEnvelope must contain a body element which is either first or second child element of the SOAPEnvelope.");
                 }
             }
         }

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPFaultCodeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPFaultCodeImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPFaultCodeImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPFaultCodeImpl.java Mon Jul 11 10:48:55 2005
@@ -43,8 +43,11 @@
      * @param parent
      * @param parent
      */
-    public SOAPFaultCodeImpl(SOAPFault parent, boolean extractNamespaceFromParent) throws SOAPProcessingException {
-        super(parent, SOAP12Constants.SOAP_FAULT_CODE_LOCAL_NAME, extractNamespaceFromParent);
+    public SOAPFaultCodeImpl(SOAPFault parent,
+                             boolean extractNamespaceFromParent) throws SOAPProcessingException {
+        super(parent,
+                SOAP12Constants.SOAP_FAULT_CODE_LOCAL_NAME,
+                extractNamespaceFromParent);
     }
 
     /**
@@ -55,7 +58,8 @@
     }
 
     public SOAPFaultValue getValue() {
-        return (SOAPFaultValue) UtilProvider.getChildWithName(this, SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME);
+        return (SOAPFaultValue) UtilProvider.getChildWithName(this,
+                SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME);
     }
 
     public void setSubCode(SOAPFaultSubCode value) throws SOAPProcessingException {
@@ -63,6 +67,7 @@
     }
 
     public SOAPFaultSubCode getSubCode() {
-        return (SOAPFaultSubCode) UtilProvider.getChildWithName(this, SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME);
+        return (SOAPFaultSubCode) UtilProvider.getChildWithName(this,
+                SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME);
     }
 }

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPFaultDetailImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPFaultDetailImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPFaultDetailImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPFaultDetailImpl.java Mon Jul 11 10:48:55 2005
@@ -28,11 +28,15 @@
 
 public abstract class SOAPFaultDetailImpl extends SOAPElement implements SOAPFaultDetail {
 
-    protected SOAPFaultDetailImpl(SOAPFault parent, boolean extractNamespaceFromParent) throws SOAPProcessingException {
-        super(parent, SOAP12Constants.SOAP_FAULT_DETAIL_LOCAL_NAME, extractNamespaceFromParent);
+    protected SOAPFaultDetailImpl(SOAPFault parent,
+                                  boolean extractNamespaceFromParent) throws SOAPProcessingException {
+        super(parent,
+                SOAP12Constants.SOAP_FAULT_DETAIL_LOCAL_NAME,
+                extractNamespaceFromParent);
     }
 
-    protected SOAPFaultDetailImpl(SOAPFault parent, OMXMLParserWrapper builder) {
+    protected SOAPFaultDetailImpl(SOAPFault parent,
+                                  OMXMLParserWrapper builder) {
         super(parent, SOAP12Constants.SOAP_FAULT_DETAIL_LOCAL_NAME, builder);
     }
 

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPFaultImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPFaultImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPFaultImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPFaultImpl.java Mon Jul 11 10:48:55 2005
@@ -15,9 +15,19 @@
  */
 package org.apache.axis2.soap.impl.llom;
 
-import org.apache.axis2.om.*;
+import org.apache.axis2.om.OMConstants;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.om.OMException;
+import org.apache.axis2.om.OMNode;
+import org.apache.axis2.om.OMXMLParserWrapper;
 import org.apache.axis2.om.impl.llom.OMElementImpl;
-import org.apache.axis2.soap.*;
+import org.apache.axis2.soap.SOAPBody;
+import org.apache.axis2.soap.SOAPFault;
+import org.apache.axis2.soap.SOAPFaultCode;
+import org.apache.axis2.soap.SOAPFaultDetail;
+import org.apache.axis2.soap.SOAPFaultNode;
+import org.apache.axis2.soap.SOAPFaultReason;
+import org.apache.axis2.soap.SOAPFaultRole;
 import org.apache.axis2.soap.impl.llom.soap12.SOAP12Constants;
 
 import javax.xml.namespace.QName;
@@ -73,7 +83,8 @@
     }
 
     public SOAPFaultCode getCode() {
-        return (SOAPFaultCode) this.getChildWithName(SOAP12Constants.SOAP_FAULT_CODE_LOCAL_NAME);
+        return (SOAPFaultCode) this.getChildWithName(
+                SOAP12Constants.SOAP_FAULT_CODE_LOCAL_NAME);
     }
 
     public void setReason(SOAPFaultReason reason) throws SOAPProcessingException {
@@ -81,7 +92,8 @@
     }
 
     public SOAPFaultReason getReason() {
-        return (SOAPFaultReason) this.getChildWithName(SOAP12Constants.SOAP_FAULT_REASON_LOCAL_NAME);
+        return (SOAPFaultReason) this.getChildWithName(
+                SOAP12Constants.SOAP_FAULT_REASON_LOCAL_NAME);
     }
 
     public void setNode(SOAPFaultNode node) throws SOAPProcessingException {
@@ -89,7 +101,8 @@
     }
 
     public SOAPFaultNode getNode() {
-        return (SOAPFaultNode) this.getChildWithName(SOAP12Constants.SOAP_FAULT_NODE_LOCAL_NAME);
+        return (SOAPFaultNode) this.getChildWithName(
+                SOAP12Constants.SOAP_FAULT_NODE_LOCAL_NAME);
     }
 
     public void setRole(SOAPFaultRole role) throws SOAPProcessingException {
@@ -97,7 +110,8 @@
     }
 
     public SOAPFaultRole getRole() {
-        return (SOAPFaultRoleImpl) this.getChildWithName(SOAP12Constants.SOAP_FAULT_ROLE_LOCAL_NAME);
+        return (SOAPFaultRoleImpl) this.getChildWithName(
+                SOAP12Constants.SOAP_FAULT_ROLE_LOCAL_NAME);
     }
 
     public void setDetail(SOAPFaultDetail detail) throws SOAPProcessingException {
@@ -105,7 +119,8 @@
     }
 
     public SOAPFaultDetail getDetail() {
-        return (SOAPFaultDetail) this.getChildWithName(SOAP12Constants.SOAP_FAULT_DETAIL_LOCAL_NAME);
+        return (SOAPFaultDetail) this.getChildWithName(
+                SOAP12Constants.SOAP_FAULT_DETAIL_LOCAL_NAME);
     }
 
 
@@ -114,14 +129,17 @@
     public Exception getException() throws OMException {
         getDetail();
         if (getDetail() == null) {
-            return new Exception("No Exception element found in the SOAP Detail element");
+            return new Exception(
+                    "No Exception element found in the SOAP Detail element");
         }
 
-        OMElement exceptionElement = getDetail().getFirstChildWithName(new QName(SOAPConstants.SOAP_FAULT_DETAIL_EXCEPTION_ENTRY));
+        OMElement exceptionElement = getDetail().getFirstChildWithName(
+                new QName(SOAPConstants.SOAP_FAULT_DETAIL_EXCEPTION_ENTRY));
         if (exceptionElement != null) {
             return new Exception(exceptionElement.getText());
         }
-        return new Exception("No Exception element found in the SOAP Detail element");
+        return new Exception(
+                "No Exception element found in the SOAP Detail element");
     }
 
     protected void putExceptionToSOAPFault(Exception e) throws SOAPProcessingException {
@@ -133,7 +151,9 @@
             setDetail(getNewSOAPFaultDetail(this));
 
         }
-        OMElement faultDetailEnty = new OMElementImpl(SOAPConstants.SOAP_FAULT_DETAIL_EXCEPTION_ENTRY, this.getNamespace());
+        OMElement faultDetailEnty = new OMElementImpl(
+                SOAPConstants.SOAP_FAULT_DETAIL_EXCEPTION_ENTRY,
+                this.getNamespace());
         faultDetailEnty.setText(sw.getBuffer().toString());
         getDetail().addChild(faultDetailEnty);
     }
@@ -153,7 +173,8 @@
         Iterator childrenIter = getChildren();
         while (childrenIter.hasNext()) {
             OMNode node = (OMNode) childrenIter.next();
-            if (node.getType() == OMNode.ELEMENT_NODE && childName.equals(((OMElement) node).getLocalName())) {
+            if (node.getType() == OMNode.ELEMENT_NODE &&
+                    childName.equals(((OMElement) node).getLocalName())) {
                 return (OMElement) node;
             }
         }

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPFaultReasonImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPFaultReasonImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPFaultReasonImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPFaultReasonImpl.java Mon Jul 11 10:48:55 2005
@@ -40,8 +40,11 @@
     /**
      * @param parent
      */
-    public SOAPFaultReasonImpl(OMElement parent, boolean extractNamespaceFromParent) throws SOAPProcessingException {
-        super(parent, SOAP12Constants.SOAP_FAULT_REASON_LOCAL_NAME, extractNamespaceFromParent);
+    public SOAPFaultReasonImpl(OMElement parent,
+                               boolean extractNamespaceFromParent) throws SOAPProcessingException {
+        super(parent,
+                SOAP12Constants.SOAP_FAULT_REASON_LOCAL_NAME,
+                extractNamespaceFromParent);
     }
 
     /**
@@ -52,6 +55,7 @@
     }
 
     public SOAPFaultText getSOAPText() {
-        return (SOAPFaultText) UtilProvider.getChildWithName(this, SOAP12Constants.SOAP_FAULT_TEXT_LOCAL_NAME);
+        return (SOAPFaultText) UtilProvider.getChildWithName(this,
+                SOAP12Constants.SOAP_FAULT_TEXT_LOCAL_NAME);
     }
 }

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPFaultRoleImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPFaultRoleImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPFaultRoleImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPFaultRoleImpl.java Mon Jul 11 10:48:55 2005
@@ -24,8 +24,11 @@
 
 public abstract class SOAPFaultRoleImpl extends SOAPElement implements org.apache.axis2.soap.SOAPFaultRole {
 
-    public SOAPFaultRoleImpl(SOAPFault parent, boolean extractNamespaceFromParent) throws SOAPProcessingException {
-        super(parent, SOAP12Constants.SOAP_FAULT_ROLE_LOCAL_NAME, extractNamespaceFromParent);
+    public SOAPFaultRoleImpl(SOAPFault parent,
+                             boolean extractNamespaceFromParent) throws SOAPProcessingException {
+        super(parent,
+                SOAP12Constants.SOAP_FAULT_ROLE_LOCAL_NAME,
+                extractNamespaceFromParent);
     }
 
     public SOAPFaultRoleImpl(SOAPFault parent, OMXMLParserWrapper builder) {

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPFaultSubCodeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPFaultSubCodeImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPFaultSubCodeImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPFaultSubCodeImpl.java Mon Jul 11 10:48:55 2005
@@ -35,7 +35,9 @@
         super(parent, localName, true);
     }
 
-    protected SOAPFaultSubCodeImpl(OMElement parent, String localName, OMXMLParserWrapper builder) {
+    protected SOAPFaultSubCodeImpl(OMElement parent,
+                                   String localName,
+                                   OMXMLParserWrapper builder) {
         super(parent, localName, builder);
     }
 
@@ -45,7 +47,9 @@
 
     public SOAPFaultValue getValue() {
         if (value == null) {
-            value = (SOAPFaultValue) UtilProvider.getChildWithName(this, SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME);
+            value =
+                    (SOAPFaultValue) UtilProvider.getChildWithName(this,
+                            SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME);
         }
         return value;
     }
@@ -57,7 +61,9 @@
 
     public SOAPFaultSubCode getSubCode() {
         if (subCode == null) {
-            subCode = (SOAPFaultSubCode) UtilProvider.getChildWithName(this, SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME);
+            subCode =
+                    (SOAPFaultSubCode) UtilProvider.getChildWithName(this,
+                            SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME);
         }
         return subCode;
     }

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPFaultTextImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPFaultTextImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPFaultTextImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPFaultTextImpl.java Mon Jul 11 10:48:55 2005
@@ -29,27 +29,39 @@
  */
 public abstract class SOAPFaultTextImpl extends SOAPElement implements SOAPFaultText {
     protected OMAttribute langAttr;
-    protected OMNamespace langNamespace = OMAbstractFactory.getOMFactory().createOMNamespace(SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_NS_URI, SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_NS_PREFIX);
+    protected OMNamespace langNamespace = OMAbstractFactory.getOMFactory()
+            .createOMNamespace(
+                    SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_NS_URI,
+                    SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_NS_PREFIX);
 
     protected SOAPFaultTextImpl(SOAPFaultReason parent) throws SOAPProcessingException {
         super(parent, SOAP12Constants.SOAP_FAULT_TEXT_LOCAL_NAME, true);
     }
 
-    protected SOAPFaultTextImpl(SOAPFaultReason parent, OMXMLParserWrapper builder) {
+    protected SOAPFaultTextImpl(SOAPFaultReason parent,
+                                OMXMLParserWrapper builder) {
         super(parent, SOAP12Constants.SOAP_FAULT_TEXT_LOCAL_NAME, builder);
     }
 
 
     public void setLang(String lang) {
         //langAttr = new OMAttributeImpl(SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_LOCAL_NAME, parent.getNamespace(), lang);
-        langAttr = new OMAttributeImpl(SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_LOCAL_NAME, langNamespace, lang);
+        langAttr =
+                new OMAttributeImpl(
+                        SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_LOCAL_NAME,
+                        langNamespace,
+                        lang);
         this.addAttribute(langAttr);
     }
 
     public String getLang() {
         if (langAttr == null) {
             //langAttr = this.getFirstAttribute(new QName(SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_LOCAL_NAME, parent.getNamespace().getName()));
-            langAttr = this.getFirstAttribute(new QName(langNamespace.getName(), SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_LOCAL_NAME, SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_NS_PREFIX));
+            langAttr =
+                    this.getFirstAttribute(
+                            new QName(langNamespace.getName(),
+                                    SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_LOCAL_NAME,
+                                    SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_NS_PREFIX));
         }
 
         return langAttr == null ? null : langAttr.getValue();

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPHeaderBlockImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPHeaderBlockImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPHeaderBlockImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPHeaderBlockImpl.java Mon Jul 11 10:48:55 2005
@@ -39,7 +39,9 @@
      * @param localName
      * @param ns
      */
-    public SOAPHeaderBlockImpl(String localName, OMNamespace ns, SOAPHeader parent) throws SOAPProcessingException {
+    public SOAPHeaderBlockImpl(String localName,
+                               OMNamespace ns,
+                               SOAPHeader parent) throws SOAPProcessingException {
         super(localName, ns, parent);
         this.setNamespace(ns);
     }
@@ -62,14 +64,18 @@
      * @param attributeName
      * @param attrValue
      */
-    protected void setAttribute(String attributeName, String attrValue, String soapEnvelopeNamespaceURI) {
-        OMAttribute omAttribute = this.getFirstAttribute(new QName(soapEnvelopeNamespaceURI, attributeName));
+    protected void setAttribute(String attributeName,
+                                String attrValue,
+                                String soapEnvelopeNamespaceURI) {
+        OMAttribute omAttribute = this.getFirstAttribute(
+                new QName(soapEnvelopeNamespaceURI, attributeName));
         if (omAttribute != null) {
             omAttribute.setValue(attrValue);
         } else {
             OMAttribute attribute = new OMAttributeImpl(attributeName,
-                                                        new OMNamespaceImpl(soapEnvelopeNamespaceURI,
-                                                                            SOAPConstants.SOAP_DEFAULT_NAMESPACE_PREFIX), attrValue);
+                    new OMNamespaceImpl(soapEnvelopeNamespaceURI,
+                            SOAPConstants.SOAP_DEFAULT_NAMESPACE_PREFIX),
+                    attrValue);
             this.addAttribute(attribute);
         }
     }
@@ -80,8 +86,10 @@
      * @param attrName
      * @return
      */
-    protected String getAttribute(String attrName, String soapEnvelopeNamespaceURI) {
-        OMAttribute omAttribute = this.getFirstAttribute(new QName(soapEnvelopeNamespaceURI, attrName));
+    protected String getAttribute(String attrName,
+                                  String soapEnvelopeNamespaceURI) {
+        OMAttribute omAttribute = this.getFirstAttribute(
+                new QName(soapEnvelopeNamespaceURI, attrName));
         return (omAttribute != null)
                 ? omAttribute.getValue()
                 : null;

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPHeaderImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPHeaderImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPHeaderImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/SOAPHeaderImpl.java Mon Jul 11 10:48:55 2005
@@ -15,7 +15,11 @@
 */
 package org.apache.axis2.soap.impl.llom;
 
-import org.apache.axis2.om.*;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.om.OMException;
+import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.om.OMNode;
+import org.apache.axis2.om.OMXMLParserWrapper;
 import org.apache.axis2.soap.SOAPEnvelope;
 import org.apache.axis2.soap.SOAPHeader;
 import org.apache.axis2.soap.SOAPHeaderBlock;
@@ -57,7 +61,8 @@
      *                     if a SOAP error occurs
      * @throws OMException
      */
-    public abstract SOAPHeaderBlock addHeaderBlock(String localName, OMNamespace ns)
+    public abstract SOAPHeaderBlock addHeaderBlock(String localName,
+                                                   OMNamespace ns)
             throws OMException;
 
     /**
@@ -129,7 +134,8 @@
                 SOAPHeaderBlock soapHeaderBlock = (SOAPHeaderBlock) o;
                 String role = soapHeaderBlock.getRole();
                 boolean mustUnderstand = soapHeaderBlock.getMustUnderstand();
-                if ((role != null) && role.equalsIgnoreCase(actor) && mustUnderstand) {
+                if ((role != null) && role.equalsIgnoreCase(actor) &&
+                        mustUnderstand) {
                     mustUnderstandHeadersWithGivenActor.add(soapHeaderBlock);
                 }
             }
@@ -191,7 +197,8 @@
 
     protected void checkParent(OMElement parent) throws SOAPProcessingException {
         if (!(parent instanceof SOAPEnvelopeImpl)) {
-            throw new SOAPProcessingException("Expecting an implementation of SOAP Envelope as the parent. But received some other implementation");
+            throw new SOAPProcessingException(
+                    "Expecting an implementation of SOAP Envelope as the parent. But received some other implementation");
         }
     }
 

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/builder/SOAP11BuilderHelper.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/builder/SOAP11BuilderHelper.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/builder/SOAP11BuilderHelper.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/builder/SOAP11BuilderHelper.java Mon Jul 11 10:48:55 2005
@@ -4,7 +4,12 @@
 import org.apache.axis2.om.OMElement;
 import org.apache.axis2.om.OMText;
 import org.apache.axis2.om.impl.llom.exception.OMBuilderException;
-import org.apache.axis2.soap.*;
+import org.apache.axis2.soap.SOAPFactory;
+import org.apache.axis2.soap.SOAPFault;
+import org.apache.axis2.soap.SOAPFaultCode;
+import org.apache.axis2.soap.SOAPFaultReason;
+import org.apache.axis2.soap.SOAPFaultText;
+import org.apache.axis2.soap.SOAPFaultValue;
 import org.apache.axis2.soap.impl.llom.SOAPProcessingException;
 import org.apache.axis2.soap.impl.llom.soap11.SOAP11Constants;
 
@@ -41,7 +46,9 @@
         factory = OMAbstractFactory.getSOAP11Factory();
     }
 
-    public OMElement handleEvent(XMLStreamReader parser, OMElement parent, int elementLevel) throws SOAPProcessingException {
+    public OMElement handleEvent(XMLStreamReader parser,
+                                 OMElement parent,
+                                 int elementLevel) throws SOAPProcessingException {
         this.parser = parser;
 
         OMElement element = null;
@@ -53,7 +60,8 @@
                 if (faultstringPresent) {
                     builder.setBooleanProcessingMandatoryFaultElements(false);
                 }
-                SOAPFaultCode code = factory.createSOAPFaultCode((SOAPFault) parent, builder);
+                SOAPFaultCode code = factory.createSOAPFaultCode(
+                        (SOAPFault) parent, builder);
                 SOAPFaultValue value = factory.createSOAPFaultValue(code);
                 processNamespaceData(code, true);
                 processAttributes(code);
@@ -70,7 +78,8 @@
                 }
 
 
-                SOAPFaultReason reason = factory.createSOAPFaultReason((SOAPFault) parent, builder);
+                SOAPFaultReason reason = factory.createSOAPFaultReason(
+                        (SOAPFault) parent, builder);
                 SOAPFaultText faultText = factory.createSOAPFaultText(reason);
                 processNamespaceData(reason, true);
                 processAttributes(reason);
@@ -83,15 +92,21 @@
 
                 faultstringPresent = true;
             } else if (SOAP_FAULT_ACTOR_LOCAL_NAME.equals(localName)) {
-                element = factory.createSOAPFaultRole((SOAPFault) parent, builder);
+                element =
+                        factory.createSOAPFaultRole((SOAPFault) parent,
+                                builder);
                 processNamespaceData(element, true);
                 processAttributes(element);
             } else if (SOAP_FAULT_DETAIL_LOCAL_NAME.equals(localName)) {
-                element = factory.createSOAPFaultDetail((SOAPFault) parent, builder);
+                element =
+                        factory.createSOAPFaultDetail((SOAPFault) parent,
+                                builder);
                 processNamespaceData(element, true);
                 processAttributes(element);
             } else {
-                element = OMAbstractFactory.getOMFactory().createOMElement(localName, null, parent, builder);
+                element =
+                        OMAbstractFactory.getOMFactory().createOMElement(
+                                localName, null, parent, builder);
                 processNamespaceData(element, false);
                 processAttributes(element);
             }
@@ -99,19 +114,30 @@
         } else if (elementLevel == 5) {
 
             if (parent.getLocalName().equals(SOAP_FAULT_CODE_LOCAL_NAME)) {
-                throw new OMBuilderException("faultcode element should not have children");
-            } else if (parent.getLocalName().equals(SOAP_FAULT_STRING_LOCAL_NAME)) {
-                throw new OMBuilderException("faultstring element should not have children");
-            } else if (parent.getLocalName().equals(SOAP_FAULT_ACTOR_LOCAL_NAME)) {
-                throw new OMBuilderException("faultactor element should not have children");
+                throw new OMBuilderException(
+                        "faultcode element should not have children");
+            } else if (parent.getLocalName().equals(
+                    SOAP_FAULT_STRING_LOCAL_NAME)) {
+                throw new OMBuilderException(
+                        "faultstring element should not have children");
+            } else if (parent.getLocalName().equals(
+                    SOAP_FAULT_ACTOR_LOCAL_NAME)) {
+                throw new OMBuilderException(
+                        "faultactor element should not have children");
             } else {
-                element = OMAbstractFactory.getOMFactory().createOMElement(localName, null, parent, builder);
+                element =
+                        OMAbstractFactory.getOMFactory().createOMElement(
+                                localName, null, parent, builder);
                 processNamespaceData(element, false);
                 processAttributes(element);
             }
 
         } else if (elementLevel > 5) {
-            element = OMAbstractFactory.getOMFactory().createOMElement(localName, null, parent, builder);
+            element =
+                    OMAbstractFactory.getOMFactory().createOMElement(localName,
+                            null,
+                            parent,
+                            builder);
             processNamespaceData(element, false);
             processAttributes(element);
         }
@@ -127,7 +153,8 @@
                     OMText text = factory.createText(value, parser.getText());
                     value.addChild(text);
                 } else {
-                    throw new SOAPProcessingException("Only Characters are allowed here");
+                    throw new SOAPProcessingException(
+                            "Only Characters are allowed here");
                 }
                 token = parser.next();
             }