You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by lr...@apache.org on 2008/05/30 01:09:25 UTC

svn commit: r661519 - in /incubator/tuscany/java/sca/modules/interface-wsdl-xml/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml: BPELExtensionHandler.java BPELPartnerLinkTypeExt.java

Author: lresende
Date: Thu May 29 16:09:25 2008
New Revision: 661519

URL: http://svn.apache.org/viewvc?rev=661519&view=rev
Log:
Removing @Author tags as it looks like this is discouraged by Apache

Modified:
    incubator/tuscany/java/sca/modules/interface-wsdl-xml/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/BPELExtensionHandler.java
    incubator/tuscany/java/sca/modules/interface-wsdl-xml/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/BPELPartnerLinkTypeExt.java

Modified: incubator/tuscany/java/sca/modules/interface-wsdl-xml/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/BPELExtensionHandler.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/interface-wsdl-xml/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/BPELExtensionHandler.java?rev=661519&r1=661518&r2=661519&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/interface-wsdl-xml/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/BPELExtensionHandler.java (original)
+++ incubator/tuscany/java/sca/modules/interface-wsdl-xml/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/BPELExtensionHandler.java Thu May 29 16:09:25 2008
@@ -6,15 +6,15 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
- * under the License.    
+ * under the License.
  */
 package org.apache.tuscany.sca.interfacedef.wsdl.xml;
 
@@ -34,12 +34,11 @@
 /**
  * A WSDL extension processor for extension elements introduced by BPEL - in particular
  * the <partnerLinkType.../> elements
- * @author Mike Edwards
  *
  * @version $Rev$ $Date$
  */
 public class BPELExtensionHandler implements ExtensionSerializer, ExtensionDeserializer {
-	
+
 	private final String localName = "partnerLinkType";
 	private final String roleName = "role";
 
@@ -58,13 +57,13 @@
 		// <foo:partnerLinkType>
 		BPELPartnerLinkTypeExt thePLinkType = (BPELPartnerLinkTypeExt) theElement;
 		QName theType = thePLinkType.getElementType();
-		
-		writer.println("<" + theType.toString() + 
+
+		writer.println("<" + theType.toString() +
 				       " name=\"" + thePLinkType.getName() + "\">");
 		for( int i = 0; i < 2; i++ ) {
 			if( thePLinkType.getRoleName( i ) != null ) {
-				writer.println( "<" + theType.getPrefix() + ":role" 
-						       + " name=\"" + thePLinkType.getRoleName(i) + "\" portType=\"" 
+				writer.println( "<" + theType.getPrefix() + ":role"
+						       + " name=\"" + thePLinkType.getRoleName(i) + "\" portType=\""
 						       + thePLinkType.getRolePortType(i) + "\">");
 			} // end if
 		} // end for
@@ -79,7 +78,7 @@
 	 *       <foo:role name="somename" portType="xyz:portTypeName"/>
 	 *       <foo:role name="othername" portType="xyz:portTypeName2"/>
 	 *   <foo:partnerLinkType>
-	 *   
+	 *
 	 *   One role is mandatory, the second is optional.
 	 */
 	@SuppressWarnings("unchecked")
@@ -87,13 +86,13 @@
 			Element theElement, Definition def, ExtensionRegistry extReg)
 			throws WSDLException {
 		// System.out.println("BPELExtensionHandler unmarshall called");
-		
+
 		// Check that this elementType really is a partnerLinkType element
 		if( !elementType.getLocalPart().equals(localName) ) return null;
 		BPELPartnerLinkTypeExt theExtension = new BPELPartnerLinkTypeExt();
 		theExtension.setElementType(elementType);
 		theExtension.setName( theElement.getAttribute("name") );
-		
+
 		//Fetch the child "role" elements
 		NodeList theRoles = theElement.getElementsByTagNameNS("*", roleName);
 		for ( int i=0; i < theRoles.getLength(); i++ ) {
@@ -108,9 +107,9 @@
 		return theExtension;
 	} // end unmarshall
 
-	
+
     /**
-     * Returns a QName from a string.  
+     * Returns a QName from a string.
      * @param definition - a WSDL Definition
      * @param value - the String from which to form the QName in the form "pref:localName"
      * @return
@@ -129,5 +128,5 @@
             return null;
         }
     } // end getQNameValue
-	
+
 } // end BPELExtensionHandler

Modified: incubator/tuscany/java/sca/modules/interface-wsdl-xml/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/BPELPartnerLinkTypeExt.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/interface-wsdl-xml/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/BPELPartnerLinkTypeExt.java?rev=661519&r1=661518&r2=661519&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/interface-wsdl-xml/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/BPELPartnerLinkTypeExt.java (original)
+++ incubator/tuscany/java/sca/modules/interface-wsdl-xml/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/BPELPartnerLinkTypeExt.java Thu May 29 16:09:25 2008
@@ -6,15 +6,15 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
- * under the License.    
+ * under the License.
  */
 package org.apache.tuscany.sca.interfacedef.wsdl.xml;
 
@@ -23,12 +23,11 @@
 
 /**
  * A class to serve as the extensibility element for BPEL partnerLinkType elements
- * @author Mike Edwards
  *
  * @version $Rev$ $Date$
  */
 public class BPELPartnerLinkTypeExt implements ExtensibilityElement {
-	
+
 	private QName elementType = null;
 	private String linkTypeName = null;
 	private String[] roleNames = new String[2];
@@ -50,17 +49,17 @@
 	public void setRequired(Boolean required) {
 		// intentionally left blank
 	}
-	
+
 	// -- other methods
-	
+
 	public void setName( String theName ) {
 		linkTypeName = theName;
 	}
-	
+
 	public String getName() {
 		return linkTypeName;
 	}
-	
+
 	public void setRole( int i, String name, QName portType ) {
 		if( i > 1 ) return;
 		roleNames[i] = name;
@@ -71,10 +70,10 @@
 		if( i > 1 ) return null;
 		return roleNames[i];
 	}
-	
+
 	public QName getRolePortType( int i ) {
 		if( i > 1 ) return null;
 		return rolePortTypes[i];
 	}
-	
+
 } // end BPELPartnerLinkTypeExt