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 [9/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/s...

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPBodyImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPBodyImpl.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/SOAPBodyImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPBodyImpl.java Wed Mar  7 06:59:00 2007
@@ -30,123 +30,115 @@
 import org.apache.axiom.soap.SOAPProcessingException;
 
 public abstract class SOAPBodyImpl extends SOAPElement implements SOAPBody,
-		OMConstants {
+        OMConstants {
 
-	/**
-	 * Field hasSOAPFault
-	 */
-	protected boolean hasSOAPFault = false;
-
-	/**
-	 * @param envelope
-	 */
-	public SOAPBodyImpl(SOAPEnvelope envelope, SOAPFactory factory)
+    /** Field hasSOAPFault */
+    protected boolean hasSOAPFault = false;
+
+    /** @param envelope  */
+    public SOAPBodyImpl(SOAPEnvelope envelope, SOAPFactory factory)
             throws SOAPProcessingException {
-		super(envelope, SOAPConstants.BODY_LOCAL_NAME, true, factory);
+        super(envelope, SOAPConstants.BODY_LOCAL_NAME, true, factory);
 
-	}
+    }
 
-	/**
-	 * Constructor SOAPBodyImpl
-	 *
-	 * @param envelope
-	 * @param builder
-	 */
-	public SOAPBodyImpl(SOAPEnvelope envelope, OMXMLParserWrapper builder,
-            SOAPFactory factory) {
-		super(envelope, SOAPConstants.BODY_LOCAL_NAME, builder, factory);
-	}
-
-	/**
-	 * Creates a new <code>SOAPFault</code> object and adds it to
-	 * this <code>SOAPBody</code> object.
-	 *
-	 * @param e
-	 * @return the new <code>SOAPFault</code> object
-	 * @throws org.apache.axiom.om.OMException
-	 *                     if there is a SOAP error
-	 * @throws OMException
-	 */
-	public abstract SOAPFault addFault(Exception e) throws OMException;
-
-	/**
-	 * Indicates whether a <code>SOAPFault</code> object exists in
-	 * this <code>SOAPBody</code> object.
-	 *
-	 * @return <code>true</code> if a <code>SOAPFault</code> object exists in
-	 *         this <code>SOAPBody</code> object; <code>false</code>
-	 *         otherwise
-	 */
-	public boolean hasFault() {
-		if (hasSOAPFault) {
-			return true;
-		} else {
-			OMElement element = getFirstElement();
-			if (element != null
-					&& SOAPConstants.SOAPFAULT_LOCAL_NAME.equals(element
-							.getLocalName())
-					&& (SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI
-							.equals(element.getNamespace().getNamespaceURI()) || SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI
-							.equals(element.getNamespace().getNamespaceURI()))) { //added this line
-				hasSOAPFault = true;
-				return true;
-			} else {
-				return false;
-			}
-		}
-	}
-
-	/**
-	 * Returns the <code>SOAPFault</code> object in this <code>SOAPBody</code>
-	 * object.
-	 *
-	 * @return the <code>SOAPFault</code> object in this <code>SOAPBody</code>
-	 *         object
-	 */
-	public SOAPFault getFault() {
-		OMElement element = getFirstElement();
-		if (hasSOAPFault) {
-			return (SOAPFault) element;
-		} else if (element != null
-				&& SOAPConstants.SOAPFAULT_LOCAL_NAME.equals(element
-						.getLocalName())
-				&& (SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(element
-						.getNamespace().getNamespaceURI()) || SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI
-						.equals(element.getNamespace().getNamespaceURI()))) { //added this line
-			hasSOAPFault = true;
-			return (SOAPFault) element;
-		} else {
-			return null;
-		}
-
-	}
-
-	/**
-	 * @param soapFault
-	 * @throws org.apache.axiom.om.OMException
-	 *
-	 * @throws OMException
-	 */
-	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");
-		}
-		addChild(soapFault);
-		hasSOAPFault = true;
-	}
-
-	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");
-		}
-	}
-
-	/*public OMNode detach() throws OMException {
-		throw new SOAPProcessingException(
-				"Can not detach SOAP Body, SOAP Envelope must have a Body !!");
-	}*/
+    /**
+     * Constructor SOAPBodyImpl
+     *
+     * @param envelope
+     * @param builder
+     */
+    public SOAPBodyImpl(SOAPEnvelope envelope, OMXMLParserWrapper builder,
+                        SOAPFactory factory) {
+        super(envelope, SOAPConstants.BODY_LOCAL_NAME, builder, factory);
+    }
+
+    /**
+     * Creates a new <code>SOAPFault</code> object and adds it to this <code>SOAPBody</code> object.
+     *
+     * @param e
+     * @return the new <code>SOAPFault</code> object
+     * @throws org.apache.axiom.om.OMException
+     *                     if there is a SOAP error
+     * @throws OMException
+     */
+    public abstract SOAPFault addFault(Exception e) throws OMException;
+
+    /**
+     * Indicates whether a <code>SOAPFault</code> object exists in this <code>SOAPBody</code> object.
+     *
+     * @return <code>true</code> if a <code>SOAPFault</code> object exists in this
+     *         <code>SOAPBody</code> object; <code>false</code> otherwise
+     */
+    public boolean hasFault() {
+        if (hasSOAPFault) {
+            return true;
+        } else {
+            OMElement element = getFirstElement();
+            if (element != null
+                    && SOAPConstants.SOAPFAULT_LOCAL_NAME.equals(element
+                    .getLocalName())
+                    && (SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI
+                    .equals(element.getNamespace().getNamespaceURI()) ||
+                    SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI
+                            .equals(element.getNamespace().getNamespaceURI()))) { //added this line
+                hasSOAPFault = true;
+                return true;
+            } else {
+                return false;
+            }
+        }
+    }
+
+    /**
+     * Returns the <code>SOAPFault</code> object in this <code>SOAPBody</code> object.
+     *
+     * @return the <code>SOAPFault</code> object in this <code>SOAPBody</code> object
+     */
+    public SOAPFault getFault() {
+        OMElement element = getFirstElement();
+        if (hasSOAPFault) {
+            return (SOAPFault) element;
+        } else if (element != null
+                && SOAPConstants.SOAPFAULT_LOCAL_NAME.equals(element
+                .getLocalName())
+                && (SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(element
+                .getNamespace().getNamespaceURI()) || SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI
+                .equals(element.getNamespace().getNamespaceURI()))) { //added this line
+            hasSOAPFault = true;
+            return (SOAPFault) element;
+        } else {
+            return null;
+        }
+
+    }
+
+    /**
+     * @param soapFault
+     * @throws org.apache.axiom.om.OMException
+     *
+     * @throws OMException
+     */
+    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");
+        }
+        addChild(soapFault);
+        hasSOAPFault = true;
+    }
+
+    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");
+        }
+    }
+
+    /*public OMNode detach() throws OMException {
+         throw new SOAPProcessingException(
+                 "Can not detach SOAP Body, SOAP Envelope must have a Body !!");
+     }*/
 }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPElement.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPElement.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/SOAPElement.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPElement.java Wed Mar  7 06:59:00 2007
@@ -32,18 +32,16 @@
         super(factory);
     }
 
-    /**
-     * @param parent
-     */
+    /** @param parent  */
     protected SOAPElement(OMElement parent,
                           String localName,
                           boolean extractNamespaceFromParent,
                           SOAPFactory factory) throws SOAPProcessingException {
-        super((ParentNode)parent, localName, null, factory);
+        super((ParentNode) parent, localName, null, factory);
         if (parent == null) {
             throw new SOAPProcessingException(
                     " Can not create " + localName +
-                    " element without a parent !!");
+                            " element without a parent !!");
         }
         checkParent(parent);
 
@@ -58,23 +56,20 @@
                           String localName,
                           OMXMLParserWrapper builder,
                           SOAPFactory factory) {
-        super((ParentNode)parent, localName, null, builder, factory);
+        super((ParentNode) parent, localName, null, builder, factory);
     }
 
     protected SOAPElement(DocumentImpl doc, String localName, OMNamespace ns,
-            SOAPFactory factory) {
-		super(doc, localName, (NamespaceImpl)ns, factory);
-	}
-    
+                          SOAPFactory factory) {
+        super(doc, localName, (NamespaceImpl) ns, factory);
+    }
+
     protected SOAPElement(DocumentImpl ownerDocument, String tagName,
-            NamespaceImpl ns, OMXMLParserWrapper builder, SOAPFactory factory) {
-    	super(ownerDocument, tagName, ns, builder, factory);
+                          NamespaceImpl ns, OMXMLParserWrapper builder, SOAPFactory factory) {
+        super(ownerDocument, tagName, ns, builder, factory);
     }
-    
-    /**
-     * This has to be implemented by all the derived classes to check 
-     * for the correct parent.
-     */
+
+    /** This has to be implemented by all the derived classes to check for the correct parent. */
     protected abstract void checkParent(OMElement parent)
             throws SOAPProcessingException;
 

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPEnvelopeImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPEnvelopeImpl.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/SOAPEnvelopeImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPEnvelopeImpl.java Wed Mar  7 06:59:00 2007
@@ -16,10 +16,6 @@
 
 package org.apache.axiom.soap.impl.dom;
 
-import javax.xml.namespace.QName;
-import javax.xml.stream.XMLStreamException;
-import javax.xml.stream.XMLStreamWriter;
-
 import org.apache.axiom.om.OMConstants;
 import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMException;
@@ -39,14 +35,16 @@
 import org.apache.axiom.soap.SOAPProcessingException;
 import org.apache.axiom.soap.impl.dom.factory.DOMSOAPFactory;
 
+import javax.xml.namespace.QName;
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
 public class SOAPEnvelopeImpl extends SOAPElement implements SOAPEnvelope,
         OMConstants {
-	
+
     private static final QName HEADER_QNAME = new QName(SOAPConstants.HEADER_LOCAL_NAME);
 
-    /**
-     * @param builder
-     */
+    /** @param builder  */
     public SOAPEnvelopeImpl(OMXMLParserWrapper builder, SOAPFactory factory) {
         super(null, SOAPConstants.SOAPENVELOPE_LOCAL_NAME, builder, factory);
     }
@@ -58,28 +56,23 @@
                 null,
                 builder, factory);
     }
-    /**
-     * @param ns
-     */
+
+    /** @param ns  */
     public SOAPEnvelopeImpl(OMNamespace ns, SOAPFactory factory) {
         super(((DOMSOAPFactory) factory).getDocument(),
-                SOAPConstants.SOAPENVELOPE_LOCAL_NAME, ns, factory);
+              SOAPConstants.SOAPENVELOPE_LOCAL_NAME, ns, factory);
         this.getOwnerDocument().appendChild(this);
     }
 
     /**
-     * Returns the <CODE>SOAPHeader</CODE> object for this <CODE> SOAPEnvelope</CODE>
-     * object.
-     * <P>
-     * This SOAPHeader will just be a container for all the headers in the
-     * <CODE>OMMessage</CODE>
+     * Returns the <CODE>SOAPHeader</CODE> object for this <CODE> SOAPEnvelope</CODE> object.
+     * <p/>
+     * This SOAPHeader will just be a container for all the headers in the <CODE>OMMessage</CODE>
      * </P>
      *
-     * @return the <CODE>SOAPHeader</CODE> object or <CODE> null</CODE> if
-     *         there is none
+     * @return the <CODE>SOAPHeader</CODE> object or <CODE> null</CODE> if there is none
      * @throws org.apache.axiom.om.OMException
-     *             if there is a problem obtaining the <CODE>SOAPHeader</CODE>
-     *             object
+     *                     if there is a problem obtaining the <CODE>SOAPHeader</CODE> object
      * @throws OMException
      */
     public SOAPHeader getHeader() throws OMException {
@@ -100,16 +93,14 @@
     /**
      * Returns the <CODE>SOAPBody</CODE> object associated with this <CODE>SOAPEnvelope</CODE>
      * object.
-     * <P>
-     * This SOAPBody will just be a container for all the BodyElements in the
-     * <CODE>OMMessage</CODE>
+     * <p/>
+     * This SOAPBody will just be a container for all the BodyElements in the <CODE>OMMessage</CODE>
      * </P>
      *
-     * @return the <CODE>SOAPBody</CODE> object for this <CODE> SOAPEnvelope</CODE>
-     *         object or <CODE>null</CODE> if there is none
+     * @return the <CODE>SOAPBody</CODE> object for this <CODE> SOAPEnvelope</CODE> object or
+     *         <CODE>null</CODE> if there is none
      * @throws org.apache.axiom.om.OMException
-     *             if there is a problem obtaining the <CODE>SOAPBody</CODE>
-     *             object
+     *                     if there is a problem obtaining the <CODE>SOAPBody</CODE> object
      * @throws OMException
      */
     public SOAPBody getBody() throws OMException {
@@ -127,13 +118,13 @@
 
                 if (node != null
                         && SOAPConstants.BODY_LOCAL_NAME.equals(element
-                                .getLocalName())) {
+                        .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.");
-				}*/
+                /*  else {
+                        throw new OMException(
+                                "SOAPEnvelope must contain a body element which is either first or second child element of the SOAPEnvelope.");
+                    }*/
             }
         }
         return null;
@@ -160,64 +151,64 @@
             String charSetEncoding = writer.getCharSetEncoding();
             String xmlVersion = writer.getXmlVersion();
             writer.getXmlStreamWriter().writeStartDocument(
-                            charSetEncoding == null ? OMConstants.DEFAULT_CHAR_SET_ENCODING
-                                    : charSetEncoding,
-                            xmlVersion == null ? OMConstants.DEFAULT_XML_VERSION
-                                    : xmlVersion);
-        }
-		if (cache) {
-			//in this case we don't care whether the elements are built or not
-			//we just call the serializeAndConsume methods
-			OMSerializerUtil.serializeStartpart(this, writer);
-			//serialize children
-			OMElement header = getFirstChildWithName(HEADER_QNAME);
-			if ((header != null) && (header.getFirstOMChild() != null)) {
-				((SOAPHeaderImpl) header).internalSerialize(writer);
-			}
-			SOAPBody body = getBody();
-			//REVIEW: getBody has statements to return null..Can it be null in any case?
-			if (body != null) {
-				((org.apache.axiom.soap.impl.dom.SOAPBodyImpl) body).internalSerialize(writer);
-			}
-			OMSerializerUtil.serializeEndpart(writer);
-
-		} else {
-			//Now the caching is supposed to be off. However caching been switched off
-			//has nothing to do if the element is already built!
-			if (this.done || (this.builder == null)) {
-				OMSerializerUtil.serializeStartpart(this, writer);
-				OMElement header = getFirstChildWithName(HEADER_QNAME);
-				if ((header != null) && (header.getFirstOMChild() != null)) {
-					serializeInternally((NodeImpl) header, writer);
-				}
-				SOAPBody body = getBody();
-				if (body != null) {
-					serializeInternally((NodeImpl) body, writer);
-				}
-				OMSerializerUtil.serializeEndpart(writer);
-			} else {
-				OMSerializerUtil.serializeByPullStream(this, writer, cache);
-			}
-		}
-	}
-
-	private void serializeInternally(NodeImpl child, MTOMXMLStreamWriter writer)
-			throws XMLStreamException {
-		if ((!(child instanceof OMElement)) || child.isComplete() || child.builder == null) {
-			child.internalSerializeAndConsume(writer);
-		} else {
-			OMElement element = (OMElement) child;
-			element.getBuilder().setCache(false);
-			OMSerializerUtil.serializeByPullStream(element, writer, false);
-		}
-		child = (NodeImpl) child.getNextOMSibling();
-	}
+                    charSetEncoding == null ? OMConstants.DEFAULT_CHAR_SET_ENCODING
+                            : charSetEncoding,
+                    xmlVersion == null ? OMConstants.DEFAULT_XML_VERSION
+                            : xmlVersion);
+        }
+        if (cache) {
+            //in this case we don't care whether the elements are built or not
+            //we just call the serializeAndConsume methods
+            OMSerializerUtil.serializeStartpart(this, writer);
+            //serialize children
+            OMElement header = getFirstChildWithName(HEADER_QNAME);
+            if ((header != null) && (header.getFirstOMChild() != null)) {
+                ((SOAPHeaderImpl) header).internalSerialize(writer);
+            }
+            SOAPBody body = getBody();
+            //REVIEW: getBody has statements to return null..Can it be null in any case?
+            if (body != null) {
+                ((org.apache.axiom.soap.impl.dom.SOAPBodyImpl) body).internalSerialize(writer);
+            }
+            OMSerializerUtil.serializeEndpart(writer);
+
+        } else {
+            //Now the caching is supposed to be off. However caching been switched off
+            //has nothing to do if the element is already built!
+            if (this.done || (this.builder == null)) {
+                OMSerializerUtil.serializeStartpart(this, writer);
+                OMElement header = getFirstChildWithName(HEADER_QNAME);
+                if ((header != null) && (header.getFirstOMChild() != null)) {
+                    serializeInternally((NodeImpl) header, writer);
+                }
+                SOAPBody body = getBody();
+                if (body != null) {
+                    serializeInternally((NodeImpl) body, writer);
+                }
+                OMSerializerUtil.serializeEndpart(writer);
+            } else {
+                OMSerializerUtil.serializeByPullStream(this, writer, cache);
+            }
+        }
+    }
+
+    private void serializeInternally(NodeImpl child, MTOMXMLStreamWriter writer)
+            throws XMLStreamException {
+        if ((!(child instanceof OMElement)) || child.isComplete() || child.builder == null) {
+            child.internalSerializeAndConsume(writer);
+        } else {
+            OMElement element = (OMElement) child;
+            element.getBuilder().setCache(false);
+            OMSerializerUtil.serializeByPullStream(element, writer, false);
+        }
+        child = (NodeImpl) child.getNextOMSibling();
+    }
 
     public OMNode getNextOMSibling() throws OMException {
-        if(this.ownerNode != null && !this.ownerNode.isComplete()) {
+        if (this.ownerNode != null && !this.ownerNode.isComplete()) {
             this.ownerNode.setComplete(true);
         }
         return null;
     }
-    
+
 }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultCodeImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultCodeImpl.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/SOAPFaultCodeImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultCodeImpl.java Wed Mar  7 06:59:00 2007
@@ -17,8 +17,6 @@
 package org.apache.axiom.soap.impl.dom;
 
 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.util.ElementHelper;
 import org.apache.axiom.soap.SOAP12Constants;
 import org.apache.axiom.soap.SOAPFactory;
@@ -28,10 +26,7 @@
 import org.apache.axiom.soap.SOAPFaultValue;
 import org.apache.axiom.soap.SOAPProcessingException;
 
-import javax.xml.stream.XMLStreamException;
-import javax.xml.stream.XMLStreamWriter;
-
-public abstract class SOAPFaultCodeImpl  extends SOAPElement implements SOAPFaultCode{
+public abstract class SOAPFaultCodeImpl extends SOAPElement implements SOAPFaultCode {
 
     /**
      * Constructor OMElementImpl
@@ -42,29 +37,25 @@
     public SOAPFaultCodeImpl(SOAPFault parent, OMXMLParserWrapper builder,
                              SOAPFactory factory) {
         super(parent, SOAP12Constants.SOAP_FAULT_CODE_LOCAL_NAME, builder,
-                factory);
+              factory);
     }
 
-    /**
-     * @param parent
-     */
+    /** @param parent  */
     public SOAPFaultCodeImpl(SOAPFault parent,
                              boolean extractNamespaceFromParent,
                              SOAPFactory factory) throws SOAPProcessingException {
         super(parent, SOAP12Constants.SOAP_FAULT_CODE_LOCAL_NAME,
-                extractNamespaceFromParent, factory);
+              extractNamespaceFromParent, factory);
     }
 
-    /**
-     * Eran Chinthaka (chinthaka@apache.org)
-     */
+    /** Eran Chinthaka (chinthaka@apache.org) */
     public void setValue(SOAPFaultValue value) throws SOAPProcessingException {
         ElementHelper.setNewElement(this, value, value);
     }
 
     public SOAPFaultValue getValue() {
         return (SOAPFaultValue) ElementHelper.getChildWithName(this,
-                SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME);
+                                                               SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME);
     }
 
     public void setSubCode(SOAPFaultSubCode value) throws SOAPProcessingException {
@@ -73,7 +64,7 @@
 
     public SOAPFaultSubCode getSubCode() {
         return (SOAPFaultSubCode) ElementHelper.getChildWithName(this,
-                SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME);
+                                                                 SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME);
     }
 
 }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultDetailImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultDetailImpl.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/SOAPFaultDetailImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultDetailImpl.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.SOAP12Constants;
 import org.apache.axiom.soap.SOAPFactory;
 import org.apache.axiom.soap.SOAPFault;
@@ -32,24 +32,24 @@
 
 public abstract class SOAPFaultDetailImpl extends SOAPElement implements SOAPFaultDetail {
 
-    
+
     protected SOAPFaultDetailImpl(SOAPFault parent,
-            boolean extractNamespaceFromParent, SOAPFactory factory)
+                                  boolean extractNamespaceFromParent, SOAPFactory factory)
             throws SOAPProcessingException {
         super(parent,
-                SOAP12Constants.SOAP_FAULT_DETAIL_LOCAL_NAME,
-                extractNamespaceFromParent, factory);
+              SOAP12Constants.SOAP_FAULT_DETAIL_LOCAL_NAME,
+              extractNamespaceFromParent, factory);
     }
 
     protected SOAPFaultDetailImpl(SOAPFactory factory) {
         super(factory);
     }
-    
+
     protected SOAPFaultDetailImpl(SOAPFault parent,
                                   OMXMLParserWrapper builder,
                                   SOAPFactory factory) {
         super(parent, SOAP12Constants.SOAP_FAULT_DETAIL_LOCAL_NAME, builder,
-                factory);
+              factory);
     }
 
     public void addDetailEntry(OMElement detailElement) {
@@ -60,7 +60,8 @@
         return this.getChildren();
     }
 
-    protected void internalSerialize(XMLStreamWriter writer, boolean cache) throws XMLStreamException {
+    protected void internalSerialize(XMLStreamWriter writer, boolean cache)
+            throws XMLStreamException {
         // select the builder
         short builderType = PULL_TYPE_BUILDER;    // default is pull type
         if (builder != null) {
@@ -68,7 +69,8 @@
         }
         if ((builderType == PUSH_TYPE_BUILDER)
                 && (builder.getRegisteredContentHandler() == null)) {
-            builder.registerExternalContentHandler(new StreamWriterToContentHandlerConverter(writer));
+            builder.registerExternalContentHandler(
+                    new StreamWriterToContentHandlerConverter(writer));
         }
 
         if (!cache) {

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultImpl.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/SOAPFaultImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultImpl.java Wed Mar  7 06:59:00 2007
@@ -21,11 +21,9 @@
 import org.apache.axiom.om.OMException;
 import org.apache.axiom.om.OMNode;
 import org.apache.axiom.om.OMXMLParserWrapper;
-import org.apache.axiom.om.impl.OMNodeEx;
-import org.apache.axiom.om.impl.util.OMSerializerUtil;
 import org.apache.axiom.om.impl.dom.ElementImpl;
-import org.apache.axiom.om.impl.dom.ParentNode;
 import org.apache.axiom.om.impl.serialize.StreamWriterToContentHandlerConverter;
+import org.apache.axiom.om.impl.util.OMSerializerUtil;
 import org.apache.axiom.soap.SOAP12Constants;
 import org.apache.axiom.soap.SOAPBody;
 import org.apache.axiom.soap.SOAPConstants;
@@ -46,198 +44,197 @@
 import java.util.Iterator;
 
 public abstract class SOAPFaultImpl extends SOAPElement implements SOAPFault,
-		OMConstants {
+        OMConstants {
+
+    protected Exception e;
+
+    /**
+     * Constructor SOAPFaultImpl
+     *
+     * @param parent
+     * @param e
+     */
+    public SOAPFaultImpl(SOAPBody parent, Exception e, SOAPFactory factory)
+            throws SOAPProcessingException {
+        super(parent, SOAPConstants.SOAPFAULT_LOCAL_NAME, true, factory);
+        setException(e);
+    }
+
+    public void setException(Exception e) {
+        this.e = e;
+        putExceptionToSOAPFault(e);
+    }
+
+    public SOAPFaultImpl(SOAPBody parent, SOAPFactory factory)
+            throws SOAPProcessingException {
+        super(parent, SOAPConstants.SOAPFAULT_LOCAL_NAME, true, factory);
+    }
+
+    /**
+     * Constructor SOAPFaultImpl
+     *
+     * @param parent
+     * @param builder
+     */
+    public SOAPFaultImpl(SOAPBody parent, OMXMLParserWrapper builder,
+                         SOAPFactory factory) {
+        super(parent, SOAPConstants.SOAPFAULT_LOCAL_NAME, builder, factory);
+    }
+
+    protected abstract SOAPFaultDetail getNewSOAPFaultDetail(SOAPFault fault)
+            throws SOAPProcessingException;
+
+    // --------------- Getters and Settors --------------------------- //
 
-	protected Exception e;
-	/**
-	 * Constructor SOAPFaultImpl
-	 * 
-	 * @param parent
-	 * @param e
-	 */
-	public SOAPFaultImpl(SOAPBody parent, Exception e, SOAPFactory factory)
-			throws SOAPProcessingException {
-		super(parent, SOAPConstants.SOAPFAULT_LOCAL_NAME, true, factory);
-		setException(e);
-	}
-
-	public void setException(Exception e) {
-		this.e = e;
-		putExceptionToSOAPFault(e);
-	}
-
-	public SOAPFaultImpl(SOAPBody parent, SOAPFactory factory)
-            throws SOAPProcessingException {
-		super(parent, SOAPConstants.SOAPFAULT_LOCAL_NAME, true, factory);
-	}
-
-	/**
-	 * Constructor SOAPFaultImpl
-	 * 
-	 * @param parent
-	 * @param builder
-	 */
-	public SOAPFaultImpl(SOAPBody parent, OMXMLParserWrapper builder,
-            SOAPFactory factory) {
-		super(parent, SOAPConstants.SOAPFAULT_LOCAL_NAME, builder, factory);
-	}
-
-	protected abstract SOAPFaultDetail getNewSOAPFaultDetail(SOAPFault fault)
-			throws SOAPProcessingException;
-
-	// --------------- Getters and Settors --------------------------- //
-
-	public void setCode(SOAPFaultCode soapFaultCode)
-			throws SOAPProcessingException {
-		setNewElement(getCode(), soapFaultCode);
-	}
-
-	public SOAPFaultCode getCode() {
-		return (SOAPFaultCode) this
-				.getChildWithName(SOAP12Constants.SOAP_FAULT_CODE_LOCAL_NAME);
-	}
-
-	public void setReason(SOAPFaultReason reason)
-			throws SOAPProcessingException {
-		setNewElement(getReason(), reason);
-	}
-
-	public SOAPFaultReason getReason() {
-		return (SOAPFaultReason) this
-				.getChildWithName(SOAP12Constants.SOAP_FAULT_REASON_LOCAL_NAME);
-	}
-
-	public void setNode(SOAPFaultNode node) throws SOAPProcessingException {
-		setNewElement(getNode(), node);
-	}
-
-	public SOAPFaultNode getNode() {
-		return (SOAPFaultNode) this
-				.getChildWithName(SOAP12Constants.SOAP_FAULT_NODE_LOCAL_NAME);
-	}
-
-	public void setRole(SOAPFaultRole role) throws SOAPProcessingException {
-		setNewElement(getRole(), role);
-	}
-
-	public SOAPFaultRole getRole() {
-		return (SOAPFaultRoleImpl) this
-				.getChildWithName(SOAP12Constants.SOAP_FAULT_ROLE_LOCAL_NAME);
-	}
-
-	public void setDetail(SOAPFaultDetail detail)
-			throws SOAPProcessingException {
-		setNewElement(getDetail(), detail);
-	}
-
-	public SOAPFaultDetail getDetail() {
-		return (SOAPFaultDetail) this
-				.getChildWithName(SOAP12Constants.SOAP_FAULT_DETAIL_LOCAL_NAME);
-	}
-
-	/**
-	 * If exception detailElement is not there we will return null
-	 */
-	public Exception getException() throws OMException {
-		SOAPFaultDetail detail = getDetail();
-		if (detail == null) {
-			return null;
-		}
-
-		OMElement exceptionElement = getDetail().getFirstChildWithName(
-				new QName(SOAPConstants.SOAP_FAULT_DETAIL_EXCEPTION_ENTRY));
-		if (exceptionElement != null && exceptionElement.getText() != null) {
-			return new Exception(exceptionElement.getText());
-		}
-		return null;
-	}
-
-	protected void putExceptionToSOAPFault(Exception e)
-			throws SOAPProcessingException {
-		StringWriter sw = new StringWriter();
-		e.printStackTrace(new PrintWriter(sw));
-		sw.flush();
-		getDetail();
-		if (getDetail() == null) {
-			setDetail(getNewSOAPFaultDetail(this));
-
-		}
-		OMElement faultDetailEnty = new ElementImpl(this,
-				SOAPConstants.SOAP_FAULT_DETAIL_EXCEPTION_ENTRY,
-				null, this.factory);
-		faultDetailEnty.setText(sw.getBuffer().toString());
-	}
-
-	protected void setNewElement(OMElement myElement, OMElement newElement) {
-		if (myElement != null) {
-			myElement.discard();
-		}
-		if (newElement != null && newElement.getParent() != null) {
-			newElement.discard();
-		}
-		this.addChild(newElement);
-		myElement = newElement;
-	}
-
-	protected OMElement getChildWithName(String childName) {
-		Iterator childrenIter = getChildren();
-		while (childrenIter.hasNext()) {
-			OMNode node = (OMNode) childrenIter.next();
-			if (node.getType() == OMNode.ELEMENT_NODE
-					&& childName.equals(((OMElement) node).getLocalName())) {
-				return (OMElement) node;
-			}
-		}
-		return null;
-	}
+    public void setCode(SOAPFaultCode soapFaultCode)
+            throws SOAPProcessingException {
+        setNewElement(getCode(), soapFaultCode);
+    }
+
+    public SOAPFaultCode getCode() {
+        return (SOAPFaultCode) this
+                .getChildWithName(SOAP12Constants.SOAP_FAULT_CODE_LOCAL_NAME);
+    }
+
+    public void setReason(SOAPFaultReason reason)
+            throws SOAPProcessingException {
+        setNewElement(getReason(), reason);
+    }
+
+    public SOAPFaultReason getReason() {
+        return (SOAPFaultReason) this
+                .getChildWithName(SOAP12Constants.SOAP_FAULT_REASON_LOCAL_NAME);
+    }
+
+    public void setNode(SOAPFaultNode node) throws SOAPProcessingException {
+        setNewElement(getNode(), node);
+    }
+
+    public SOAPFaultNode getNode() {
+        return (SOAPFaultNode) this
+                .getChildWithName(SOAP12Constants.SOAP_FAULT_NODE_LOCAL_NAME);
+    }
+
+    public void setRole(SOAPFaultRole role) throws SOAPProcessingException {
+        setNewElement(getRole(), role);
+    }
+
+    public SOAPFaultRole getRole() {
+        return (SOAPFaultRoleImpl) this
+                .getChildWithName(SOAP12Constants.SOAP_FAULT_ROLE_LOCAL_NAME);
+    }
+
+    public void setDetail(SOAPFaultDetail detail)
+            throws SOAPProcessingException {
+        setNewElement(getDetail(), detail);
+    }
+
+    public SOAPFaultDetail getDetail() {
+        return (SOAPFaultDetail) this
+                .getChildWithName(SOAP12Constants.SOAP_FAULT_DETAIL_LOCAL_NAME);
+    }
+
+    /** If exception detailElement is not there we will return null */
+    public Exception getException() throws OMException {
+        SOAPFaultDetail detail = getDetail();
+        if (detail == null) {
+            return null;
+        }
+
+        OMElement exceptionElement = getDetail().getFirstChildWithName(
+                new QName(SOAPConstants.SOAP_FAULT_DETAIL_EXCEPTION_ENTRY));
+        if (exceptionElement != null && exceptionElement.getText() != null) {
+            return new Exception(exceptionElement.getText());
+        }
+        return null;
+    }
+
+    protected void putExceptionToSOAPFault(Exception e)
+            throws SOAPProcessingException {
+        StringWriter sw = new StringWriter();
+        e.printStackTrace(new PrintWriter(sw));
+        sw.flush();
+        getDetail();
+        if (getDetail() == null) {
+            setDetail(getNewSOAPFaultDetail(this));
+
+        }
+        OMElement faultDetailEnty = new ElementImpl(this,
+                                                    SOAPConstants.SOAP_FAULT_DETAIL_EXCEPTION_ENTRY,
+                                                    null, this.factory);
+        faultDetailEnty.setText(sw.getBuffer().toString());
+    }
+
+    protected void setNewElement(OMElement myElement, OMElement newElement) {
+        if (myElement != null) {
+            myElement.discard();
+        }
+        if (newElement != null && newElement.getParent() != null) {
+            newElement.discard();
+        }
+        this.addChild(newElement);
+        myElement = newElement;
+    }
+
+    protected OMElement getChildWithName(String childName) {
+        Iterator childrenIter = getChildren();
+        while (childrenIter.hasNext()) {
+            OMNode node = (OMNode) childrenIter.next();
+            if (node.getType() == OMNode.ELEMENT_NODE
+                    && childName.equals(((OMElement) node).getLocalName())) {
+                return (OMElement) node;
+            }
+        }
+        return null;
+    }
 
-	protected void internalSerialize(XMLStreamWriter writer,
+    protected void internalSerialize(XMLStreamWriter writer,
                                      boolean cache) throws XMLStreamException {
-		// select the builder
-		short builderType = PULL_TYPE_BUILDER; // default is pull type
-		if (builder != null) {
-			builderType = this.builder.getBuilderType();
-		}
-		if ((builderType == PUSH_TYPE_BUILDER)
-				&& (builder.getRegisteredContentHandler() == null)) {
-			builder
-					.registerExternalContentHandler(new StreamWriterToContentHandlerConverter(
-							writer));
-		}
-
-		// this is a special case. This fault element may contain its children
-		// in any order. But spec mandates a specific order
-		// the overriding of the method will facilitate that. Not sure this is
-		// the best method to do this :(
-		build();
+        // select the builder
+        short builderType = PULL_TYPE_BUILDER; // default is pull type
+        if (builder != null) {
+            builderType = this.builder.getBuilderType();
+        }
+        if ((builderType == PUSH_TYPE_BUILDER)
+                && (builder.getRegisteredContentHandler() == null)) {
+            builder
+                    .registerExternalContentHandler(new StreamWriterToContentHandlerConverter(
+                            writer));
+        }
+
+        // this is a special case. This fault element may contain its children
+        // in any order. But spec mandates a specific order
+        // the overriding of the method will facilitate that. Not sure this is
+        // the best method to do this :(
+        build();
 
         OMSerializerUtil.serializeStartpart(this, writer);
-		SOAPFaultCode faultCode = getCode();
-		if (faultCode != null) {
-			(faultCode).serialize(writer);
-		}
-		SOAPFaultReason faultReason = getReason();
-		if (faultReason != null) {
-			(faultReason).serialize(writer);
-		}
-
-		serializeFaultNode(writer);
-
-		SOAPFaultRole faultRole = getRole();
-		if (faultRole != null) {
-			(faultRole).serialize(writer);
-		}
-
-		SOAPFaultDetail faultDetail = getDetail();
-		if (faultDetail != null) {
-			(faultDetail).serialize(writer);
-		}
-
-		OMSerializerUtil.serializeEndpart(writer);
-	}
-
-	protected abstract void serializeFaultNode(
-			XMLStreamWriter writer)
-			throws XMLStreamException;
+        SOAPFaultCode faultCode = getCode();
+        if (faultCode != null) {
+            (faultCode).serialize(writer);
+        }
+        SOAPFaultReason faultReason = getReason();
+        if (faultReason != null) {
+            (faultReason).serialize(writer);
+        }
+
+        serializeFaultNode(writer);
+
+        SOAPFaultRole faultRole = getRole();
+        if (faultRole != null) {
+            (faultRole).serialize(writer);
+        }
+
+        SOAPFaultDetail faultDetail = getDetail();
+        if (faultDetail != null) {
+            (faultDetail).serialize(writer);
+        }
+
+        OMSerializerUtil.serializeEndpart(writer);
+    }
+
+    protected abstract void serializeFaultNode(
+            XMLStreamWriter writer)
+            throws XMLStreamException;
 
 }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultNodeImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultNodeImpl.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/SOAPFaultNodeImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultNodeImpl.java Wed Mar  7 06:59:00 2007
@@ -17,8 +17,8 @@
 package org.apache.axiom.soap.impl.dom;
 
 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.SOAP12Constants;
 import org.apache.axiom.soap.SOAPFactory;
 import org.apache.axiom.soap.SOAPFault;
@@ -38,7 +38,7 @@
     public SOAPFaultNodeImpl(SOAPFault parent, OMXMLParserWrapper builder,
                              SOAPFactory factory) {
         super(parent, SOAP12Constants.SOAP_FAULT_NODE_LOCAL_NAME, builder,
-                factory);
+              factory);
     }
 
     public void setNodeValue(String uri) {
@@ -52,46 +52,46 @@
     protected void internalSerialize(
             XMLStreamWriter writer, boolean cache)
             throws XMLStreamException {
-            // select the builder
-            short builderType = PULL_TYPE_BUILDER;    // default is pull type
-            if (builder != null) {
-                builderType = this.builder.getBuilderType();
-            }
-            if ((builderType == PUSH_TYPE_BUILDER)
-                    && (builder.getRegisteredContentHandler() == null)) {
-                builder.registerExternalContentHandler(new StreamWriterToContentHandlerConverter(
-                            writer));
-            }
+        // select the builder
+        short builderType = PULL_TYPE_BUILDER;    // default is pull type
+        if (builder != null) {
+            builderType = this.builder.getBuilderType();
+        }
+        if ((builderType == PUSH_TYPE_BUILDER)
+                && (builder.getRegisteredContentHandler() == null)) {
+            builder.registerExternalContentHandler(new StreamWriterToContentHandlerConverter(
+                    writer));
+        }
 
-            if (!cache) {
-                //No caching
-                if (this.firstChild != null) {
+        if (!cache) {
+            //No caching
+            if (this.firstChild != null) {
+                OMSerializerUtil.serializeStartpart(this, writer);
+                firstChild.internalSerializeAndConsume(writer);
+                OMSerializerUtil.serializeEndpart(writer);
+            } else if (!this.done) {
+                if (builderType == PULL_TYPE_BUILDER) {
+                    OMSerializerUtil.serializeByPullStream(this, writer);
+                } else {
                     OMSerializerUtil.serializeStartpart(this, writer);
-                    firstChild.internalSerializeAndConsume(writer);
+                    builder.setCache(cache);
+                    builder.next();
                     OMSerializerUtil.serializeEndpart(writer);
-                } else if (!this.done) {
-                    if (builderType == PULL_TYPE_BUILDER) {
-                        OMSerializerUtil.serializeByPullStream(this, writer);
-                    } else {
-                        OMSerializerUtil.serializeStartpart(this, writer);
-                        builder.setCache(cache);
-                        builder.next();
-                        OMSerializerUtil.serializeEndpart(writer);
-                    }
-                } else {
-                    OMSerializerUtil.serializeNormal(this, writer, cache);
                 }
-                // do not serialise the siblings
-
-
             } else {
-                //Cached
                 OMSerializerUtil.serializeNormal(this, writer, cache);
-
-                // do not serialise the siblings
             }
+            // do not serialise the siblings
+
 
+        } else {
+            //Cached
+            OMSerializerUtil.serializeNormal(this, writer, cache);
 
+            // do not serialise the siblings
         }
+
+
+    }
 
 }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultReasonImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultReasonImpl.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/SOAPFaultReasonImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultReasonImpl.java Wed Mar  7 06:59:00 2007
@@ -16,10 +16,6 @@
 
 package org.apache.axiom.soap.impl.dom;
 
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
 import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMNode;
 import org.apache.axiom.om.OMXMLParserWrapper;
@@ -31,6 +27,10 @@
 import org.apache.axiom.soap.SOAPFaultText;
 import org.apache.axiom.soap.SOAPProcessingException;
 
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
 public abstract class SOAPFaultReasonImpl extends SOAPElement implements
         SOAPFaultReason {
     protected SOAPFaultText text;
@@ -44,34 +44,30 @@
     public SOAPFaultReasonImpl(SOAPFault parent, OMXMLParserWrapper builder,
                                SOAPFactory factory) {
         super(parent, SOAP12Constants.SOAP_FAULT_REASON_LOCAL_NAME, builder,
-                factory);
+              factory);
     }
 
-    /**
-     * @param parent
-     */
+    /** @param parent  */
     public SOAPFaultReasonImpl(OMElement parent,
                                boolean extractNamespaceFromParent, SOAPFactory factory)
             throws SOAPProcessingException {
-        super(parent,SOAP12Constants.SOAP_FAULT_REASON_LOCAL_NAME,
-                extractNamespaceFromParent,factory);
+        super(parent, SOAP12Constants.SOAP_FAULT_REASON_LOCAL_NAME,
+              extractNamespaceFromParent, factory);
     }
 
-    /**
-     * Eran Chinthaka (chinthaka@apache.org)
-     */
+    /** Eran Chinthaka (chinthaka@apache.org) */
     public void addSOAPText(SOAPFaultText soapFaultText) throws SOAPProcessingException {
         ElementHelper.setNewElement(this, text, soapFaultText);
     }
 
     public SOAPFaultText getFirstSOAPText() {
         return (SOAPFaultText) ElementHelper.getChildWithName(this,
-                SOAP12Constants.SOAP_FAULT_TEXT_LOCAL_NAME);
+                                                              SOAP12Constants.SOAP_FAULT_TEXT_LOCAL_NAME);
     }
 
     public List getAllSoapTexts() {
         //TODO Ruchith check
-    	List faultTexts = new ArrayList();
+        List faultTexts = new ArrayList();
         Iterator childrenIter = this.getChildren();
         while (childrenIter.hasNext()) {
             OMNode node = (OMNode) childrenIter.next();

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultRoleImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultRoleImpl.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/SOAPFaultRoleImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultRoleImpl.java Wed Mar  7 06:59:00 2007
@@ -17,8 +17,8 @@
 package org.apache.axiom.soap.impl.dom;
 
 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.SOAP12Constants;
 import org.apache.axiom.soap.SOAPFactory;
 import org.apache.axiom.soap.SOAPFault;
@@ -42,7 +42,7 @@
     public SOAPFaultRoleImpl(SOAPFault parent, OMXMLParserWrapper builder,
                              SOAPFactory factory) {
         super(parent, SOAP12Constants.SOAP_FAULT_ROLE_LOCAL_NAME, builder,
-                factory);
+              factory);
     }
 
     public void setRoleValue(String uri) {
@@ -64,7 +64,7 @@
             builderType = this.builder.getBuilderType();
         }
         if ((builderType == PUSH_TYPE_BUILDER)
-            && (builder.getRegisteredContentHandler() == null)) {
+                && (builder.getRegisteredContentHandler() == null)) {
             builder.registerExternalContentHandler(
                     new StreamWriterToContentHandlerConverter(writer));
         }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultSubCodeImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultSubCodeImpl.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/SOAPFaultSubCodeImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultSubCodeImpl.java Wed Mar  7 06:59:00 2007
@@ -31,13 +31,14 @@
     protected SOAPFaultSubCode subCode;
 
 
-    protected SOAPFaultSubCodeImpl(OMElement parent, String localName, SOAPFactory factory) throws SOAPProcessingException {
+    protected SOAPFaultSubCodeImpl(OMElement parent, String localName, SOAPFactory factory)
+            throws SOAPProcessingException {
         super(parent, localName, true, factory);
     }
 
     protected SOAPFaultSubCodeImpl(OMElement parent,
                                    String localName,
-                                   OMXMLParserWrapper builder, 
+                                   OMXMLParserWrapper builder,
                                    SOAPFactory factory) {
         super(parent, localName, builder, factory);
     }
@@ -50,7 +51,7 @@
         if (value == null) {
             value =
                     (SOAPFaultValue) ElementHelper.getChildWithName(this,
-                            SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME);
+                                                                    SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME);
         }
         return value;
     }
@@ -64,7 +65,7 @@
         if (subCode == null) {
             subCode =
                     (SOAPFaultSubCode) ElementHelper.getChildWithName(this,
-                            SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME);
+                                                                      SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME);
         }
         return subCode;
     }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultTextImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultTextImpl.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/SOAPFaultTextImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultTextImpl.java Wed Mar  7 06:59:00 2007
@@ -29,9 +29,9 @@
 import javax.xml.namespace.QName;
 
 public abstract class SOAPFaultTextImpl extends SOAPElement implements SOAPFaultText {
-    
+
     protected OMAttribute langAttr;
-    
+
     protected OMNamespace langNamespace = null;
 
     protected SOAPFaultTextImpl(SOAPFaultReason parent, SOAPFactory factory)
@@ -45,16 +45,16 @@
     protected SOAPFaultTextImpl(SOAPFaultReason parent,
                                 OMXMLParserWrapper builder, SOAPFactory factory) {
         super(parent, SOAP12Constants.SOAP_FAULT_TEXT_LOCAL_NAME, builder,
-                factory);
+              factory);
     }
 
 
     public void setLang(String lang) {
         langAttr =
-                new AttrImpl(this.ownerNode, 
-                        SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_LOCAL_NAME,
-                        langNamespace,
-                        lang, this.factory);
+                new AttrImpl(this.ownerNode,
+                             SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_LOCAL_NAME,
+                             langNamespace,
+                             lang, this.factory);
         this.addAttribute(langAttr);
     }
 
@@ -63,8 +63,8 @@
             langAttr =
                     this.getAttribute(
                             new QName(langNamespace.getNamespaceURI(),
-                                    SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_LOCAL_NAME,
-                                    SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_NS_PREFIX));
+                                      SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_LOCAL_NAME,
+                                      SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_NS_PREFIX));
         }
 
         return langAttr == null ? null : langAttr.getAttributeValue();

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultValueImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultValueImpl.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/SOAPFaultValueImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultValueImpl.java Wed Mar  7 06:59:00 2007
@@ -28,12 +28,12 @@
     protected SOAPFaultValueImpl(OMElement parent, SOAPFactory factory)
             throws SOAPProcessingException {
         super(parent, SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME, true,
-                factory);
+              factory);
     }
 
     protected SOAPFaultValueImpl(OMElement parent, OMXMLParserWrapper builder,
-            SOAPFactory factory) {
+                                 SOAPFactory factory) {
         super(parent, SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME, builder,
-                factory);
+              factory);
     }
 }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderBlockImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderBlockImpl.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/SOAPHeaderBlockImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderBlockImpl.java Wed Mar  7 06:59:00 2007
@@ -33,28 +33,28 @@
 
 import javax.xml.namespace.QName;
 
-public abstract class SOAPHeaderBlockImpl  extends ElementImpl implements SOAPHeaderBlock {
+public abstract class SOAPHeaderBlockImpl extends ElementImpl implements SOAPHeaderBlock {
 
     private boolean processed = false;
 
     /**
      * @param localName
      * @param ns
-     * @param parent     
+     * @param parent
      */
     public SOAPHeaderBlockImpl(String localName, OMNamespace ns,
-            SOAPHeader parent, SOAPFactory factory)
+                               SOAPHeader parent, SOAPFactory factory)
             throws SOAPProcessingException {
-        super((ParentNode)parent, localName,(NamespaceImpl) ns, factory);
+        super((ParentNode) parent, localName, (NamespaceImpl) ns, factory);
         this.setNamespace(ns);
     }
 
     public SOAPHeaderBlockImpl(String localName, OMNamespace ns,
-            SOAPFactory factory) throws SOAPProcessingException {
-        super(((OMDOMFactory)factory).getDocument(), localName,(NamespaceImpl) ns, factory);
+                               SOAPFactory factory) throws SOAPProcessingException {
+        super(((OMDOMFactory) factory).getDocument(), localName, (NamespaceImpl) ns, factory);
         this.setNamespace(ns);
     }
-    
+
     /**
      * Constructor SOAPHeaderBlockImpl.
      *
@@ -64,8 +64,8 @@
      * @param builder
      */
     public SOAPHeaderBlockImpl(String localName, OMNamespace ns,
-            OMElement parent, OMXMLParserWrapper builder, SOAPFactory factory) {
-        super((ParentNode)parent, localName, (NamespaceImpl)ns, builder, factory);
+                               OMElement parent, OMXMLParserWrapper builder, SOAPFactory factory) {
+        super((ParentNode) parent, localName, (NamespaceImpl) ns, builder, factory);
         this.setNamespace(ns);
     }
 
@@ -83,9 +83,9 @@
             omAttribute.setAttributeValue(attrValue);
         } else {
             OMAttribute attribute = new AttrImpl(this.ownerNode, attributeName,
-                    new NamespaceImpl(soapEnvelopeNamespaceURI,
-                            SOAPConstants.SOAP_DEFAULT_NAMESPACE_PREFIX),
-                            attrValue, this.factory);
+                                                 new NamespaceImpl(soapEnvelopeNamespaceURI,
+                                                                   SOAPConstants.SOAP_DEFAULT_NAMESPACE_PREFIX),
+                                                 attrValue, this.factory);
             this.addAttribute(attribute);
         }
     }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderImpl.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/SOAPHeaderImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderImpl.java Wed Mar  7 06:59:00 2007
@@ -35,10 +35,8 @@
 
 public abstract class SOAPHeaderImpl extends SOAPElement implements SOAPHeader {
 
-    
-    /**
-     * @param envelope
-     */
+
+    /** @param envelope  */
     public SOAPHeaderImpl(SOAPEnvelope envelope, SOAPFactory factory)
             throws SOAPProcessingException {
         super(envelope, SOAPConstants.HEADER_LOCAL_NAME, true, factory);
@@ -52,18 +50,18 @@
      * @param builder
      */
     public SOAPHeaderImpl(SOAPEnvelope envelope, OMXMLParserWrapper builder,
-            SOAPFactory factory) {
+                          SOAPFactory factory) {
         super(envelope, SOAPConstants.HEADER_LOCAL_NAME, builder, factory);
     }
 
     /**
-     * Creates a new <CODE>SOAPHeaderBlock</CODE> object initialized with the
-     * specified name and adds it to this <CODE>SOAPHeader</CODE> object.
+     * Creates a new <CODE>SOAPHeaderBlock</CODE> object initialized with the specified name and
+     * adds it to this <CODE>SOAPHeader</CODE> object.
      *
      * @param localName
      * @param ns
-     * @return the new <CODE>SOAPHeaderBlock</CODE> object that was inserted
-     *         into this <CODE>SOAPHeader</CODE> object
+     * @return the new <CODE>SOAPHeaderBlock</CODE> object that was inserted into this
+     *         <CODE>SOAPHeader</CODE> object
      * @throws org.apache.axiom.om.OMException
      *                     if a SOAP error occurs
      * @throws OMException
@@ -74,18 +72,15 @@
 
     /**
      * Returns a list of all the <CODE>SOAPHeaderBlock</CODE> objects in this
-     * <CODE>SOAPHeader</CODE> object that have the the specified actor. An
-     * actor is a global attribute that indicates the intermediate parties to
-     * whom the message should be sent. An actor receives the message and then
-     * sends it to the next actor. The default actor is the ultimate intended
-     * recipient for the message, so if no actor attribute is included in a
-     * <CODE>SOAPHeader</CODE> object, the message is sent to its ultimate
-     * destination.
-     *
-     * @param paramRole a <CODE>String</CODE> giving the URI of the actor for
-     *                  which to search
-     * @return an <CODE>Iterator</CODE> object over all the <CODE>
-     *         SOAPHeaderBlock</CODE> objects that contain the specified actor
+     * <CODE>SOAPHeader</CODE> object that have the the specified actor. An actor is a global
+     * attribute that indicates the intermediate parties to whom the message should be sent. An
+     * actor receives the message and then sends it to the next actor. The default actor is the
+     * ultimate intended recipient for the message, so if no actor attribute is included in a
+     * <CODE>SOAPHeader</CODE> object, the message is sent to its ultimate destination.
+     *
+     * @param paramRole a <CODE>String</CODE> giving the URI of the actor for which to search
+     * @return an <CODE>Iterator</CODE> object over all the <CODE> SOAPHeaderBlock</CODE> objects
+     *         that contain the specified actor
      * @see #extractHeaderBlocks(String) extractHeaderBlocks(java.lang.String)
      */
     public Iterator examineHeaderBlocks(String paramRole) {
@@ -124,9 +119,9 @@
             if (headerBlock.getRole() != null &&
                     headerBlock.getRole().trim().length() > 0 &&
                     headerBlock.getRole().equals(paramRole)) {
-                    elements.add(headerBlock);
+                elements.add(headerBlock);
             }
-            
+
         }
         return elements.iterator();
     }
@@ -146,31 +141,26 @@
 
     /**
      * Returns a list of all the <CODE>SOAPHeaderBlock</CODE> objects in this
-     * <CODE>SOAPHeader</CODE> object that have the the specified role and
-     * detaches them from this <CODE> SOAPHeader</CODE> object. <P>This method
-     * allows an role to process only the parts of the <CODE>SOAPHeader</CODE>
-     * object that apply to it and to remove them before passing the message on
-     * to the next role.
-     *
-     * @param role a <CODE>String</CODE> giving the URI of the role for which to
-     *             search
-     * @return an <CODE>Iterator</CODE> object over all the <CODE>
-     *         SOAPHeaderBlock</CODE> objects that contain the specified role
+     * <CODE>SOAPHeader</CODE> object that have the the specified role and detaches them from this
+     * <CODE> SOAPHeader</CODE> object. <P>This method allows an role to process only the parts of
+     * the <CODE>SOAPHeader</CODE> object that apply to it and to remove them before passing the
+     * message on to the next role.
+     *
+     * @param role a <CODE>String</CODE> giving the URI of the role for which to search
+     * @return an <CODE>Iterator</CODE> object over all the <CODE> SOAPHeaderBlock</CODE> objects
+     *         that contain the specified role
      * @see #examineHeaderBlocks(String) examineHeaderBlocks(java.lang.String)
      */
     public abstract Iterator extractHeaderBlocks(String role);
 
     /**
-     * Returns an <code>Iterator</code> over all the <code>SOAPHeaderBlock</code>
-     * objects in this <code>SOAPHeader</code> object that have the specified
-     * actor and that have a MustUnderstand attribute whose value is equivalent
-     * to <code>true</code>.
-     *
-     * @param actor a <code>String</code> giving the URI of the actor for which
-     *              to search
-     * @return an <code>Iterator</code> object over all the
-     *         <code>SOAPHeaderBlock</code> objects that contain the specified
-     *         actor and are marked as MustUnderstand
+     * Returns an <code>Iterator</code> over all the <code>SOAPHeaderBlock</code> objects in this
+     * <code>SOAPHeader</code> object that have the specified actor and that have a MustUnderstand
+     * attribute whose value is equivalent to <code>true</code>.
+     *
+     * @param actor a <code>String</code> giving the URI of the actor for which to search
+     * @return an <code>Iterator</code> object over all the <code>SOAPHeaderBlock</code> objects
+     *         that contain the specified actor and are marked as MustUnderstand
      */
     public Iterator examineMustUnderstandHeaderBlocks(String actor) {
         Iterator headerBlocksIter = this.getChildren();
@@ -182,7 +172,7 @@
                 String role = soapHeaderBlock.getRole();
                 boolean mustUnderstand = soapHeaderBlock.getMustUnderstand();
                 if ((role != null) && role.equalsIgnoreCase(actor) &&
-                    mustUnderstand) {
+                        mustUnderstand) {
                     mustUnderstandHeadersWithGivenActor.add(soapHeaderBlock);
                 }
             }
@@ -191,27 +181,23 @@
     }
 
     /**
-     * Returns an <code>Iterator</code> over all the <code>SOAPHeaderBlock</code>
-     * objects in this <code>SOAPHeader</code> object. Not that this will return
-     * elements containing the QName (http://schemas.xmlsoap.org/soap/envelope/,
-     * Header)
-     *
-     * @return an <code>Iterator</code> object over all the
-     *         <code>SOAPHeaderBlock</code> objects contained by this
-     *         <code>SOAPHeader</code>
+     * Returns an <code>Iterator</code> over all the <code>SOAPHeaderBlock</code> objects in this
+     * <code>SOAPHeader</code> object. Not that this will return elements containing the QName
+     * (http://schemas.xmlsoap.org/soap/envelope/, Header)
+     *
+     * @return an <code>Iterator</code> object over all the <code>SOAPHeaderBlock</code> objects
+     *         contained by this <code>SOAPHeader</code>
      */
     public Iterator examineAllHeaderBlocks() {
         return this.getChildrenWithName(null);
     }
 
     /**
-     * Returns an <code>Iterator</code> over all the <code>SOAPHeaderBlock</code>
-     * objects in this <code>SOAPHeader </code> object and detaches them from
-     * this <code>SOAPHeader</code> object.
-     *
-     * @return an <code>Iterator</code> object over all the
-     *         <code>SOAPHeaderBlock</code> objects contained by this
-     *         <code>SOAPHeader</code>
+     * Returns an <code>Iterator</code> over all the <code>SOAPHeaderBlock</code> objects in this
+     * <code>SOAPHeader </code> object and detaches them from this <code>SOAPHeader</code> object.
+     *
+     * @return an <code>Iterator</code> object over all the <code>SOAPHeaderBlock</code> objects
+     *         contained by this <code>SOAPHeader</code>
      */
     public Iterator extractAllHeaderBlocks() {
         Collection result = new ArrayList();
@@ -250,7 +236,7 @@
         if (!(parent instanceof SOAPEnvelopeImpl)) {
             throw new SOAPProcessingException(
                     "Expecting an implementation of SOAP Envelope 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/SOAPMessageImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPMessageImpl.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/SOAPMessageImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPMessageImpl.java Wed Mar  7 06:59:00 2007
@@ -57,9 +57,9 @@
     protected void internalSerialize(XMLStreamWriter writer, boolean cache,
                                      boolean includeXMLDeclaration) throws XMLStreamException {
         if (cache) {
-            ((OMNodeEx)this.ownerNode.getDocumentElement()).internalSerialize(writer);
+            ((OMNodeEx) this.ownerNode.getDocumentElement()).internalSerialize(writer);
         } else {
-            ((OMNodeEx)this.ownerNode.getDocumentElement()).internalSerializeAndConsume(writer);
+            ((OMNodeEx) this.ownerNode.getDocumentElement()).internalSerializeAndConsume(writer);
         }
     }
 }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPTextImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPTextImpl.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/SOAPTextImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPTextImpl.java Wed Mar  7 06:59:00 2007
@@ -22,7 +22,7 @@
 import org.apache.axiom.soap.SOAPFactory;
 import org.apache.axiom.soap.SOAPProcessingException;
 
-public class SOAPTextImpl extends SOAPElement{
+public class SOAPTextImpl extends SOAPElement {
 
     protected SOAPTextImpl(OMElement parent, SOAPFactory factory)
             throws SOAPProcessingException {
@@ -30,7 +30,7 @@
     }
 
     protected SOAPTextImpl(OMElement parent, OMXMLParserWrapper builder,
-            SOAPFactory factory) {
+                           SOAPFactory factory) {
         super(parent, SOAP12Constants.SOAP_FAULT_TEXT_LOCAL_NAME, builder, factory);
     }
 

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/factory/DOMSOAPFactory.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/factory/DOMSOAPFactory.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/factory/DOMSOAPFactory.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/factory/DOMSOAPFactory.java Wed Mar  7 06:59:00 2007
@@ -42,11 +42,12 @@
 
 public class DOMSOAPFactory extends OMDOMFactory implements SOAPFactory {
 
-	public DOMSOAPFactory() {}
-	
-	public DOMSOAPFactory(DocumentImpl doc) {
-		super(doc);
-	}
+    public DOMSOAPFactory() {
+    }
+
+    public DOMSOAPFactory(DocumentImpl doc) {
+        super(doc);
+    }
 
     public String getSoapVersionURI() {
         throw new UnsupportedOperationException();
@@ -58,141 +59,152 @@
         return messageImpl;
     }
 
-	public SOAPMessage createSOAPMessage(SOAPEnvelope envelope, OMXMLParserWrapper parserWrapper) {
-		SOAPMessageImpl messageImpl = new SOAPMessageImpl(envelope, parserWrapper, this);
-		this.document = messageImpl;
-		return messageImpl;
-	}
-
-	public SOAPEnvelope createSOAPEnvelope(OMXMLParserWrapper builder) {
-		return new SOAPEnvelopeImpl((DocumentImpl)this.createOMDocument(), builder, this);
-	}
-
-	public SOAPEnvelope createSOAPEnvelope() throws SOAPProcessingException {
-		throw new UnsupportedOperationException();
-	}
-
-	public SOAPHeader createSOAPHeader(SOAPEnvelope envelope) throws SOAPProcessingException {
-		throw new UnsupportedOperationException();
-	}
-
-	public SOAPHeader createSOAPHeader(SOAPEnvelope envelope, OMXMLParserWrapper builder) {
-		throw new UnsupportedOperationException();
-	}
-
-	public SOAPHeaderBlock createSOAPHeaderBlock(String localName, OMNamespace ns, SOAPHeader parent) throws SOAPProcessingException {
-		throw new UnsupportedOperationException();
-	}
-
-	public SOAPHeaderBlock createSOAPHeaderBlock(String localName, OMNamespace ns, SOAPHeader parent, OMXMLParserWrapper builder) throws SOAPProcessingException {
-		throw new UnsupportedOperationException();
-	}
-
-	public SOAPFault createSOAPFault(SOAPBody parent, Exception e) throws SOAPProcessingException {
-		throw new UnsupportedOperationException();
-	}
-
-	public SOAPFault createSOAPFault(SOAPBody parent) throws SOAPProcessingException {
-        return new SOAP12FaultImpl(parent,this);
-	}	
-
-	public SOAPFault createSOAPFault(SOAPBody parent, OMXMLParserWrapper builder) {
-		throw new UnsupportedOperationException();
-	}
-
-	public SOAPBody createSOAPBody(SOAPEnvelope envelope) throws SOAPProcessingException {
-		throw new UnsupportedOperationException();
-	}
-
-	public SOAPBody createSOAPBody(SOAPEnvelope envelope, OMXMLParserWrapper builder) {
-		throw new UnsupportedOperationException();
-	}
-
-	public SOAPFaultCode createSOAPFaultCode(SOAPFault parent) throws SOAPProcessingException {
-		throw new UnsupportedOperationException();
-	}
-
-	public SOAPFaultCode createSOAPFaultCode(SOAPFault parent, OMXMLParserWrapper builder) {
-		throw new UnsupportedOperationException();
-	}
-
-	public SOAPFaultValue createSOAPFaultValue(SOAPFaultCode parent) throws SOAPProcessingException {
-		throw new UnsupportedOperationException();
-	}
-
-	public SOAPFaultValue createSOAPFaultValue(SOAPFaultCode parent, OMXMLParserWrapper builder) {
-		throw new UnsupportedOperationException();
-	}
-
-	public SOAPFaultValue createSOAPFaultValue(SOAPFaultSubCode parent) throws SOAPProcessingException {
-		throw new UnsupportedOperationException();
-	}
-
-	public SOAPFaultValue createSOAPFaultValue(SOAPFaultSubCode parent, OMXMLParserWrapper builder) {
-		throw new UnsupportedOperationException();
-	}
-
-	public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultCode parent) throws SOAPProcessingException {
-		throw new UnsupportedOperationException();
-	}
-
-	public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultCode parent, OMXMLParserWrapper builder) {
-		throw new UnsupportedOperationException();
-	}
-
-	public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultSubCode parent) throws SOAPProcessingException {
-		throw new UnsupportedOperationException();
-	}
-
-	public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultSubCode parent, OMXMLParserWrapper builder) {
-		throw new UnsupportedOperationException();
-	}
-
-	public SOAPFaultReason createSOAPFaultReason(SOAPFault parent) throws SOAPProcessingException {
-		throw new UnsupportedOperationException();
-	}
-
-	public SOAPFaultReason createSOAPFaultReason(SOAPFault parent, OMXMLParserWrapper builder) {
-		throw new UnsupportedOperationException();
-	}
-
-	public SOAPFaultText createSOAPFaultText(SOAPFaultReason parent) throws SOAPProcessingException {
-		throw new UnsupportedOperationException();
-	}
-
-	public SOAPFaultText createSOAPFaultText(SOAPFaultReason parent, OMXMLParserWrapper builder) {
-		throw new UnsupportedOperationException();
-	}
-
-	public SOAPFaultNode createSOAPFaultNode(SOAPFault parent) throws SOAPProcessingException {
-		throw new UnsupportedOperationException();
-	}
-
-	public SOAPFaultNode createSOAPFaultNode(SOAPFault parent, OMXMLParserWrapper builder) {
-		throw new UnsupportedOperationException();
-	}
-
-	public SOAPFaultRole createSOAPFaultRole(SOAPFault parent) throws SOAPProcessingException {
-		throw new UnsupportedOperationException();
-	}
-
-	public SOAPFaultRole createSOAPFaultRole(SOAPFault parent, OMXMLParserWrapper builder) {
-		throw new UnsupportedOperationException();
-	}
-
-	public SOAPFaultDetail createSOAPFaultDetail(SOAPFault parent) throws SOAPProcessingException {
-		throw new UnsupportedOperationException();
-	}
-
-	public SOAPFaultDetail createSOAPFaultDetail(SOAPFault parent, OMXMLParserWrapper builder) {
-		throw new UnsupportedOperationException();
-	}
-
-	public SOAPEnvelope getDefaultEnvelope() throws SOAPProcessingException {
-		throw new UnsupportedOperationException();
-	}
+    public SOAPMessage createSOAPMessage(SOAPEnvelope envelope, OMXMLParserWrapper parserWrapper) {
+        SOAPMessageImpl messageImpl = new SOAPMessageImpl(envelope, parserWrapper, this);
+        this.document = messageImpl;
+        return messageImpl;
+    }
+
+    public SOAPEnvelope createSOAPEnvelope(OMXMLParserWrapper builder) {
+        return new SOAPEnvelopeImpl((DocumentImpl) this.createOMDocument(), builder, this);
+    }
+
+    public SOAPEnvelope createSOAPEnvelope() throws SOAPProcessingException {
+        throw new UnsupportedOperationException();
+    }
+
+    public SOAPHeader createSOAPHeader(SOAPEnvelope envelope) throws SOAPProcessingException {
+        throw new UnsupportedOperationException();
+    }
+
+    public SOAPHeader createSOAPHeader(SOAPEnvelope envelope, OMXMLParserWrapper builder) {
+        throw new UnsupportedOperationException();
+    }
+
+    public SOAPHeaderBlock createSOAPHeaderBlock(String localName, OMNamespace ns,
+                                                 SOAPHeader parent) throws SOAPProcessingException {
+        throw new UnsupportedOperationException();
+    }
+
+    public SOAPHeaderBlock createSOAPHeaderBlock(String localName, OMNamespace ns,
+                                                 SOAPHeader parent, OMXMLParserWrapper builder)
+            throws SOAPProcessingException {
+        throw new UnsupportedOperationException();
+    }
+
+    public SOAPFault createSOAPFault(SOAPBody parent, Exception e) throws SOAPProcessingException {
+        throw new UnsupportedOperationException();
+    }
+
+    public SOAPFault createSOAPFault(SOAPBody parent) throws SOAPProcessingException {
+        return new SOAP12FaultImpl(parent, this);
+    }
+
+    public SOAPFault createSOAPFault(SOAPBody parent, OMXMLParserWrapper builder) {
+        throw new UnsupportedOperationException();
+    }
+
+    public SOAPBody createSOAPBody(SOAPEnvelope envelope) throws SOAPProcessingException {
+        throw new UnsupportedOperationException();
+    }
+
+    public SOAPBody createSOAPBody(SOAPEnvelope envelope, OMXMLParserWrapper builder) {
+        throw new UnsupportedOperationException();
+    }
+
+    public SOAPFaultCode createSOAPFaultCode(SOAPFault parent) throws SOAPProcessingException {
+        throw new UnsupportedOperationException();
+    }
+
+    public SOAPFaultCode createSOAPFaultCode(SOAPFault parent, OMXMLParserWrapper builder) {
+        throw new UnsupportedOperationException();
+    }
+
+    public SOAPFaultValue createSOAPFaultValue(SOAPFaultCode parent)
+            throws SOAPProcessingException {
+        throw new UnsupportedOperationException();
+    }
+
+    public SOAPFaultValue createSOAPFaultValue(SOAPFaultCode parent, OMXMLParserWrapper builder) {
+        throw new UnsupportedOperationException();
+    }
+
+    public SOAPFaultValue createSOAPFaultValue(SOAPFaultSubCode parent)
+            throws SOAPProcessingException {
+        throw new UnsupportedOperationException();
+    }
+
+    public SOAPFaultValue createSOAPFaultValue(SOAPFaultSubCode parent,
+                                               OMXMLParserWrapper builder) {
+        throw new UnsupportedOperationException();
+    }
+
+    public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultCode parent)
+            throws SOAPProcessingException {
+        throw new UnsupportedOperationException();
+    }
+
+    public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultCode parent,
+                                                   OMXMLParserWrapper builder) {
+        throw new UnsupportedOperationException();
+    }
+
+    public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultSubCode parent)
+            throws SOAPProcessingException {
+        throw new UnsupportedOperationException();
+    }
+
+    public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultSubCode parent,
+                                                   OMXMLParserWrapper builder) {
+        throw new UnsupportedOperationException();
+    }
 
-	public SOAPEnvelope getDefaultFaultEnvelope() throws SOAPProcessingException {
+    public SOAPFaultReason createSOAPFaultReason(SOAPFault parent) throws SOAPProcessingException {
+        throw new UnsupportedOperationException();
+    }
+
+    public SOAPFaultReason createSOAPFaultReason(SOAPFault parent, OMXMLParserWrapper builder) {
+        throw new UnsupportedOperationException();
+    }
+
+    public SOAPFaultText createSOAPFaultText(SOAPFaultReason parent)
+            throws SOAPProcessingException {
+        throw new UnsupportedOperationException();
+    }
+
+    public SOAPFaultText createSOAPFaultText(SOAPFaultReason parent, OMXMLParserWrapper builder) {
+        throw new UnsupportedOperationException();
+    }
+
+    public SOAPFaultNode createSOAPFaultNode(SOAPFault parent) throws SOAPProcessingException {
+        throw new UnsupportedOperationException();
+    }
+
+    public SOAPFaultNode createSOAPFaultNode(SOAPFault parent, OMXMLParserWrapper builder) {
+        throw new UnsupportedOperationException();
+    }
+
+    public SOAPFaultRole createSOAPFaultRole(SOAPFault parent) throws SOAPProcessingException {
+        throw new UnsupportedOperationException();
+    }
+
+    public SOAPFaultRole createSOAPFaultRole(SOAPFault parent, OMXMLParserWrapper builder) {
+        throw new UnsupportedOperationException();
+    }
+
+    public SOAPFaultDetail createSOAPFaultDetail(SOAPFault parent) throws SOAPProcessingException {
+        throw new UnsupportedOperationException();
+    }
+
+    public SOAPFaultDetail createSOAPFaultDetail(SOAPFault parent, OMXMLParserWrapper builder) {
+        throw new UnsupportedOperationException();
+    }
+
+    public SOAPEnvelope getDefaultEnvelope() throws SOAPProcessingException {
+        throw new UnsupportedOperationException();
+    }
+
+    public SOAPEnvelope getDefaultFaultEnvelope() throws SOAPProcessingException {
         SOAPEnvelope defaultEnvelope = getDefaultEnvelope();
         SOAPFault fault = createSOAPFault(defaultEnvelope.getBody());
 
@@ -207,7 +219,7 @@
         createSOAPFaultDetail(fault);
 
         return defaultEnvelope;
-	}
+    }
 
     public SOAPMessage createSOAPMessage() {
         return new SOAPMessageImpl(this);
@@ -217,13 +229,12 @@
         throw new UnsupportedOperationException("TODO");
     }
 
-    public SOAPHeaderBlock createSOAPHeaderBlock(String localName, OMNamespace ns) throws SOAPProcessingException {
+    public SOAPHeaderBlock createSOAPHeaderBlock(String localName, OMNamespace ns)
+            throws SOAPProcessingException {
         throw new UnsupportedOperationException("TODO");
     }
 
-    /**
-     * @see SOAP11Factory,SOAP12Factory
-     */
+    /** @see SOAP11Factory,SOAP12Factory */
     public SOAPFault createSOAPFault() throws SOAPProcessingException {
         return null;
     }
@@ -253,7 +264,7 @@
     }
 
     public SOAPFaultNode createSOAPFaultNode() throws SOAPProcessingException {
-         throw new UnsupportedOperationException("TODO");
+        throw new UnsupportedOperationException("TODO");
     }
 
     public SOAPFaultRole createSOAPFaultRole() throws SOAPProcessingException {

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11BodyImpl.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/SOAP11BodyImpl.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/SOAP11BodyImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11BodyImpl.java Wed Mar  7 06:59:00 2007
@@ -25,9 +25,7 @@
 import org.apache.axiom.soap.impl.dom.SOAPBodyImpl;
 
 public class SOAP11BodyImpl extends SOAPBodyImpl {
-    /**
-     * @param envelope
-     */
+    /** @param envelope  */
     public SOAP11BodyImpl(SOAPEnvelope envelope, SOAPFactory factory)
             throws SOAPProcessingException {
         super(envelope, factory);
@@ -40,13 +38,13 @@
      * @param builder
      */
     public SOAP11BodyImpl(SOAPEnvelope envelope, OMXMLParserWrapper builder,
-            SOAPFactory factory) {
+                          SOAPFactory factory) {
         super(envelope, builder, factory);
     }
 
     public SOAPFault addFault(Exception e) throws OMException {
-    	SOAPFault soapFault = new SOAP11FaultImpl(this, e, (SOAPFactory)this.factory);
-    	this.hasSOAPFault = true;
-    	return soapFault;
+        SOAPFault soapFault = new SOAP11FaultImpl(this, e, (SOAPFactory) this.factory);
+        this.hasSOAPFault = true;
+        return soapFault;
     }
 }



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