You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by gd...@apache.org on 2007/03/07 15:59:13 UTC

svn commit: r515594 [10/19] - in /webservices/commons/trunk/modules/axiom/modules: axiom-api/src/main/java/org/apache/axiom/attachments/ axiom-api/src/main/java/org/apache/axiom/attachments/utils/ axiom-api/src/main/java/org/apache/axiom/om/ axiom-api/...

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11Factory.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11Factory.java?view=diff&rev=515594&r1=515593&r2=515594
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11Factory.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11Factory.java Wed Mar  7 06:59:00 2007
@@ -41,11 +41,12 @@
 
 public class SOAP11Factory extends DOMSOAPFactory {
 
-	public SOAP11Factory() {}
-	
-	public SOAP11Factory(DocumentImpl doc) {
-		super(doc);
-	}
+    public SOAP11Factory() {
+    }
+
+    public SOAP11Factory(DocumentImpl doc) {
+        super(doc);
+    }
 
     public String getSoapVersionURI() {
         return SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI;
@@ -69,18 +70,21 @@
         return new SOAP11HeaderImpl(envelope, builder, this);
     }
 
-    
-    public SOAPHeaderBlock createSOAPHeaderBlock(String localName, OMNamespace ns) throws SOAPProcessingException {
+
+    public SOAPHeaderBlock createSOAPHeaderBlock(String localName, OMNamespace ns)
+            throws SOAPProcessingException {
         return new SOAP11HeaderBlockImpl(localName, ns, this);
     }
 
     public SOAPHeaderBlock createSOAPHeaderBlock(String localName,
-            OMNamespace ns, SOAPHeader parent) throws SOAPProcessingException {
+                                                 OMNamespace ns, SOAPHeader parent)
+            throws SOAPProcessingException {
         return new SOAP11HeaderBlockImpl(localName, ns, parent, this);
     }
 
     public SOAPHeaderBlock createSOAPHeaderBlock(String localName,
-            OMNamespace ns, SOAPHeader parent, OMXMLParserWrapper builder)
+                                                 OMNamespace ns, SOAPHeader parent,
+                                                 OMXMLParserWrapper builder)
             throws SOAPProcessingException {
         return new SOAP11HeaderBlockImpl(localName, ns, parent, builder, this);
     }
@@ -226,15 +230,15 @@
         createSOAPBody(env);
         return env;
     }
-    
+
     public OMNamespace getNamespace() {
         return new NamespaceImpl(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
-                SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
+                                 SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
     }
 
-	public SOAPFault createSOAPFault() throws SOAPProcessingException {
-		return new SOAP11FaultImpl(this.getDefaultEnvelope().getBody(),this);
-	}
-    
-    
+    public SOAPFault createSOAPFault() throws SOAPProcessingException {
+        return new SOAP11FaultImpl(this.getDefaultEnvelope().getBody(), this);
+    }
+
+
 }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultCodeImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultCodeImpl.java?view=diff&rev=515594&r1=515593&r2=515594
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultCodeImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultCodeImpl.java Wed Mar  7 06:59:00 2007
@@ -18,8 +18,8 @@
 
 import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMXMLParserWrapper;
-import org.apache.axiom.om.impl.util.OMSerializerUtil;
 import org.apache.axiom.om.impl.serialize.StreamWriterToContentHandlerConverter;
+import org.apache.axiom.om.impl.util.OMSerializerUtil;
 import org.apache.axiom.soap.SOAP11Constants;
 import org.apache.axiom.soap.SOAPFactory;
 import org.apache.axiom.soap.SOAPFault;
@@ -39,13 +39,11 @@
      * @param builder
      */
     public SOAP11FaultCodeImpl(SOAPFault parent, OMXMLParserWrapper builder,
-            SOAPFactory factory) {
+                               SOAPFactory factory) {
         super(parent, builder, factory);
     }
 
-    /**
-     * @param parent
-     */
+    /** @param parent  */
     public SOAP11FaultCodeImpl(SOAPFault parent, SOAPFactory factory)
             throws SOAPProcessingException {
         super(parent, false, factory);
@@ -56,7 +54,7 @@
         if (!(subCode instanceof SOAP11FaultSubCodeImpl)) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.1 implementation of SOAP Fault Sub " +
-                    "Code. But received some other implementation");
+                            "Code. But received some other implementation");
         }
         super.setSubCode(subCode);
     }
@@ -65,7 +63,7 @@
         if (!(value instanceof SOAP11FaultValueImpl)) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.1 implementation of SOAP Fault Value. " +
-                    "But received some other implementation");
+                            "But received some other implementation");
         }
         super.setValue(value);
     }
@@ -74,7 +72,7 @@
         if (!(parent instanceof SOAP11FaultImpl)) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.1 implementation of SOAP Fault as the " +
-                    "parent. But received some other implementation");
+                            "parent. But received some other implementation");
         }
     }
 
@@ -93,10 +91,10 @@
                     new StreamWriterToContentHandlerConverter(writer));
         }
 
-        OMSerializerUtil.serializeStartpart(this, 
-        		SOAP11Constants.SOAP_FAULT_CODE_LOCAL_NAME, 
-        		writer);
-    
+        OMSerializerUtil.serializeStartpart(this,
+                                            SOAP11Constants.SOAP_FAULT_CODE_LOCAL_NAME,
+                                            writer);
+
         String text = this.getText();
         writer.writeCharacters(text);
         writer.writeEndElement();

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultDetailImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultDetailImpl.java?view=diff&rev=515594&r1=515593&r2=515594
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultDetailImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultDetailImpl.java Wed Mar  7 06:59:00 2007
@@ -18,8 +18,8 @@
 
 import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMXMLParserWrapper;
-import org.apache.axiom.om.impl.util.OMSerializerUtil;
 import org.apache.axiom.om.impl.serialize.StreamWriterToContentHandlerConverter;
+import org.apache.axiom.om.impl.util.OMSerializerUtil;
 import org.apache.axiom.soap.SOAP11Constants;
 import org.apache.axiom.soap.SOAPFactory;
 import org.apache.axiom.soap.SOAPFault;
@@ -30,14 +30,14 @@
 import javax.xml.stream.XMLStreamWriter;
 
 public class SOAP11FaultDetailImpl extends SOAPFaultDetailImpl {
-    
+
     public SOAP11FaultDetailImpl(SOAPFault parent, SOAPFactory factory)
             throws SOAPProcessingException {
         super(parent, false, factory);
     }
 
     public SOAP11FaultDetailImpl(SOAPFault parent, OMXMLParserWrapper builder,
-            SOAPFactory factory) {
+                                 SOAPFactory factory) {
         super(parent, builder, factory);
     }
 
@@ -49,7 +49,7 @@
         if (!(parent instanceof SOAP11FaultImpl)) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.1 implementation of SOAP Fault as " +
-                    "the parent. But received some other implementation");
+                            "the parent. But received some other implementation");
         }
     }
 
@@ -67,9 +67,9 @@
                     new StreamWriterToContentHandlerConverter(writer));
         }
 
-        OMSerializerUtil.serializeStartpart(this, 
-        		SOAP11Constants.SOAP_FAULT_DETAIL_LOCAL_NAME, 
-        		writer);
+        OMSerializerUtil.serializeStartpart(this,
+                                            SOAP11Constants.SOAP_FAULT_DETAIL_LOCAL_NAME,
+                                            writer);
 
         String text = this.getText();
         writer.writeCharacters(text);

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultImpl.java?view=diff&rev=515594&r1=515593&r2=515594
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultImpl.java Wed Mar  7 06:59:00 2007
@@ -57,7 +57,7 @@
 
     protected SOAPFaultDetail getNewSOAPFaultDetail(SOAPFault fault)
             throws SOAPProcessingException {
-        return new SOAP11FaultDetailImpl(fault, (SOAPFactory)this.factory);
+        return new SOAP11FaultDetailImpl(fault, (SOAPFactory) this.factory);
     }
 
     public void setCode(SOAPFaultCode soapFaultCode)
@@ -65,7 +65,7 @@
         if (!(soapFaultCode instanceof SOAP11FaultCodeImpl)) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.1 implementation of SOAP Fault Code. " +
-                    "But received some other implementation");
+                            "But received some other implementation");
         }
         super.setCode(soapFaultCode);
     }
@@ -74,7 +74,7 @@
         if (!(reason instanceof SOAP11FaultReasonImpl)) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.1 implementation of SOAP Fault Reason. " +
-                    "But received some other implementation");
+                            "But received some other implementation");
         }
         super.setReason(reason);
     }
@@ -83,7 +83,7 @@
         if (!(node instanceof SOAP11FaultNodeImpl)) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.1 implementation of SOAP Fault Node. " +
-                    "But received some other implementation");
+                            "But received some other implementation");
         }
         super.setNode(node);
     }
@@ -92,7 +92,7 @@
         if (!(role instanceof SOAP11FaultRoleImpl)) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.1 implementation of SOAP Fault Role. " +
-                    "But received some other implementation");
+                            "But received some other implementation");
         }
         super.setRole(role);
     }
@@ -101,7 +101,7 @@
         if (!(parent instanceof SOAP11BodyImpl)) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.1 implementation of SOAP Body as the " +
-                    "parent. But received some other implementation");
+                            "parent. But received some other implementation");
         }
     }
 
@@ -109,7 +109,7 @@
         if (!(detail instanceof SOAP11FaultDetailImpl)) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.1 implementation of SOAP Fault Detail. " +
-                    "But received some other implementation");
+                            "But received some other implementation");
         }
         super.setDetail(detail);
     }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultNodeImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultNodeImpl.java?view=diff&rev=515594&r1=515593&r2=515594
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultNodeImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultNodeImpl.java Wed Mar  7 06:59:00 2007
@@ -31,7 +31,7 @@
     }
 
     public SOAP11FaultNodeImpl(SOAPFault parent, OMXMLParserWrapper builder,
-            SOAPFactory factory) {
+                               SOAPFactory factory) {
         super(parent, builder, factory);
     }
 
@@ -39,7 +39,7 @@
         if (!(parent instanceof SOAP11FaultImpl)) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.1 implementation of SOAP Fault as the " +
-                    "parent. But received some other implementation");
+                            "parent. But received some other implementation");
         }
     }
 }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultReasonImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultReasonImpl.java?view=diff&rev=515594&r1=515593&r2=515594
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultReasonImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultReasonImpl.java Wed Mar  7 06:59:00 2007
@@ -18,8 +18,8 @@
 
 import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMXMLParserWrapper;
-import org.apache.axiom.om.impl.util.OMSerializerUtil;
 import org.apache.axiom.om.impl.serialize.StreamWriterToContentHandlerConverter;
+import org.apache.axiom.om.impl.util.OMSerializerUtil;
 import org.apache.axiom.soap.SOAP11Constants;
 import org.apache.axiom.soap.SOAPFactory;
 import org.apache.axiom.soap.SOAPFault;
@@ -32,14 +32,12 @@
 
 public class SOAP11FaultReasonImpl extends SOAPFaultReasonImpl {
 
-	public SOAP11FaultReasonImpl(SOAPFault parent, OMXMLParserWrapper builder,
-            SOAPFactory factory) {
+    public SOAP11FaultReasonImpl(SOAPFault parent, OMXMLParserWrapper builder,
+                                 SOAPFactory factory) {
         super(parent, builder, factory);
     }
 
-    /**
-     * @param parent
-     */
+    /** @param parent  */
     public SOAP11FaultReasonImpl(SOAPFault parent, SOAPFactory factory)
             throws SOAPProcessingException {
         super(parent, false, factory);
@@ -50,7 +48,7 @@
         if (!(soapFaultText instanceof SOAP11FaultTextImpl)) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.1 implementation of SOAP Fault Text. " +
-                    "But received some other implementation");
+                            "But received some other implementation");
         }
         super.addSOAPText(soapFaultText);
     }
@@ -59,7 +57,7 @@
         if (!(parent instanceof SOAP11FaultImpl)) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.1 implementation of SOAP Fault as the " +
-                    "parent. But received some other implementation");
+                            "parent. But received some other implementation");
         }
     }
 
@@ -77,10 +75,10 @@
                     new StreamWriterToContentHandlerConverter(writer));
         }
 
-        OMSerializerUtil.serializeStartpart(this, 
-        		SOAP11Constants.SOAP_FAULT_STRING_LOCAL_NAME, 
-        		writer);
-      
+        OMSerializerUtil.serializeStartpart(this,
+                                            SOAP11Constants.SOAP_FAULT_STRING_LOCAL_NAME,
+                                            writer);
+
         String text = this.getText();
         writer.writeCharacters(text);
         writer.writeEndElement();

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultRoleImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultRoleImpl.java?view=diff&rev=515594&r1=515593&r2=515594
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultRoleImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultRoleImpl.java Wed Mar  7 06:59:00 2007
@@ -18,8 +18,8 @@
 
 import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMXMLParserWrapper;
-import org.apache.axiom.om.impl.util.OMSerializerUtil;
 import org.apache.axiom.om.impl.serialize.StreamWriterToContentHandlerConverter;
+import org.apache.axiom.om.impl.util.OMSerializerUtil;
 import org.apache.axiom.soap.SOAP11Constants;
 import org.apache.axiom.soap.SOAPFactory;
 import org.apache.axiom.soap.SOAPFault;
@@ -30,15 +30,15 @@
 import javax.xml.stream.XMLStreamWriter;
 
 public class SOAP11FaultRoleImpl extends SOAPFaultRoleImpl {
-    
+
     public SOAP11FaultRoleImpl(SOAPFault parent, SOAPFactory factory)
             throws SOAPProcessingException {
         super(parent, SOAP11Constants.SOAP_FAULT_ACTOR_LOCAL_NAME, false,
-                factory);
+              factory);
     }
 
     public SOAP11FaultRoleImpl(SOAPFault parent, OMXMLParserWrapper builder,
-            SOAPFactory factory) {
+                               SOAPFactory factory) {
         super(parent, builder, factory);
     }
 
@@ -46,7 +46,7 @@
         if (!(parent instanceof SOAP11FaultImpl)) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.1 implementation of SOAP Fault as the " +
-                    "parent. But received some other implementation");
+                            "parent. But received some other implementation");
         }
     }
 
@@ -64,10 +64,10 @@
                     new StreamWriterToContentHandlerConverter(writer));
         }
 
-        OMSerializerUtil.serializeStartpart(this, 
-        		SOAP11Constants.SOAP_FAULT_ACTOR_LOCAL_NAME, 
-        		writer);
-       
+        OMSerializerUtil.serializeStartpart(this,
+                                            SOAP11Constants.SOAP_FAULT_ACTOR_LOCAL_NAME,
+                                            writer);
+
         String text = this.getText();
         writer.writeCharacters(text);
         writer.writeEndElement();

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultSubCodeImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultSubCodeImpl.java?view=diff&rev=515594&r1=515593&r2=515594
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultSubCodeImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultSubCodeImpl.java Wed Mar  7 06:59:00 2007
@@ -27,7 +27,7 @@
 import org.apache.axiom.soap.impl.dom.SOAPFaultSubCodeImpl;
 
 public class SOAP11FaultSubCodeImpl extends SOAPFaultSubCodeImpl {
-	
+
     //changed
     public SOAP11FaultSubCodeImpl(SOAPFaultCode parent, SOAPFactory factory)
             throws SOAPProcessingException {
@@ -39,7 +39,7 @@
                                   OMXMLParserWrapper builder,
                                   SOAPFactory factory) {
         super(parent, SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME, builder,
-                factory);
+              factory);
     }
 
     public SOAP11FaultSubCodeImpl(SOAPFaultSubCode parent, SOAPFactory factory)
@@ -51,7 +51,7 @@
                                   OMXMLParserWrapper builder,
                                   SOAPFactory factory) {
         super(parent, SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME, builder,
-                factory);
+              factory);
     }
 
     protected void checkParent(OMElement parent) throws SOAPProcessingException {
@@ -65,11 +65,11 @@
 
     public void setSubCode(SOAPFaultSubCode subCode)
             throws SOAPProcessingException {
-        if (!((parentNode instanceof SOAP11FaultSubCodeImpl) || 
+        if (!((parentNode instanceof SOAP11FaultSubCodeImpl) ||
                 (parentNode instanceof SOAP11FaultCodeImpl))) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.1 implementation of SOAP Fault Sub " +
-                    "Code. But received some other implementation");
+                            "Code. But received some other implementation");
         }
         super.setSubCode(subCode);
     }
@@ -79,7 +79,7 @@
         if (!(soapFaultSubCodeValue instanceof SOAP11FaultValueImpl)) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.1 implementation of SOAP Fault Value. " +
-                    "But received some other implementation");
+                            "But received some other implementation");
         }
         super.setValue(soapFaultSubCodeValue);
     }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultTextImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultTextImpl.java?view=diff&rev=515594&r1=515593&r2=515594
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultTextImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultTextImpl.java Wed Mar  7 06:59:00 2007
@@ -23,14 +23,14 @@
 import org.apache.axiom.soap.SOAPProcessingException;
 import org.apache.axiom.soap.impl.dom.SOAPFaultTextImpl;
 
-public class SOAP11FaultTextImpl extends SOAPFaultTextImpl  {
+public class SOAP11FaultTextImpl extends SOAPFaultTextImpl {
     public SOAP11FaultTextImpl(SOAPFaultReason parent, SOAPFactory factory)
             throws SOAPProcessingException {
         super(parent, factory);
     }
 
     public SOAP11FaultTextImpl(SOAPFaultReason parent,
-            OMXMLParserWrapper builder, SOAPFactory factory) {
+                               OMXMLParserWrapper builder, SOAPFactory factory) {
         super(parent, builder, factory);
     }
 
@@ -38,7 +38,7 @@
         if (!(parent instanceof SOAP11FaultReasonImpl)) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.1 implementation of SOAP FaultReason " +
-                    "as the parent. But received some other implementation");
+                            "as the parent. But received some other implementation");
         }
     }
 }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultValueImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultValueImpl.java?view=diff&rev=515594&r1=515593&r2=515594
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultValueImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultValueImpl.java Wed Mar  7 06:59:00 2007
@@ -23,14 +23,14 @@
 import org.apache.axiom.soap.impl.dom.SOAPFaultValueImpl;
 
 public class SOAP11FaultValueImpl extends SOAPFaultValueImpl {
-    
+
     public SOAP11FaultValueImpl(OMElement parent, SOAPFactory factory)
             throws SOAPProcessingException {
         super(parent, factory);
     }
 
     public SOAP11FaultValueImpl(OMElement parent, OMXMLParserWrapper builder,
-            SOAPFactory factory) {
+                                SOAPFactory factory) {
         super(parent, builder, factory);
     }
 
@@ -40,9 +40,9 @@
                 (parent instanceof SOAP11FaultCodeImpl))) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.1 implementation of SOAP FaultSubCode " +
-                    "or SOAP FaultCode as the parent. But received some other" +
-                    " implementation." +
-                    parent.getClass());
+                            "or SOAP FaultCode as the parent. But received some other" +
+                            " implementation." +
+                            parent.getClass());
         }
     }
 }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11HeaderBlockImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11HeaderBlockImpl.java?view=diff&rev=515594&r1=515593&r2=515594
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11HeaderBlockImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11HeaderBlockImpl.java Wed Mar  7 06:59:00 2007
@@ -42,7 +42,7 @@
     public SOAP11HeaderBlockImpl(String localName, OMNamespace ns, SOAPFactory factory) {
         super(localName, ns, factory);
     }
-    
+
     /**
      * Constructor SOAPHeaderBlockImpl
      *
@@ -69,31 +69,31 @@
 
     public void setRole(String roleURI) {
         setAttribute(SOAP11Constants.ATTR_ACTOR,
-                roleURI,
-                SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
+                     roleURI,
+                     SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
 
     }
 
     public String getRole() {
         return getAttribute(SOAP11Constants.ATTR_ACTOR,
-                SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
+                            SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
     }
 
     //TODO : implement
     public void setRelay(boolean relay) {
-    	throw new UnsupportedOperationException("Not supported for SOAP 1.1");
+        throw new UnsupportedOperationException("Not supported for SOAP 1.1");
     }
 
     //TODO : implement
     public boolean getRelay() {
-    	throw new UnsupportedOperationException("Not supported for SOAP 1.1");
+        throw new UnsupportedOperationException("Not supported for SOAP 1.1");
     }
 
-    
+
     public void setMustUnderstand(boolean mustUnderstand) {
         setAttribute(SOAPConstants.ATTR_MUSTUNDERSTAND,
-                mustUnderstand ? "1" : "0",
-                SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
+                     mustUnderstand ? "1" : "0",
+                     SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
     }
 
     public void setMustUnderstand(String mustUnderstand) throws SOAPProcessingException {
@@ -102,8 +102,8 @@
                 SOAPConstants.ATTR_MUSTUNDERSTAND_0.equals(mustUnderstand) ||
                 SOAPConstants.ATTR_MUSTUNDERSTAND_1.equals(mustUnderstand)) {
             setAttribute(SOAPConstants.ATTR_MUSTUNDERSTAND,
-                    mustUnderstand,
-                    SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
+                         mustUnderstand,
+                         SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
         } else {
             throw new SOAPProcessingException(
                     "mustUndertand should be one of \"true\", \"false\", \"0\" or \"1\" ");
@@ -111,18 +111,17 @@
     }
 
     /**
-     * Returns whether the mustUnderstand attribute for this
-     * <CODE>SOAPHeaderBlock</CODE> object is turned on.
+     * Returns whether the mustUnderstand attribute for this <CODE>SOAPHeaderBlock</CODE> object is
+     * turned on.
      *
-     * @return <CODE>true</CODE> if the mustUnderstand attribute of
-     *         this <CODE>SOAPHeaderBlock</CODE> object is turned on;
-     *         <CODE>false</CODE> otherwise
+     * @return <CODE>true</CODE> if the mustUnderstand attribute of this
+     *         <CODE>SOAPHeaderBlock</CODE> object is turned on; <CODE>false</CODE> otherwise
      */
     public boolean getMustUnderstand() throws SOAPProcessingException {
         String mustUnderstand = "";
         if ((mustUnderstand =
                 getAttribute(SOAPConstants.ATTR_MUSTUNDERSTAND,
-                        SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI))
+                             SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI))
                 != null) {
             if (SOAPConstants.ATTR_MUSTUNDERSTAND_TRUE.equalsIgnoreCase(
                     mustUnderstand) ||
@@ -137,8 +136,8 @@
             } else {
                 throw new SOAPProcessingException(
                         "Invalid value found in mustUnderstand value of " +
-                        this.getLocalName() +
-                        " header block");
+                                this.getLocalName() +
+                                " header block");
             }
         }
         return false;

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11HeaderImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11HeaderImpl.java?view=diff&rev=515594&r1=515593&r2=515594
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11HeaderImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11HeaderImpl.java Wed Mar  7 06:59:00 2007
@@ -32,11 +32,9 @@
 import java.util.Iterator;
 
 public class SOAP11HeaderImpl extends SOAPHeaderImpl {
-      
-    
-    /**
-     * @param envelope
-     */
+
+
+    /** @param envelope  */
     public SOAP11HeaderImpl(SOAPEnvelope envelope, SOAPFactory factory)
             throws SOAPProcessingException {
         super(envelope, factory);
@@ -49,7 +47,7 @@
      * @param builder
      */
     public SOAP11HeaderImpl(SOAPEnvelope envelope, OMXMLParserWrapper builder,
-            SOAPFactory factory) {
+                            SOAPFactory factory) {
         super(envelope, builder, factory);
     }
 
@@ -68,20 +66,21 @@
         SOAPHeaderBlock soapHeaderBlock = null;
         try {
             soapHeaderBlock = new SOAP11HeaderBlockImpl(localName, ns, this,
-                    (SOAPFactory)this.factory);
+                                                        (SOAPFactory) this.factory);
         } catch (SOAPProcessingException e) {
             throw new OMException(e);
         }
-        ((OMNodeEx)soapHeaderBlock).setComplete(true);
+        ((OMNodeEx) soapHeaderBlock).setComplete(true);
         return soapHeaderBlock;
     }
 
     public Iterator extractHeaderBlocks(String role) {
         return new OMChildrenWithSpecificAttributeIterator(getFirstOMChild(),
-                new QName(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
-                        SOAP11Constants.ATTR_ACTOR),
-                role,
-                true);
+                                                           new QName(
+                                                                   SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
+                                                                   SOAP11Constants.ATTR_ACTOR),
+                                                           role,
+                                                           true);
 
     }
 

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12BodyImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12BodyImpl.java?view=diff&rev=515594&r1=515593&r2=515594
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12BodyImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12BodyImpl.java Wed Mar  7 06:59:00 2007
@@ -25,9 +25,7 @@
 import org.apache.axiom.soap.impl.dom.SOAPBodyImpl;
 
 public class SOAP12BodyImpl extends SOAPBodyImpl {
-    /**
-     * @param envelope
-     */
+    /** @param envelope  */
     public SOAP12BodyImpl(SOAPEnvelope envelope, SOAPFactory factory)
             throws SOAPProcessingException {
         super(envelope, factory);
@@ -40,13 +38,13 @@
      * @param builder
      */
     public SOAP12BodyImpl(SOAPEnvelope envelope, OMXMLParserWrapper builder,
-            SOAPFactory factory) {
+                          SOAPFactory factory) {
         super(envelope, builder, factory);
     }
 
     public SOAPFault addFault(Exception e) throws OMException {
         SOAPFault soapFault = new SOAP12FaultImpl(this, e,
-                (SOAPFactory) this.factory);
+                                                  (SOAPFactory) this.factory);
         this.hasSOAPFault = true;
         return soapFault;
     }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12Factory.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12Factory.java?view=diff&rev=515594&r1=515593&r2=515594
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12Factory.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12Factory.java Wed Mar  7 06:59:00 2007
@@ -37,16 +37,16 @@
 import org.apache.axiom.soap.SOAPProcessingException;
 import org.apache.axiom.soap.impl.dom.SOAPEnvelopeImpl;
 import org.apache.axiom.soap.impl.dom.factory.DOMSOAPFactory;
-import org.apache.axiom.soap.impl.dom.soap11.SOAP11FaultImpl;
 
 public class SOAP12Factory extends DOMSOAPFactory {
-	
-	public SOAP12Factory() {}
-	
-	public SOAP12Factory(DocumentImpl doc) {
-		super(doc);
-	}
-	
+
+    public SOAP12Factory() {
+    }
+
+    public SOAP12Factory(DocumentImpl doc) {
+        super(doc);
+    }
+
     public String getSoapVersionURI() {
         return SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI;
     }
@@ -67,8 +67,9 @@
                                        OMXMLParserWrapper builder) {
         return new SOAP12HeaderImpl(envelope, builder, this);
     }
-    
-    public SOAPHeaderBlock createSOAPHeaderBlock(String localName, OMNamespace ns) throws SOAPProcessingException {
+
+    public SOAPHeaderBlock createSOAPHeaderBlock(String localName, OMNamespace ns)
+            throws SOAPProcessingException {
         return new SOAP12HeaderBlockImpl(localName, ns, this);
     }
 
@@ -81,7 +82,8 @@
     public SOAPHeaderBlock createSOAPHeaderBlock(String localName,
                                                  OMNamespace ns,
                                                  SOAPHeader parent,
-                                                 OMXMLParserWrapper builder) throws SOAPProcessingException {
+                                                 OMXMLParserWrapper builder)
+            throws SOAPProcessingException {
         return new SOAP12HeaderBlockImpl(localName, ns, parent, builder, this);
     }
 
@@ -116,7 +118,8 @@
         return new SOAP12FaultCodeImpl(parent, builder, this);
     }
 
-    public SOAPFaultValue createSOAPFaultValue(SOAPFaultCode parent) throws SOAPProcessingException {
+    public SOAPFaultValue createSOAPFaultValue(SOAPFaultCode parent)
+            throws SOAPProcessingException {
         return new SOAP12FaultValueImpl(parent, this);
     }
 
@@ -126,7 +129,8 @@
     }
 
     //added
-    public SOAPFaultValue createSOAPFaultValue(SOAPFaultSubCode parent) throws SOAPProcessingException {
+    public SOAPFaultValue createSOAPFaultValue(SOAPFaultSubCode parent)
+            throws SOAPProcessingException {
         return new SOAP12FaultValueImpl(parent, this);
     }
 
@@ -137,7 +141,8 @@
     }
 
     //changed
-    public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultCode parent) throws SOAPProcessingException {
+    public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultCode parent)
+            throws SOAPProcessingException {
         return new SOAP12FaultSubCodeImpl(parent, this);
     }
 
@@ -147,7 +152,8 @@
         return new SOAP12FaultSubCodeImpl(parent, builder, this);
     }
 
-    public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultSubCode parent) throws SOAPProcessingException {
+    public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultSubCode parent)
+            throws SOAPProcessingException {
         return new SOAP12FaultSubCodeImpl(parent, this);
     }
 
@@ -165,7 +171,8 @@
         return new SOAP12FaultReasonImpl(parent, builder, this);
     }
 
-    public SOAPFaultText createSOAPFaultText(SOAPFaultReason parent) throws SOAPProcessingException {
+    public SOAPFaultText createSOAPFaultText(SOAPFaultReason parent)
+            throws SOAPProcessingException {
         return new SOAP12FaultTextImpl(parent, this);
     }
 
@@ -213,9 +220,9 @@
         return env;
     }
 
-	public SOAPFault createSOAPFault() throws SOAPProcessingException {
-		return new SOAP12FaultImpl(this.getDefaultEnvelope().getBody(),this);
-	}
-    
+    public SOAPFault createSOAPFault() throws SOAPProcessingException {
+        return new SOAP12FaultImpl(this.getDefaultEnvelope().getBody(), this);
+    }
+
 
 }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultCodeImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultCodeImpl.java?view=diff&rev=515594&r1=515593&r2=515594
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultCodeImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultCodeImpl.java Wed Mar  7 06:59:00 2007
@@ -33,13 +33,11 @@
      * @param builder
      */
     public SOAP12FaultCodeImpl(SOAPFault parent, OMXMLParserWrapper builder,
-            SOAPFactory factory) {
+                               SOAPFactory factory) {
         super(parent, builder, factory);
     }
 
-    /**
-     * @param parent
-     */
+    /** @param parent  */
     public SOAP12FaultCodeImpl(SOAPFault parent, SOAPFactory factory)
             throws SOAPProcessingException {
         super(parent, true, factory);
@@ -51,7 +49,7 @@
         if (!(subCode instanceof SOAP12FaultSubCodeImpl)) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.2 implementation of SOAP Fault " +
-                    "Sub Code. But received some other implementation");
+                            "Sub Code. But received some other implementation");
         }
         super.setSubCode(subCode);
     }
@@ -60,7 +58,7 @@
         if (!(value instanceof SOAP12FaultValueImpl)) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.2 implementation of SOAP Fault Value. " +
-                    "But received some other implementation");
+                            "But received some other implementation");
         }
         super.setValue(value);
     }
@@ -69,7 +67,7 @@
         if (!(parent instanceof SOAP12FaultImpl)) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.2 implementation of SOAP Fault as " +
-                    "the parent. But received some other implementation");
+                            "the parent. But received some other implementation");
         }
     }
 }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultDetailImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultDetailImpl.java?view=diff&rev=515594&r1=515593&r2=515594
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultDetailImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultDetailImpl.java Wed Mar  7 06:59:00 2007
@@ -24,14 +24,14 @@
 import org.apache.axiom.soap.impl.dom.SOAPFaultDetailImpl;
 
 public class SOAP12FaultDetailImpl extends SOAPFaultDetailImpl {
-    
+
     public SOAP12FaultDetailImpl(SOAPFault parent, SOAPFactory factory)
             throws SOAPProcessingException {
         super(parent, true, factory);
     }
 
     public SOAP12FaultDetailImpl(SOAPFault parent, OMXMLParserWrapper builder,
-            SOAPFactory factory) {
+                                 SOAPFactory factory) {
         super(parent, builder, factory);
     }
 
@@ -39,7 +39,7 @@
         if (!(parent instanceof SOAP12FaultImpl)) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.2 implementation of SOAP Fault as the " +
-                    "parent. But received some other implementation");
+                            "parent. But received some other implementation");
         }
     }
 }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultImpl.java?view=diff&rev=515594&r1=515593&r2=515594
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultImpl.java Wed Mar  7 06:59:00 2007
@@ -18,7 +18,6 @@
 
 import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMXMLParserWrapper;
-import org.apache.axiom.om.impl.OMNodeEx;
 import org.apache.axiom.soap.SOAPBody;
 import org.apache.axiom.soap.SOAPFactory;
 import org.apache.axiom.soap.SOAPFault;
@@ -55,7 +54,7 @@
     }
 
     protected SOAPFaultDetail getNewSOAPFaultDetail(SOAPFault fault) {
-        return new SOAP12FaultDetailImpl(fault, (SOAPFactory)this.factory);
+        return new SOAP12FaultDetailImpl(fault, (SOAPFactory) this.factory);
 
     }
 
@@ -63,7 +62,7 @@
         if (!(soapFaultCode instanceof SOAP12FaultCodeImpl)) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.2 implementation of SOAP Fault Code. " +
-                    "But received some other implementation");
+                            "But received some other implementation");
         }
         super.setCode(soapFaultCode);
     }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultNodeImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultNodeImpl.java?view=diff&rev=515594&r1=515593&r2=515594
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultNodeImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultNodeImpl.java Wed Mar  7 06:59:00 2007
@@ -30,7 +30,7 @@
     }
 
     public SOAP12FaultNodeImpl(SOAPFault parent, OMXMLParserWrapper builder,
-            SOAPFactory factory) {
+                               SOAPFactory factory) {
         super(parent, builder, factory);
     }
 
@@ -38,7 +38,7 @@
         if (!(parent instanceof SOAP12FaultImpl)) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.2 implementation of SOAP Fault as the " +
-                    "parent. But received some other implementation");
+                            "parent. But received some other implementation");
         }
     }
 }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultReasonImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultReasonImpl.java?view=diff&rev=515594&r1=515593&r2=515594
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultReasonImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultReasonImpl.java Wed Mar  7 06:59:00 2007
@@ -31,9 +31,7 @@
         super(parent, builder, factory);
     }
 
-    /**
-     * @param parent
-     */
+    /** @param parent  */
     public SOAP12FaultReasonImpl(SOAPFault parent, SOAPFactory factory)
             throws SOAPProcessingException {
         super(parent, true, factory);
@@ -44,7 +42,7 @@
         if (!(soapFaultText instanceof SOAP12FaultTextImpl)) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.2 implementation of SOAP Fault Text. " +
-                    "But received some other implementation");
+                            "But received some other implementation");
         }
         super.addSOAPText(soapFaultText);
     }
@@ -53,7 +51,7 @@
         if (!(parent instanceof SOAP12FaultImpl)) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.2 implementation of SOAP Fault as the " +
-                    "parent. But received some other implementation");
+                            "parent. But received some other implementation");
         }
     }
 }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultRoleImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultRoleImpl.java?view=diff&rev=515594&r1=515593&r2=515594
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultRoleImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultRoleImpl.java Wed Mar  7 06:59:00 2007
@@ -25,14 +25,14 @@
 import org.apache.axiom.soap.impl.dom.SOAPFaultRoleImpl;
 
 public class SOAP12FaultRoleImpl extends SOAPFaultRoleImpl {
-    
+
     public SOAP12FaultRoleImpl(SOAPFault parent, SOAPFactory factory)
             throws SOAPProcessingException {
         super(parent, SOAP12Constants.SOAP_FAULT_ROLE_LOCAL_NAME, true, factory);
     }
 
     public SOAP12FaultRoleImpl(SOAPFault parent, OMXMLParserWrapper builder,
-            SOAPFactory factory) {
+                               SOAPFactory factory) {
         super(parent, builder, factory);
     }
 
@@ -40,7 +40,7 @@
         if (!(parent instanceof SOAP12FaultImpl)) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.2 implementation of SOAP Fault as the " +
-                    "parent. But received some other implementation");
+                            "parent. But received some other implementation");
         }
     }
 }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultSubCodeImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultSubCodeImpl.java?view=diff&rev=515594&r1=515593&r2=515594
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultSubCodeImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultSubCodeImpl.java Wed Mar  7 06:59:00 2007
@@ -38,7 +38,7 @@
                                   OMXMLParserWrapper builder,
                                   SOAPFactory factory) {
         super(parent, SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME, builder,
-                factory);
+              factory);
     }
 
     public SOAP12FaultSubCodeImpl(SOAPFaultSubCode parent, SOAPFactory factory)
@@ -50,7 +50,7 @@
                                   OMXMLParserWrapper builder,
                                   SOAPFactory factory) {
         super(parent, SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME, builder,
-                factory);
+              factory);
     }
 
     protected void checkParent(OMElement parent) throws SOAPProcessingException {
@@ -58,8 +58,8 @@
                 (parent instanceof SOAP12FaultCodeImpl))) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.2 implementation of SOAP FaultSubCode " +
-                    "or SOAP FaultCodeValue as the parent. But received some " +
-                    "other implementation");
+                            "or SOAP FaultCodeValue as the parent. But received some " +
+                            "other implementation");
         }
     }
 
@@ -67,7 +67,7 @@
         if (!(subCode instanceof SOAP12FaultSubCodeImpl)) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.2 implementation of SOAP Fault " +
-                    "Sub Code. But received some other implementation");
+                            "Sub Code. But received some other implementation");
         }
         super.setSubCode(subCode);
     }
@@ -77,7 +77,7 @@
         if (!(soapFaultSubCodeValue instanceof SOAP12FaultValueImpl)) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.2 implementation of SOAP Fault Value. " +
-                    "But received some other implementation");
+                            "But received some other implementation");
         }
         super.setValue(soapFaultSubCodeValue);
     }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultTextImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultTextImpl.java?view=diff&rev=515594&r1=515593&r2=515594
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultTextImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultTextImpl.java Wed Mar  7 06:59:00 2007
@@ -24,8 +24,9 @@
 import org.apache.axiom.soap.impl.dom.SOAPFaultTextImpl;
 
 public class SOAP12FaultTextImpl extends SOAPFaultTextImpl {
-    
-    public SOAP12FaultTextImpl(SOAPFaultReason parent, SOAPFactory factory) throws SOAPProcessingException {
+
+    public SOAP12FaultTextImpl(SOAPFaultReason parent, SOAPFactory factory)
+            throws SOAPProcessingException {
         super(parent, factory);
     }
 
@@ -39,7 +40,7 @@
         if (!(parent instanceof SOAP12FaultReasonImpl)) {
             throw new SOAPProcessingException(
                     "Expecting SOAP 1.2 implementation of SOAP FaultReason " +
-                    "as the parent. But received some other implementation");
+                            "as the parent. But received some other implementation");
         }
     }
 }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultValueImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultValueImpl.java?view=diff&rev=515594&r1=515593&r2=515594
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultValueImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultValueImpl.java Wed Mar  7 06:59:00 2007
@@ -23,8 +23,9 @@
 import org.apache.axiom.soap.impl.dom.SOAPFaultValueImpl;
 
 public class SOAP12FaultValueImpl extends SOAPFaultValueImpl {
-    
-    public SOAP12FaultValueImpl(OMElement parent, SOAPFactory factory) throws SOAPProcessingException {
+
+    public SOAP12FaultValueImpl(OMElement parent, SOAPFactory factory)
+            throws SOAPProcessingException {
         super(parent, factory);
     }
 

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12HeaderBlockImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12HeaderBlockImpl.java?view=diff&rev=515594&r1=515593&r2=515594
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12HeaderBlockImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12HeaderBlockImpl.java Wed Mar  7 06:59:00 2007
@@ -38,7 +38,7 @@
         super(localName, ns, parent, factory);
         checkParent(parent);
     }
-    
+
     public SOAP12HeaderBlockImpl(String localName, OMNamespace ns, SOAPFactory factory) {
         super(localName, ns, factory);
     }
@@ -69,20 +69,21 @@
 
     public void setRole(String roleURI) {
         setAttribute(SOAP12Constants.SOAP_ROLE,
-                roleURI,
-                SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
+                     roleURI,
+                     SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
     }
 
     public String getRole() {
         return getAttribute(SOAP12Constants.SOAP_ROLE,
-                SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
+                            SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
 
     }
 
     public void setMustUnderstand(boolean mustUnderstand) {
         setAttribute(SOAPConstants.ATTR_MUSTUNDERSTAND,
-                mustUnderstand ? SOAPConstants.ATTR_MUSTUNDERSTAND_TRUE : SOAPConstants.ATTR_MUSTUNDERSTAND_FALSE,
-                SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
+                     mustUnderstand ? SOAPConstants.ATTR_MUSTUNDERSTAND_TRUE :
+                             SOAPConstants.ATTR_MUSTUNDERSTAND_FALSE,
+                     SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
 
     }
 
@@ -92,8 +93,8 @@
                 SOAPConstants.ATTR_MUSTUNDERSTAND_0.equals(mustUnderstand) ||
                 SOAPConstants.ATTR_MUSTUNDERSTAND_1.equals(mustUnderstand)) {
             setAttribute(SOAPConstants.ATTR_MUSTUNDERSTAND,
-                    mustUnderstand,
-                    SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
+                         mustUnderstand,
+                         SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
         } else {
             throw new SOAPProcessingException(
                     "mustUndertand should be one of \"true\", \"false\", \"0\" or \"1\" ");
@@ -104,7 +105,7 @@
         String mustUnderstand = "";
         if ((mustUnderstand =
                 getAttribute(SOAPConstants.ATTR_MUSTUNDERSTAND,
-                        SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI))
+                             SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI))
                 != null) {
             if (SOAPConstants.ATTR_MUSTUNDERSTAND_TRUE.equalsIgnoreCase(
                     mustUnderstand) ||
@@ -119,24 +120,25 @@
             } else {
                 throw new SOAPProcessingException(
                         "Invalid value found in mustUnderstand value of " +
-                        this.getLocalName() +
-                        " header block");
+                                this.getLocalName() +
+                                " header block");
             }
         }
         return false;
 
     }
-    
+
     public void setRelay(boolean relay) {
         setAttribute(SOAP12Constants.SOAP_RELAY,
-                String.valueOf(relay),
-                SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
-    }    
+                     String.valueOf(relay),
+                     SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
+    }
 
     public boolean getRelay() {
         return Boolean.valueOf(getAttribute(SOAP12Constants.SOAP_RELAY,
-                SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI)).booleanValue();
+                                            SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI))
+                .booleanValue();
 
     }
-    
+
 }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12HeaderImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12HeaderImpl.java?view=diff&rev=515594&r1=515593&r2=515594
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12HeaderImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12HeaderImpl.java Wed Mar  7 06:59:00 2007
@@ -32,9 +32,7 @@
 import java.util.Iterator;
 
 public class SOAP12HeaderImpl extends SOAPHeaderImpl {
-    /**
-     * @param envelope
-     */
+    /** @param envelope  */
     public SOAP12HeaderImpl(SOAPEnvelope envelope, SOAPFactory factory)
             throws SOAPProcessingException {
         super(envelope, factory);
@@ -47,7 +45,7 @@
      * @param builder
      */
     public SOAP12HeaderImpl(SOAPEnvelope envelope, OMXMLParserWrapper builder,
-            SOAPFactory factory) {
+                            SOAPFactory factory) {
         super(envelope, builder, factory);
     }
 
@@ -65,20 +63,21 @@
         SOAPHeaderBlock soapHeaderBlock = null;
         try {
             soapHeaderBlock = new SOAP12HeaderBlockImpl(localName, ns, this,
-                    (SOAPFactory)this.factory);
+                                                        (SOAPFactory) this.factory);
         } catch (SOAPProcessingException e) {
             throw new OMException(e);
         }
-        ((OMNodeEx)soapHeaderBlock).setComplete(true);
+        ((OMNodeEx) soapHeaderBlock).setComplete(true);
         return soapHeaderBlock;
     }
 
 
     public Iterator extractHeaderBlocks(String role) {
         return new OMChildrenWithSpecificAttributeIterator(getFirstOMChild(),
-                new QName(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI,
-                        SOAP12Constants.SOAP_ROLE),
-                role,
-                true);
+                                                           new QName(
+                                                                   SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI,
+                                                                   SOAP12Constants.SOAP_ROLE),
+                                                           role,
+                                                           true);
     }
 }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMAttributeImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMAttributeImpl.java?view=diff&rev=515594&r1=515593&r2=515594
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMAttributeImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMAttributeImpl.java Wed Mar  7 06:59:00 2007
@@ -22,28 +22,18 @@
 
 import javax.xml.namespace.QName;
 
-/**
- * Class OMAttributeImpl
- */
+/** Class OMAttributeImpl */
 public class OMAttributeImpl implements OMAttribute {
-    /**
-     * Field localName
-     */
+    /** Field localName */
     private String localName;
 
-    /**
-     * Field value
-     */
+    /** Field value */
     private String value;
 
-    /**
-     * Field namespace
-     */
+    /** Field namespace */
     private OMNamespace namespace;
-    
-    /**
-     * <code>OMFactory</code> that created this <code>OMAttribute</code>
-     */
+
+    /** <code>OMFactory</code> that created this <code>OMAttribute</code> */
     private OMFactory factory;
 
     /**
@@ -53,22 +43,19 @@
      * @param ns
      * @param value
      */
-    public OMAttributeImpl(String localName, OMNamespace ns, String value, 
-            OMFactory factory) {
+    public OMAttributeImpl(String localName, OMNamespace ns, String value,
+                           OMFactory factory) {
         this.localName = localName;
         this.value = value;
-        this.namespace = ns; 
+        this.namespace = ns;
         this.factory = factory;
     }
 
-    /**
-     *
-     * @return Returns QName.
-     */
+    /** @return Returns QName. */
     public QName getQName() {
-        if(namespace != null){
+        if (namespace != null) {
             return new QName(namespace.getNamespaceURI(), localName, namespace.getPrefix());
-        }else{
+        } else {
             return new QName(localName);
         }
     }
@@ -132,5 +119,5 @@
     public OMFactory getOMFactory() {
         return this.factory;
     }
-    
+
 }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMCommentImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMCommentImpl.java?view=diff&rev=515594&r1=515593&r2=515594
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMCommentImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMCommentImpl.java Wed Mar  7 06:59:00 2007
@@ -16,7 +16,12 @@
 
 package org.apache.axiom.om.impl.llom;
 
-import org.apache.axiom.om.*;
+import org.apache.axiom.om.OMComment;
+import org.apache.axiom.om.OMContainer;
+import org.apache.axiom.om.OMElement;
+import org.apache.axiom.om.OMException;
+import org.apache.axiom.om.OMFactory;
+import org.apache.axiom.om.OMNode;
 
 import javax.xml.stream.XMLStreamException;
 import javax.xml.stream.XMLStreamWriter;
@@ -30,8 +35,8 @@
      * @param parentNode
      * @param contentText
      */
-    public OMCommentImpl(OMContainer parentNode, String contentText, 
-            OMFactory factory) {
+    public OMCommentImpl(OMContainer parentNode, String contentText,
+                         OMFactory factory) {
         super(parentNode, factory, true);
         this.value = contentText;
         nodeType = OMNode.COMMENT_NODE;

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMDocTypeImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMDocTypeImpl.java?view=diff&rev=515594&r1=515593&r2=515594
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMDocTypeImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMDocTypeImpl.java Wed Mar  7 06:59:00 2007
@@ -16,7 +16,12 @@
 
 package org.apache.axiom.om.impl.llom;
 
-import org.apache.axiom.om.*;
+import org.apache.axiom.om.OMContainer;
+import org.apache.axiom.om.OMDocType;
+import org.apache.axiom.om.OMElement;
+import org.apache.axiom.om.OMException;
+import org.apache.axiom.om.OMFactory;
+import org.apache.axiom.om.OMNode;
 
 import javax.xml.stream.XMLStreamException;
 import javax.xml.stream.XMLStreamWriter;
@@ -30,8 +35,8 @@
      * @param parentNode
      * @param contentText
      */
-    public OMDocTypeImpl(OMContainer parentNode, String contentText, 
-            OMFactory factory) {
+    public OMDocTypeImpl(OMContainer parentNode, String contentText,
+                         OMFactory factory) {
         super(parentNode, factory, true);
         this.value = contentText;
         nodeType = OMNode.DTD_NODE;

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMDocumentImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMDocumentImpl.java?view=diff&rev=515594&r1=515593&r2=515594
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMDocumentImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMDocumentImpl.java Wed Mar  7 06:59:00 2007
@@ -16,7 +16,13 @@
 
 package org.apache.axiom.om.impl.llom;
 
-import org.apache.axiom.om.*;
+import org.apache.axiom.om.OMDocument;
+import org.apache.axiom.om.OMElement;
+import org.apache.axiom.om.OMException;
+import org.apache.axiom.om.OMFactory;
+import org.apache.axiom.om.OMNode;
+import org.apache.axiom.om.OMOutputFormat;
+import org.apache.axiom.om.OMXMLParserWrapper;
 import org.apache.axiom.om.impl.MTOMXMLStreamWriter;
 import org.apache.axiom.om.impl.OMContainerEx;
 import org.apache.axiom.om.impl.OMNodeEx;
@@ -29,53 +35,34 @@
 import java.io.OutputStream;
 import java.util.Iterator;
 
-/**
- * Class OMDocumentImpl
- */
+/** Class OMDocumentImpl */
 public class OMDocumentImpl implements OMDocument, OMContainerEx {
-    /**
-     * Field documentElement
-     */
+    /** Field documentElement */
     protected OMElement documentElement;
 
-    /**
-     * Field firstChild
-     */
+    /** Field firstChild */
     protected OMNode firstChild;
 
-    /**
-     * Field lastChild
-     */
+    /** Field lastChild */
     protected OMNode lastChild;
 
-    /**
-     * Field done
-     */
+    /** Field done */
     protected boolean done = false;
 
-    /**
-     * Field parserWrapper
-     */
+    /** Field parserWrapper */
     protected OMXMLParserWrapper parserWrapper;
 
-    /**
-     * Field charSetEncoding
-     * Default : UTF-8
-     */
+    /** Field charSetEncoding Default : UTF-8 */
     protected String charSetEncoding = "UTF-8";
 
-    /**
-     * Field xmlVersion
-     */
+    /** Field xmlVersion */
     protected String xmlVersion = "1.0";
 
     protected String isStandalone;
 
     protected OMFactory factory;
-    
-    /**
-     * Default constructor
-     */
+
+    /** Default constructor */
     public OMDocumentImpl() {
         this.done = true;
     }
@@ -89,15 +76,14 @@
         this.parserWrapper = parserWrapper;
     }
 
-    /**
-     * @param parserWrapper
-     */
+    /** @param parserWrapper  */
     public OMDocumentImpl(OMXMLParserWrapper parserWrapper) {
         this.parserWrapper = parserWrapper;
     }
 
     /**
      * Create a <code>OMDocument</code> given the <code>OMFactory</code>
+     *
      * @param factory The <code>OMFactory</code> that created this instace
      */
     public OMDocumentImpl(OMFactory factory) {
@@ -107,6 +93,7 @@
 
     /**
      * Create the <code>OMDocument</code> with the factory
+     *
      * @param parserWrapper
      * @param factory
      */
@@ -114,20 +101,22 @@
         this(parserWrapper);
         this.factory = factory;
     }
-    
+
     /**
-     * Create the <code>OMDoucment</code> with the factory and set the given 
-     * <code>OMElement</code> as the document element
+     * Create the <code>OMDoucment</code> with the factory and set the given <code>OMElement</code>
+     * as the document element
+     *
      * @param documentElement
      * @param parserWrapper
      * @param factory
      */
-    public OMDocumentImpl(OMElement documentElement, OMXMLParserWrapper parserWrapper, OMFactory factory) {
+    public OMDocumentImpl(OMElement documentElement, OMXMLParserWrapper parserWrapper,
+                          OMFactory factory) {
         this(documentElement, parserWrapper);
         this.factory = factory;
     }
 
-    
+
     /**
      * Method getDocumentElement.
      *
@@ -150,9 +139,9 @@
     }
 
     /**
-     * Indicates whether parser has parsed this information item completely or not.
-     * If some information is not available in the item, one has to check this 
-     * attribute to make sure that, this item has been parsed completely or not.
+     * Indicates whether parser has parsed this information item completely or not. If some
+     * information is not available in the item, one has to check this attribute to make sure that,
+     * this item has been parsed completely or not.
      *
      * @return Returns boolean.
      */
@@ -169,9 +158,7 @@
         this.done = state;
     }
 
-    /**
-     * Forces the parser to proceed, if parser has not yet finished with the XML input.
-     */
+    /** Forces the parser to proceed, if parser has not yet finished with the XML input. */
     public void buildNext() {
         if (parserWrapper != null && !parserWrapper.isCompleted()) {
             parserWrapper.next();
@@ -179,22 +166,22 @@
     }
 
     /**
-     * Adds child to the element. One can decide whether to append the child or to add to the
-     * front of the children list.
+     * Adds child to the element. One can decide whether to append the child or to add to the front
+     * of the children list.
      *
      * @param child
      */
     public void addChild(OMNode child) {
-    	if(child instanceof OMElement) {
-    		if(this.documentElement == null) {
-    			addChild((OMNodeImpl) child);
-    			this.documentElement = (OMElement)child;
-    		} else {
-    			throw new OMException("Document element already exists");
-    		}
-    	} else {
-    		addChild((OMNodeImpl) child);
-    	}
+        if (child instanceof OMElement) {
+            if (this.documentElement == null) {
+                addChild((OMNodeImpl) child);
+                this.documentElement = (OMElement) child;
+            } else {
+                throw new OMException("Document element already exists");
+            }
+        } else {
+            addChild((OMNodeImpl) child);
+        }
     }
 
     /**
@@ -208,7 +195,7 @@
             child.setPreviousOMSibling(null);
         } else {
             child.setPreviousOMSibling(lastChild);
-            ((OMNodeEx)lastChild).setNextOMSibling(child);
+            ((OMNodeEx) lastChild).setNextOMSibling(child);
         }
         child.setNextOMSibling(null);
         child.setParent(this);
@@ -217,8 +204,7 @@
     }
 
     /**
-     * Returns a collection of this element.
-     * Children can be of types OMElement, OMText.
+     * Returns a collection of this element. Children can be of types OMElement, OMText.
      *
      * @return Returns iterator.
      */
@@ -227,17 +213,17 @@
     }
 
     /**
-     * Searches for children with a given QName and returns an iterator to traverse through
-     * the OMNodes.
-     * The QName can contain any combination of prefix, localname and URI.
+     * Searches for children with a given QName and returns an iterator to traverse through the
+     * OMNodes. The QName can contain any combination of prefix, localname and URI.
      *
      * @param elementQName
      * @return Returns Iterator.
      * @throws org.apache.axiom.om.OMException
+     *
      */
     public Iterator getChildrenWithName(QName elementQName) {
         return new OMChildrenQNameIterator(getFirstOMChild(),
-                elementQName);
+                                           elementQName);
     }
 
     /**
@@ -262,7 +248,7 @@
     public OMElement getFirstChildWithName(QName elementQName) throws OMException {
         OMChildrenQNameIterator omChildrenQNameIterator =
                 new OMChildrenQNameIterator(getFirstOMChild(),
-                        elementQName);
+                                            elementQName);
         OMNode omNode = null;
         if (omChildrenQNameIterator.hasNext()) {
             omNode = (OMNode) omChildrenQNameIterator.next();
@@ -317,33 +303,28 @@
         this.xmlVersion = xmlVersion;
     }
 
-    /**
-     * Serialize the docuement with/without the XML declaration
-     */
-    public void internalSerializeAndConsume(XMLStreamWriter writer, boolean includeXMLDeclaration) throws XMLStreamException {
+    /** Serialize the docuement with/without the XML declaration */
+    public void internalSerializeAndConsume(XMLStreamWriter writer, boolean includeXMLDeclaration)
+            throws XMLStreamException {
         internalSerialize(writer, false, includeXMLDeclaration);
     }
 
-    /**
-     * Serializes the document with the XML declaration.
-     */
+    /** Serializes the document with the XML declaration. */
     public void internalSerializeAndConsume(XMLStreamWriter writer)
             throws XMLStreamException {
-        internalSerialize(writer, false, !((MTOMXMLStreamWriter)writer).isIgnoreXMLDeclaration());
+        internalSerialize(writer, false, !((MTOMXMLStreamWriter) writer).isIgnoreXMLDeclaration());
     }
 
 
-    /**
-     * Serializes the document with cache.
-     */
+    /** Serializes the document with cache. */
     public void internalSerialize(XMLStreamWriter writer) throws XMLStreamException {
-        internalSerialize(writer, true, !((MTOMXMLStreamWriter)writer).isIgnoreXMLDeclaration());
+        internalSerialize(writer, true, !((MTOMXMLStreamWriter) writer).isIgnoreXMLDeclaration());
 
     }
 
     /**
      * Serializes the document directly to the output stream with caching disabled.
-     * 
+     *
      * @param output
      * @throws XMLStreamException
      */
@@ -355,7 +336,7 @@
 
     /**
      * Serializes the document directly to the output stream with caching enabled.
-     * 
+     *
      * @param output
      * @throws XMLStreamException
      */
@@ -367,12 +348,13 @@
 
     /**
      * Serializes the document directly to the output stream with caching disabled.
-     * 
+     *
      * @param output
      * @param format
      * @throws XMLStreamException
      */
-    public void serializeAndConsume(OutputStream output, OMOutputFormat format) throws XMLStreamException {
+    public void serializeAndConsume(OutputStream output, OMOutputFormat format)
+            throws XMLStreamException {
         MTOMXMLStreamWriter writer = new MTOMXMLStreamWriter(output, format);
         internalSerializeAndConsume(writer);
         writer.flush();
@@ -380,7 +362,7 @@
 
     /**
      * Serializes the document directly to the output stream with caching enabled.
-     * 
+     *
      * @param output
      * @param format
      * @throws XMLStreamException
@@ -391,15 +373,15 @@
         writer.flush();
     }
 
-    /**
-     * Serializes the document with cache.
-     */
-    public void internalSerialize(XMLStreamWriter writer, boolean includeXMLDeclaration) throws XMLStreamException {
+    /** Serializes the document with cache. */
+    public void internalSerialize(XMLStreamWriter writer, boolean includeXMLDeclaration)
+            throws XMLStreamException {
         internalSerialize(writer, true, includeXMLDeclaration);
 
     }
 
-    protected void internalSerialize(XMLStreamWriter writer2, boolean cache, boolean includeXMLDeclaration) throws XMLStreamException {
+    protected void internalSerialize(XMLStreamWriter writer2, boolean cache,
+                                     boolean includeXMLDeclaration) throws XMLStreamException {
         MTOMXMLStreamWriter writer = (MTOMXMLStreamWriter) writer2;
         if (includeXMLDeclaration) {
             //Check whether the OMOutput char encoding and OMDocument char
@@ -407,10 +389,10 @@
             String outputCharEncoding = writer.getCharSetEncoding();
             if (outputCharEncoding == null || "".equals(outputCharEncoding)) {
                 writer.getXmlStreamWriter().writeStartDocument(charSetEncoding,
-                        xmlVersion);
+                                                               xmlVersion);
             } else {
                 writer.getXmlStreamWriter().writeStartDocument(outputCharEncoding,
-                        xmlVersion);
+                                                               xmlVersion);
             }
         }
 



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