[jboss-svn-commits] JBossWS SVN: r1164 - branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/soap

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Oct 6 04:51:31 EDT 2006


Author: thomas.diesler at jboss.com
Date: 2006-10-06 04:51:28 -0400 (Fri, 06 Oct 2006)
New Revision: 1164

Modified:
   branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/soap/SOAPContentElement.java
Log:
Layout code. Please use the JBossWSCodeStyle.xml

Modified: branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/soap/SOAPContentElement.java
===================================================================
--- branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/soap/SOAPContentElement.java	2006-10-06 07:52:06 UTC (rev 1163)
+++ branches/tdiesler/jbossws-1.0/src/main/java/org/jboss/ws/soap/SOAPContentElement.java	2006-10-06 08:51:28 UTC (rev 1164)
@@ -126,7 +126,7 @@
    {
       return getParamMetaData().getJavaType();
    }
-   
+
    public boolean isDOMValid()
    {
       return isDOMValid;
@@ -972,19 +972,19 @@
       }
    }
 
-
-   public void writeElement(Writer writer) {
+   public void writeElement(Writer writer)
+   {
       try
       {
          handleMTOMTransitions();
 
-         if(isDOMValid)
+         if (isDOMValid)
          {
             new DOMWriter(writer).print(this);
          }
          else
          {
-            writer.write( getXMLFragment() );
+            writer.write(getXMLFragment());
          }
 
       }
@@ -1006,11 +1006,12 @@
     * it's needs to be decided wether or not the <code>xop:Include</code> should be restored.
     * This as well depends upon the message context property.
     */
-   public void handleMTOMTransitions() {
+   public void handleMTOMTransitions()
+   {
 
       boolean mtomEnabled = isXOPParameter() && XOPContext.isMTOMEnabled();
 
-      if( paramMetaData != null && mtomEnabled == false )
+      if (paramMetaData != null && mtomEnabled == false)
       {
          // If MTOM is disabled, we force dom expansion.
          // This will inline any XOP include element
@@ -1022,7 +1023,7 @@
          msgContext.setProperty(CommonMessageContext.ALLOW_EXPAND_TO_DOM, Boolean.TRUE);
          expandToDOM();
       }
-      else if(isDOMValid && mtomEnabled )
+      else if (isDOMValid && mtomEnabled)
       {
          // When the DOM representation is valid,
          // but MTOM is enabled we need to convert the inlined
@@ -1037,7 +1038,9 @@
    {
       return paramMetaData != null && paramMetaData.isXOP();
    }
-   public void accept(SAAJVisitor visitor) {
+
+   public void accept(SAAJVisitor visitor)
+   {
       visitor.visitSOAPContentElement(this);
    }
 }




More information about the jboss-svn-commits mailing list