You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by js...@apache.org on 2007/03/22 18:05:09 UTC

svn commit: r521347 - in /incubator/tuscany/sandbox/sebastien/java/sca/modules: ./ assembly-builder/ assembly-scdl/ builder/ builder/src/ impl-crud/src/main/java/org/apache/tuscany/impl/ impl-crud/src/main/java/org/apache/tuscany/impl/crud/ impl-crud/s...

Author: jsdelfino
Date: Thu Mar 22 10:05:04 2007
New Revision: 521347

URL: http://svn.apache.org/viewvc?view=rev&rev=521347
Log:
Added minimum java and wsdl modules. Renamed assembly-builder and assembly-scdl. Added model interface and class to impl-crud module.

Added:
    incubator/tuscany/sandbox/sebastien/java/sca/modules/builder/
      - copied from r521025, incubator/tuscany/sandbox/sebastien/java/sca/modules/assembly-builder/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/builder/pom.xml
      - copied unchanged from r521346, incubator/tuscany/sandbox/sebastien/java/sca/modules/assembly-builder/pom.xml
    incubator/tuscany/sandbox/sebastien/java/sca/modules/builder/src/
      - copied from r521346, incubator/tuscany/sandbox/sebastien/java/sca/modules/assembly-builder/src/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/impl-crud/src/main/java/org/apache/tuscany/impl/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/impl-crud/src/main/java/org/apache/tuscany/impl/crud/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/impl-crud/src/main/java/org/apache/tuscany/impl/crud/model/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/impl-crud/src/main/java/org/apache/tuscany/impl/crud/model/CRUDImplementation.java   (with props)
    incubator/tuscany/sandbox/sebastien/java/sca/modules/impl-crud/src/main/java/org/apache/tuscany/impl/crud/model/impl/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/impl-crud/src/main/java/org/apache/tuscany/impl/crud/model/impl/CRUDImplementationImpl.java   (with props)
    incubator/tuscany/sandbox/sebastien/java/sca/modules/java/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/java/pom.xml   (with props)
    incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/model/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/model/JavaImplementation.java   (with props)
    incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/model/JavaInterface.java   (with props)
    incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/model/impl/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/model/impl/JavaImplementationImpl.java   (with props)
    incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/model/impl/JavaInterfaceImpl.java   (with props)
    incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/resources/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/test/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/test/java/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/scdl/
      - copied from r521025, incubator/tuscany/sandbox/sebastien/java/sca/modules/assembly-scdl/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/scdl/pom.xml
      - copied unchanged from r521346, incubator/tuscany/sandbox/sebastien/java/sca/modules/assembly-scdl/pom.xml
    incubator/tuscany/sandbox/sebastien/java/sca/modules/scdl/src/
      - copied from r521346, incubator/tuscany/sandbox/sebastien/java/sca/modules/assembly-scdl/src/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/pom.xml   (with props)
    incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/src/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/src/main/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/src/main/java/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/src/main/java/org/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/src/main/java/org/apache/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/src/main/java/org/apache/tuscany/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/src/main/java/org/apache/tuscany/wsdl/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/src/main/java/org/apache/tuscany/wsdl/model/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/src/main/java/org/apache/tuscany/wsdl/model/WSDLInterface.java   (with props)
    incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/src/main/java/org/apache/tuscany/wsdl/model/impl/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/src/main/java/org/apache/tuscany/wsdl/model/impl/WSDLInterfaceImpl.java   (with props)
    incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/src/main/resources/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/src/test/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/src/test/java/
Removed:
    incubator/tuscany/sandbox/sebastien/java/sca/modules/assembly-builder/
    incubator/tuscany/sandbox/sebastien/java/sca/modules/assembly-scdl/
Modified:
    incubator/tuscany/sandbox/sebastien/java/sca/modules/pom.xml

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules/impl-crud/src/main/java/org/apache/tuscany/impl/crud/model/CRUDImplementation.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules/impl-crud/src/main/java/org/apache/tuscany/impl/crud/model/CRUDImplementation.java?view=auto&rev=521347
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules/impl-crud/src/main/java/org/apache/tuscany/impl/crud/model/CRUDImplementation.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules/impl-crud/src/main/java/org/apache/tuscany/impl/crud/model/CRUDImplementation.java Thu Mar 22 10:05:04 2007
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * 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.    
+ */
+package org.apache.tuscany.impl.crud.model;
+
+import org.apache.tuscany.assembly.model.Implementation;
+
+public interface CRUDImplementation extends Implementation {
+	
+	String getDirectory();
+	
+	void setDirectory(String directory);
+
+}

Propchange: incubator/tuscany/sandbox/sebastien/java/sca/modules/impl-crud/src/main/java/org/apache/tuscany/impl/crud/model/CRUDImplementation.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/sebastien/java/sca/modules/impl-crud/src/main/java/org/apache/tuscany/impl/crud/model/CRUDImplementation.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules/impl-crud/src/main/java/org/apache/tuscany/impl/crud/model/impl/CRUDImplementationImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules/impl-crud/src/main/java/org/apache/tuscany/impl/crud/model/impl/CRUDImplementationImpl.java?view=auto&rev=521347
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules/impl-crud/src/main/java/org/apache/tuscany/impl/crud/model/impl/CRUDImplementationImpl.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules/impl-crud/src/main/java/org/apache/tuscany/impl/crud/model/impl/CRUDImplementationImpl.java Thu Mar 22 10:05:04 2007
@@ -0,0 +1,36 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * 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.    
+ */
+package org.apache.tuscany.impl.crud.model.impl;
+
+import org.apache.tuscany.assembly.model.impl.ComponentTypeImpl;
+import org.apache.tuscany.impl.crud.model.CRUDImplementation;
+
+public class CRUDImplementationImpl extends ComponentTypeImpl implements CRUDImplementation {
+	
+	private String directory;
+
+	public String getDirectory() {
+		return directory;
+	}
+
+	public void setDirectory(String directory) {
+		this.directory = directory;
+	}
+	
+}

Propchange: incubator/tuscany/sandbox/sebastien/java/sca/modules/impl-crud/src/main/java/org/apache/tuscany/impl/crud/model/impl/CRUDImplementationImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/sebastien/java/sca/modules/impl-crud/src/main/java/org/apache/tuscany/impl/crud/model/impl/CRUDImplementationImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules/java/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules/java/pom.xml?view=auto&rev=521347
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules/java/pom.xml (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules/java/pom.xml Thu Mar 22 10:05:04 2007
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * 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.    
+-->
+<project>
+    <parent>
+        <groupId>org.apache.tuscany.sca.modules</groupId>
+        <artifactId>parent</artifactId>
+        <version>0.1-sandbox-incubating-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>tuscany-assembly-java</artifactId>
+    <packaging>jar</packaging>
+    <name>Apache Tuscany Java Interface Model</name>
+    <description>Apache Tuscany Java Interface Model.</description>
+
+    <dependencies>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca.modules</groupId>
+            <artifactId>tuscany-assembly</artifactId>
+            <version>0.1-sandbox-incubating-SNAPSHOT</version>
+        </dependency>
+
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>4.2</version>
+            <scope>test</scope>
+        </dependency>
+		
+    </dependencies>
+</project>

Propchange: incubator/tuscany/sandbox/sebastien/java/sca/modules/java/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/sebastien/java/sca/modules/java/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/model/JavaImplementation.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/model/JavaImplementation.java?view=auto&rev=521347
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/model/JavaImplementation.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/model/JavaImplementation.java Thu Mar 22 10:05:04 2007
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * 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.    
+ */
+package org.apache.tuscany.java.model;
+
+import org.apache.tuscany.assembly.model.Implementation;
+
+/**
+ * Represents a Java implementation.
+ *
+ *  @version $Rev$ $Date$
+ */
+public interface JavaImplementation extends Implementation {
+	
+	/**
+	 * Returns the name of the Java implementation class.
+	 * @return the name of the Java implementation class
+	 */
+	String getName();
+	
+	/**
+	 * Sets the name of the Java implementation class.
+	 * @param className the name of the Java implementation class
+	 */
+	void setName(String className);
+
+	/**
+	 * Returns the Java implementation class.
+	 * @return the Java implementation class
+	 */
+	Class<?> getJavaClass();
+
+	/**
+	 * Sets the Java implementation class.
+	 * @param javaClass the Java implementation class
+	 */
+	void setJavaClass(Class<?> javaClass);
+	
+}

Propchange: incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/model/JavaImplementation.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/model/JavaImplementation.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/model/JavaInterface.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/model/JavaInterface.java?view=auto&rev=521347
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/model/JavaInterface.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/model/JavaInterface.java Thu Mar 22 10:05:04 2007
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * 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.    
+ */
+package org.apache.tuscany.java.model;
+
+import org.apache.tuscany.assembly.model.Interface;
+
+/**
+ * Represents a Java interface.
+ *
+ *  @version $Rev$ $Date$
+ */
+public interface JavaInterface extends Interface{
+	
+	/**
+	 * Returns the name of the Java interface class.
+	 * @return the name of the Java interface class
+	 */
+	String getName();
+	
+	/**
+	 * Sets the name of the Java interface class.
+	 * @param className the name of the Java interface class
+	 */
+	void setName(String className);
+	
+	/**
+	 * Returns the Java interface class.
+	 * @return the Java interface class
+	 */
+	Class<?> getJavaClass();
+
+	/**
+	 * Sets the Java interface class.
+	 * @param javaClass the Java interface class
+	 */
+	void setJavaClass(Class<?> javaClass);
+	
+}

Propchange: incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/model/JavaInterface.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/model/JavaInterface.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/model/impl/JavaImplementationImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/model/impl/JavaImplementationImpl.java?view=auto&rev=521347
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/model/impl/JavaImplementationImpl.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/model/impl/JavaImplementationImpl.java Thu Mar 22 10:05:04 2007
@@ -0,0 +1,55 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * 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.    
+ */
+package org.apache.tuscany.java.model.impl;
+
+import org.apache.tuscany.assembly.model.impl.ComponentTypeImpl;
+import org.apache.tuscany.java.model.JavaImplementation;
+
+/**
+ * Represents a Java implementation.
+ *
+ *  @version $Rev$ $Date$
+ */
+public class JavaImplementationImpl extends ComponentTypeImpl implements JavaImplementation {
+	
+	private String className;
+	private Class<?> javaClass;
+
+	public String getName() {
+		if (isUndefined())
+			return className;
+		else
+			return javaClass.getName();
+	}
+
+	public void setName(String className) {
+		if (!isUndefined())
+			throw new IllegalStateException();
+		this.className = className;
+	}
+
+	public Class<?> getJavaClass() {
+		return javaClass;
+	}
+	
+	public void setJavaClass(Class<?> javaClass) {
+		this.javaClass = javaClass;
+	}
+
+}

Propchange: incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/model/impl/JavaImplementationImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/model/impl/JavaImplementationImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/model/impl/JavaInterfaceImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/model/impl/JavaInterfaceImpl.java?view=auto&rev=521347
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/model/impl/JavaInterfaceImpl.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/model/impl/JavaInterfaceImpl.java Thu Mar 22 10:05:04 2007
@@ -0,0 +1,55 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * 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.    
+ */
+package org.apache.tuscany.java.model.impl;
+
+import org.apache.tuscany.assembly.model.impl.InterfaceImpl;
+import org.apache.tuscany.java.model.JavaInterface;
+
+/**
+ * Represents a Java interface.
+ *
+ *  @version $Rev$ $Date$
+ */
+public class JavaInterfaceImpl extends InterfaceImpl implements JavaInterface {
+	
+	private String className;
+	private Class<?> javaClass;
+
+	public String getName() {
+		if (isUndefined())
+			return className;
+		else
+			return javaClass.getName();
+	}
+
+	public void setName(String className) {
+		if (!isUndefined())
+			throw new IllegalStateException();
+		this.className = className;
+	}
+	
+	public Class<?> getJavaClass() {
+		return javaClass;
+	}
+	
+	public void setJavaClass(Class<?> javaClass) {
+		this.javaClass = javaClass;
+	}
+
+}

Propchange: incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/model/impl/JavaInterfaceImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/sebastien/java/sca/modules/java/src/main/java/org/apache/tuscany/java/model/impl/JavaInterfaceImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/tuscany/sandbox/sebastien/java/sca/modules/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules/pom.xml?view=diff&rev=521347&r1=521346&r2=521347
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules/pom.xml (original)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules/pom.xml Thu Mar 22 10:05:04 2007
@@ -39,8 +39,10 @@
             <modules>
                 <module>policy</module>
                 <module>assembly</module>
-                <module>assembly-scdl</module>
-                <module>assembly-builder</module>
+                <module>java</module>
+                <module>wsdl</module>
+                <module>scdl</module>
+                <module>builder</module>
                 <module>impl-crud</module>
                 <module>http</module>
                 <module>http-jetty</module>
@@ -53,8 +55,10 @@
             <modules>
                 <module>policy</module>
                 <module>assembly</module>
-                <module>assembly-scdl</module>
-                <module>assembly-builder</module>
+                <module>java</module>
+                <module>wsdl</module>
+                <module>scdl</module>
+                <module>builder</module>
                 <module>impl-crud</module>
                 <module>http</module>
                 <module>http-jetty</module>
@@ -67,8 +71,10 @@
             <modules>
                 <module>policy</module>
                 <module>assembly</module>
-                <module>assembly-scdl</module>
-                <module>assembly-builder</module>
+                <module>java</module>
+                <module>wsdl</module>
+                <module>scdl</module>
+                <module>builder</module>
                 <module>impl-crud</module>
                 <module>http</module>
                 <module>http-jetty</module>

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/pom.xml?view=auto&rev=521347
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/pom.xml (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/pom.xml Thu Mar 22 10:05:04 2007
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * 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.    
+-->
+<project>
+    <parent>
+        <groupId>org.apache.tuscany.sca.modules</groupId>
+        <artifactId>parent</artifactId>
+        <version>0.1-sandbox-incubating-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>tuscany-assembly-wsdl</artifactId>
+    <packaging>jar</packaging>
+    <name>Apache Tuscany WSDL Interface Model</name>
+    <description>Apache Tuscany WSDL Interface Model.</description>
+
+    <dependencies>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca.modules</groupId>
+            <artifactId>tuscany-assembly</artifactId>
+            <version>0.1-sandbox-incubating-SNAPSHOT</version>
+        </dependency>
+
+         <dependency>
+             <groupId>wsdl4j</groupId>
+             <artifactId>wsdl4j</artifactId>
+             <version>1.6.2</version>
+         </dependency>
+
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>4.2</version>
+            <scope>test</scope>
+        </dependency>
+		
+    </dependencies>
+</project>

Propchange: incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/src/main/java/org/apache/tuscany/wsdl/model/WSDLInterface.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/src/main/java/org/apache/tuscany/wsdl/model/WSDLInterface.java?view=auto&rev=521347
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/src/main/java/org/apache/tuscany/wsdl/model/WSDLInterface.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/src/main/java/org/apache/tuscany/wsdl/model/WSDLInterface.java Thu Mar 22 10:05:04 2007
@@ -0,0 +1,57 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * 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.    
+ */
+package org.apache.tuscany.wsdl.model;
+
+import javax.wsdl.PortType;
+import javax.xml.namespace.QName;
+
+import org.apache.tuscany.assembly.model.Interface;
+
+/**
+ * Represents a Java interface.
+ *
+ *  @version $Rev$ $Date$
+ */
+public interface WSDLInterface extends Interface{
+	
+	/**
+	 * Returns the name of the WSDL interface.
+	 * @return the name of the WSDL interface
+	 */
+	QName getName();
+	
+	/**
+	 * Sets the name of the WSDL interface.
+	 * @param className the name of the WSDL interface
+	 */
+	void setName(QName interfaceName);
+	
+	/**
+	 * Returns the WSDL interface portType.
+	 * @return the WSDL interface portType
+	 */
+	PortType getPortType();
+	
+	/**
+	 * Sets the WSDL interface portType
+	 * @param portType the WSDL interface portType
+	 */
+	void setPortType(PortType portType);
+	
+}

Propchange: incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/src/main/java/org/apache/tuscany/wsdl/model/WSDLInterface.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/src/main/java/org/apache/tuscany/wsdl/model/WSDLInterface.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/src/main/java/org/apache/tuscany/wsdl/model/impl/WSDLInterfaceImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/src/main/java/org/apache/tuscany/wsdl/model/impl/WSDLInterfaceImpl.java?view=auto&rev=521347
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/src/main/java/org/apache/tuscany/wsdl/model/impl/WSDLInterfaceImpl.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/src/main/java/org/apache/tuscany/wsdl/model/impl/WSDLInterfaceImpl.java Thu Mar 22 10:05:04 2007
@@ -0,0 +1,59 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * 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.    
+ */
+package org.apache.tuscany.wsdl.model.impl;
+
+import javax.wsdl.PortType;
+import javax.xml.namespace.QName;
+
+import org.apache.tuscany.assembly.model.impl.InterfaceImpl;
+import org.apache.tuscany.wsdl.model.WSDLInterface;
+
+/**
+ * Represents a WSDL interface.
+ *
+ *  @version $Rev$ $Date$
+ */
+public class WSDLInterfaceImpl extends InterfaceImpl implements WSDLInterface {
+	
+	private QName interfaceName;
+	private PortType portType;
+
+	public QName getName() {
+		if (isUndefined())
+			return interfaceName;
+		else
+			return portType.getQName();
+	}
+
+	public void setName(QName interfaceName) {
+		if (!isUndefined())
+			this.interfaceName = interfaceName;
+		else
+			throw new IllegalArgumentException();
+	}
+	
+	public PortType getPortType() {
+		return portType;
+	}
+	
+	public void setPortType(PortType portType) {
+		this.portType = portType;
+	}
+	
+}

Propchange: incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/src/main/java/org/apache/tuscany/wsdl/model/impl/WSDLInterfaceImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/sebastien/java/sca/modules/wsdl/src/main/java/org/apache/tuscany/wsdl/model/impl/WSDLInterfaceImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date



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