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/04/01 07:44:07 UTC
svn commit: r524536 - in /incubator/tuscany/java/sca: idl-java/
idl-java/src/main/java/org/apache/tuscany/sca/idl/java/
idl-java/src/main/java/org/apache/tuscany/sca/idl/java/impl/ idl-wsdl/
idl-wsdl/src/main/java/org/apache/tuscany/sca/idl/wsdl/ idl-w...
Author: jsdelfino
Date: Sat Mar 31 22:44:06 2007
New Revision: 524536
URL: http://svn.apache.org/viewvc?view=rev&rev=524536
Log:
Base classes and interfaces for Java and WSDL interface definitions. Fixed the idl-wsdl and idl-java poms and included them in the scdl4j pom.
Added:
incubator/tuscany/java/sca/idl-java/src/main/java/org/apache/tuscany/sca/idl/java/JavaFactory.java (with props)
incubator/tuscany/java/sca/idl-java/src/main/java/org/apache/tuscany/sca/idl/java/JavaInterface.java (with props)
incubator/tuscany/java/sca/idl-java/src/main/java/org/apache/tuscany/sca/idl/java/impl/
incubator/tuscany/java/sca/idl-java/src/main/java/org/apache/tuscany/sca/idl/java/impl/DefaultJavaFactory.java (with props)
incubator/tuscany/java/sca/idl-java/src/main/java/org/apache/tuscany/sca/idl/java/impl/JavaInterfaceImpl.java (with props)
incubator/tuscany/java/sca/idl-wsdl/src/main/java/org/apache/tuscany/sca/idl/wsdl/WSDLFactory.java (with props)
incubator/tuscany/java/sca/idl-wsdl/src/main/java/org/apache/tuscany/sca/idl/wsdl/WSDLInterface.java (with props)
incubator/tuscany/java/sca/idl-wsdl/src/main/java/org/apache/tuscany/sca/idl/wsdl/impl/
incubator/tuscany/java/sca/idl-wsdl/src/main/java/org/apache/tuscany/sca/idl/wsdl/impl/DefaultWSDLFactory.java (with props)
incubator/tuscany/java/sca/idl-wsdl/src/main/java/org/apache/tuscany/sca/idl/wsdl/impl/WSDLInterfaceImpl.java (with props)
Modified:
incubator/tuscany/java/sca/idl-java/pom.xml
incubator/tuscany/java/sca/idl-wsdl/pom.xml
incubator/tuscany/java/sca/idl/pom.xml
incubator/tuscany/java/sca/scdl4j/pom.xml
Modified: incubator/tuscany/java/sca/idl-java/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/idl-java/pom.xml?view=diff&rev=524536&r1=524535&r2=524536
==============================================================================
--- incubator/tuscany/java/sca/idl-java/pom.xml (original)
+++ incubator/tuscany/java/sca/idl-java/pom.xml Sat Mar 31 22:44:06 2007
@@ -22,12 +22,12 @@
<parent>
<groupId>org.apache.tuscany</groupId>
<artifactId>sca</artifactId>
- <version>1.0-incubating</version>
+ <version>1.0.1-incubating-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
- <groupId>org.apache.tuscany.sca.idl.java</groupId>
- <artifactId>tuscany-idl</artifactId>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-idl-java</artifactId>
<version>0.1-incubating-SNAPSHOT</version>
<name>Apache Tuscany IDL Java</name>
<description>Apache Tuscany IDL Java</description>
@@ -49,21 +49,15 @@
<dependencies>
<dependency>
- <groupId>org.apache.tuscany.sca.idl</groupId>
+ <groupId>org.apache.tuscany.sca</groupId>
<artifactId>tuscany-idl</artifactId>
<version>0.1-incubating-SNAPSHOT</version>
- <scope>compile</scope>
</dependency>
+
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
- <version>3.8</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.easymock</groupId>
- <artifactId>easymock</artifactId>
- <version>2.2</version>
+ <version>4.2</version>
<scope>test</scope>
</dependency>
</dependencies>
Added: incubator/tuscany/java/sca/idl-java/src/main/java/org/apache/tuscany/sca/idl/java/JavaFactory.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/idl-java/src/main/java/org/apache/tuscany/sca/idl/java/JavaFactory.java?view=auto&rev=524536
==============================================================================
--- incubator/tuscany/java/sca/idl-java/src/main/java/org/apache/tuscany/sca/idl/java/JavaFactory.java (added)
+++ incubator/tuscany/java/sca/idl-java/src/main/java/org/apache/tuscany/sca/idl/java/JavaFactory.java Sat Mar 31 22:44:06 2007
@@ -0,0 +1,34 @@
+/*
+ * 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.sca.idl.java;
+
+/**
+ * Factory for the Java model
+ *
+ * @version $Rev$ $Date$
+ */
+public interface JavaFactory {
+
+ /**
+ * Creates a new Java interface.
+ * @return
+ */
+ JavaInterface createJavaInterface();
+
+}
Propchange: incubator/tuscany/java/sca/idl-java/src/main/java/org/apache/tuscany/sca/idl/java/JavaFactory.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/sca/idl-java/src/main/java/org/apache/tuscany/sca/idl/java/JavaFactory.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/sca/idl-java/src/main/java/org/apache/tuscany/sca/idl/java/JavaInterface.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/idl-java/src/main/java/org/apache/tuscany/sca/idl/java/JavaInterface.java?view=auto&rev=524536
==============================================================================
--- incubator/tuscany/java/sca/idl-java/src/main/java/org/apache/tuscany/sca/idl/java/JavaInterface.java (added)
+++ incubator/tuscany/java/sca/idl-java/src/main/java/org/apache/tuscany/sca/idl/java/JavaInterface.java Sat Mar 31 22:44:06 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.sca.idl.java;
+
+import org.apache.tuscany.sca.idl.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/java/sca/idl-java/src/main/java/org/apache/tuscany/sca/idl/java/JavaInterface.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/sca/idl-java/src/main/java/org/apache/tuscany/sca/idl/java/JavaInterface.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/sca/idl-java/src/main/java/org/apache/tuscany/sca/idl/java/impl/DefaultJavaFactory.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/idl-java/src/main/java/org/apache/tuscany/sca/idl/java/impl/DefaultJavaFactory.java?view=auto&rev=524536
==============================================================================
--- incubator/tuscany/java/sca/idl-java/src/main/java/org/apache/tuscany/sca/idl/java/impl/DefaultJavaFactory.java (added)
+++ incubator/tuscany/java/sca/idl-java/src/main/java/org/apache/tuscany/sca/idl/java/impl/DefaultJavaFactory.java Sat Mar 31 22:44:06 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.sca.idl.java.impl;
+
+import org.apache.tuscany.sca.idl.java.JavaFactory;
+import org.apache.tuscany.sca.idl.java.JavaInterface;
+
+/**
+ * A factory for the Java model.
+ */
+public class DefaultJavaFactory implements JavaFactory {
+
+ public DefaultJavaFactory() {
+ }
+
+ public JavaInterface createJavaInterface() {
+ return new JavaInterfaceImpl();
+ }
+
+}
Propchange: incubator/tuscany/java/sca/idl-java/src/main/java/org/apache/tuscany/sca/idl/java/impl/DefaultJavaFactory.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/sca/idl-java/src/main/java/org/apache/tuscany/sca/idl/java/impl/DefaultJavaFactory.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/sca/idl-java/src/main/java/org/apache/tuscany/sca/idl/java/impl/JavaInterfaceImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/idl-java/src/main/java/org/apache/tuscany/sca/idl/java/impl/JavaInterfaceImpl.java?view=auto&rev=524536
==============================================================================
--- incubator/tuscany/java/sca/idl-java/src/main/java/org/apache/tuscany/sca/idl/java/impl/JavaInterfaceImpl.java (added)
+++ incubator/tuscany/java/sca/idl-java/src/main/java/org/apache/tuscany/sca/idl/java/impl/JavaInterfaceImpl.java Sat Mar 31 22:44:06 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.sca.idl.java.impl;
+
+import org.apache.tuscany.sca.idl.impl.InterfaceImpl;
+import org.apache.tuscany.sca.idl.java.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 (isUnresolved())
+ return className;
+ else
+ return javaClass.getName();
+ }
+
+ public void setName(String className) {
+ if (!isUnresolved())
+ throw new IllegalStateException();
+ this.className = className;
+ }
+
+ public Class<?> getJavaClass() {
+ return javaClass;
+ }
+
+ public void setJavaClass(Class<?> javaClass) {
+ this.javaClass = javaClass;
+ }
+
+}
Propchange: incubator/tuscany/java/sca/idl-java/src/main/java/org/apache/tuscany/sca/idl/java/impl/JavaInterfaceImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/sca/idl-java/src/main/java/org/apache/tuscany/sca/idl/java/impl/JavaInterfaceImpl.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified: incubator/tuscany/java/sca/idl-wsdl/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/idl-wsdl/pom.xml?view=diff&rev=524536&r1=524535&r2=524536
==============================================================================
--- incubator/tuscany/java/sca/idl-wsdl/pom.xml (original)
+++ incubator/tuscany/java/sca/idl-wsdl/pom.xml Sat Mar 31 22:44:06 2007
@@ -22,11 +22,11 @@
<parent>
<groupId>org.apache.tuscany</groupId>
<artifactId>sca</artifactId>
- <version>1.0-incubating</version>
+ <version>1.0.1-incubating-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
- <groupId>org.apache.tuscany.sca.idl</groupId>
+ <groupId>org.apache.tuscany.sca</groupId>
<artifactId>tuscany-idl-wsdl</artifactId>
<version>0.1-incubating-SNAPSHOT</version>
<name>Apache Tuscany IDL WSDL</name>
@@ -49,22 +49,21 @@
<dependencies>
<dependency>
- <groupId>org.apache.tuscany.sca.idl</groupId>
+ <groupId>org.apache.tuscany.sca</groupId>
<artifactId>tuscany-idl</artifactId>
<version>0.1-incubating-SNAPSHOT</version>
- <scope>compile</scope>
</dependency>
+ <dependency>
+ <groupId>wsdl4j</groupId>
+ <artifactId>wsdl4j</artifactId>
+ <version>1.6.2</version>
+ </dependency>
+
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
- <version>3.8</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.easymock</groupId>
- <artifactId>easymock</artifactId>
- <version>2.2</version>
+ <version>4.2</version>
<scope>test</scope>
</dependency>
</dependencies>
Added: incubator/tuscany/java/sca/idl-wsdl/src/main/java/org/apache/tuscany/sca/idl/wsdl/WSDLFactory.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/idl-wsdl/src/main/java/org/apache/tuscany/sca/idl/wsdl/WSDLFactory.java?view=auto&rev=524536
==============================================================================
--- incubator/tuscany/java/sca/idl-wsdl/src/main/java/org/apache/tuscany/sca/idl/wsdl/WSDLFactory.java (added)
+++ incubator/tuscany/java/sca/idl-wsdl/src/main/java/org/apache/tuscany/sca/idl/wsdl/WSDLFactory.java Sat Mar 31 22:44:06 2007
@@ -0,0 +1,34 @@
+/*
+ * 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.sca.idl.wsdl;
+
+/**
+ * Factory for the WSDL model.
+ *
+ * @version $Rev$ $Date$
+ */
+public interface WSDLFactory {
+
+ /**
+ * Creates a new WSDL interface.
+ * @return a new WSDL interface
+ */
+ WSDLInterface createWSDLInterface();
+
+}
Propchange: incubator/tuscany/java/sca/idl-wsdl/src/main/java/org/apache/tuscany/sca/idl/wsdl/WSDLFactory.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/sca/idl-wsdl/src/main/java/org/apache/tuscany/sca/idl/wsdl/WSDLFactory.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/sca/idl-wsdl/src/main/java/org/apache/tuscany/sca/idl/wsdl/WSDLInterface.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/idl-wsdl/src/main/java/org/apache/tuscany/sca/idl/wsdl/WSDLInterface.java?view=auto&rev=524536
==============================================================================
--- incubator/tuscany/java/sca/idl-wsdl/src/main/java/org/apache/tuscany/sca/idl/wsdl/WSDLInterface.java (added)
+++ incubator/tuscany/java/sca/idl-wsdl/src/main/java/org/apache/tuscany/sca/idl/wsdl/WSDLInterface.java Sat Mar 31 22:44:06 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.sca.idl.wsdl;
+
+import javax.wsdl.PortType;
+import javax.xml.namespace.QName;
+
+import org.apache.tuscany.sca.idl.Interface;
+
+/**
+ * Represents a WSDL 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/java/sca/idl-wsdl/src/main/java/org/apache/tuscany/sca/idl/wsdl/WSDLInterface.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/sca/idl-wsdl/src/main/java/org/apache/tuscany/sca/idl/wsdl/WSDLInterface.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/sca/idl-wsdl/src/main/java/org/apache/tuscany/sca/idl/wsdl/impl/DefaultWSDLFactory.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/idl-wsdl/src/main/java/org/apache/tuscany/sca/idl/wsdl/impl/DefaultWSDLFactory.java?view=auto&rev=524536
==============================================================================
--- incubator/tuscany/java/sca/idl-wsdl/src/main/java/org/apache/tuscany/sca/idl/wsdl/impl/DefaultWSDLFactory.java (added)
+++ incubator/tuscany/java/sca/idl-wsdl/src/main/java/org/apache/tuscany/sca/idl/wsdl/impl/DefaultWSDLFactory.java Sat Mar 31 22:44:06 2007
@@ -0,0 +1,35 @@
+/*
+ * 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.sca.idl.wsdl.impl;
+
+import org.apache.tuscany.sca.idl.wsdl.WSDLFactory;
+import org.apache.tuscany.sca.idl.wsdl.WSDLInterface;
+
+/**
+ * A factory for the WSDL model.
+ *
+ * @version $Rev$ $Date$
+ */
+public class DefaultWSDLFactory implements WSDLFactory {
+
+ public WSDLInterface createWSDLInterface() {
+ return new WSDLInterfaceImpl();
+ }
+
+}
Propchange: incubator/tuscany/java/sca/idl-wsdl/src/main/java/org/apache/tuscany/sca/idl/wsdl/impl/DefaultWSDLFactory.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/sca/idl-wsdl/src/main/java/org/apache/tuscany/sca/idl/wsdl/impl/DefaultWSDLFactory.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/sca/idl-wsdl/src/main/java/org/apache/tuscany/sca/idl/wsdl/impl/WSDLInterfaceImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/idl-wsdl/src/main/java/org/apache/tuscany/sca/idl/wsdl/impl/WSDLInterfaceImpl.java?view=auto&rev=524536
==============================================================================
--- incubator/tuscany/java/sca/idl-wsdl/src/main/java/org/apache/tuscany/sca/idl/wsdl/impl/WSDLInterfaceImpl.java (added)
+++ incubator/tuscany/java/sca/idl-wsdl/src/main/java/org/apache/tuscany/sca/idl/wsdl/impl/WSDLInterfaceImpl.java Sat Mar 31 22:44:06 2007
@@ -0,0 +1,62 @@
+/*
+ * 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.sca.idl.wsdl.impl;
+
+import javax.wsdl.PortType;
+import javax.xml.namespace.QName;
+
+import org.apache.tuscany.sca.idl.impl.InterfaceImpl;
+import org.apache.tuscany.sca.idl.wsdl.WSDLInterface;
+
+/**
+ * Represents a WSDL interface.
+ *
+ * @version $Rev$ $Date$
+ */
+public class WSDLInterfaceImpl extends InterfaceImpl implements WSDLInterface {
+
+ private QName interfaceName;
+ private PortType portType;
+
+ public WSDLInterfaceImpl() {
+ setRemotable(true);
+ }
+
+ public QName getName() {
+ if (isUnresolved())
+ return interfaceName;
+ else
+ return portType.getQName();
+ }
+
+ public void setName(QName interfaceName) {
+ if (!isUnresolved())
+ throw new IllegalStateException();
+ this.interfaceName = interfaceName;
+ }
+
+ public PortType getPortType() {
+ return portType;
+ }
+
+ public void setPortType(PortType portType) {
+ this.portType = portType;
+ }
+
+}
Propchange: incubator/tuscany/java/sca/idl-wsdl/src/main/java/org/apache/tuscany/sca/idl/wsdl/impl/WSDLInterfaceImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/sca/idl-wsdl/src/main/java/org/apache/tuscany/sca/idl/wsdl/impl/WSDLInterfaceImpl.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified: incubator/tuscany/java/sca/idl/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/idl/pom.xml?view=diff&rev=524536&r1=524535&r2=524536
==============================================================================
--- incubator/tuscany/java/sca/idl/pom.xml (original)
+++ incubator/tuscany/java/sca/idl/pom.xml Sat Mar 31 22:44:06 2007
@@ -26,7 +26,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
- <groupId>org.apache.tuscany.sca.idl</groupId>
+ <groupId>org.apache.tuscany.sca</groupId>
<artifactId>tuscany-idl</artifactId>
<version>0.1-incubating-SNAPSHOT</version>
<name>Apache Tuscany IDL</name>
@@ -51,13 +51,7 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
- <version>3.8</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.easymock</groupId>
- <artifactId>easymock</artifactId>
- <version>2.2</version>
+ <version>4.2</version>
<scope>test</scope>
</dependency>
</dependencies>
Modified: incubator/tuscany/java/sca/scdl4j/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/scdl4j/pom.xml?view=diff&rev=524536&r1=524535&r2=524536
==============================================================================
--- incubator/tuscany/java/sca/scdl4j/pom.xml (original)
+++ incubator/tuscany/java/sca/scdl4j/pom.xml Sat Mar 31 22:44:06 2007
@@ -33,6 +33,8 @@
<modules>
<module>../idl</module>
+ <module>../idl-java</module>
+ <module>../idl-wsdl</module>
<module>assembly</module>
<module>policy</module>
<module>xml</module>
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org