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/30 04:49:12 UTC

svn commit: r523915 - in /incubator/tuscany/java/sca/idl/src/main/java/org/apache/tuscany/sca/idl: Interface.java Operation.java impl/ impl/InterfaceImpl.java impl/OperationImpl.java

Author: jsdelfino
Date: Thu Mar 29 19:49:12 2007
New Revision: 523915

URL: http://svn.apache.org/viewvc?view=rev&rev=523915
Log:
Created base language independent representations of service Interface and Operation

Added:
    incubator/tuscany/java/sca/idl/src/main/java/org/apache/tuscany/sca/idl/Interface.java   (with props)
    incubator/tuscany/java/sca/idl/src/main/java/org/apache/tuscany/sca/idl/Operation.java   (with props)
    incubator/tuscany/java/sca/idl/src/main/java/org/apache/tuscany/sca/idl/impl/
    incubator/tuscany/java/sca/idl/src/main/java/org/apache/tuscany/sca/idl/impl/InterfaceImpl.java   (with props)
    incubator/tuscany/java/sca/idl/src/main/java/org/apache/tuscany/sca/idl/impl/OperationImpl.java   (with props)

Added: incubator/tuscany/java/sca/idl/src/main/java/org/apache/tuscany/sca/idl/Interface.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/idl/src/main/java/org/apache/tuscany/sca/idl/Interface.java?view=auto&rev=523915
==============================================================================
--- incubator/tuscany/java/sca/idl/src/main/java/org/apache/tuscany/sca/idl/Interface.java (added)
+++ incubator/tuscany/java/sca/idl/src/main/java/org/apache/tuscany/sca/idl/Interface.java Thu Mar 29 19:49:12 2007
@@ -0,0 +1,60 @@
+/*
+ * 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;
+
+import java.util.List;
+
+/**
+ * Represents a service interface.
+ * This interface will typically be extended to support concrete interface type systems, such as
+ * Java interfaces, WSDL 1.1 portTypes and WSDL 2.0 interfaces.
+ */
+public interface Interface {
+
+    /**
+     * Returns true if the interface is a remotable interface.. 
+     * @return true if the interface is a remotable interface
+     */
+    boolean isRemotable();
+
+    /**
+    * Sets whether the interface is a remotable or local interface. 
+    * @param remotable indicates whether the interface is remotable or local
+     */
+    void setRemotable(boolean remotable);
+
+    /**
+     * Returns the operations defined on this interface.
+     * @return the operations defined on this interface
+     */
+    List<Operation> getOperations();
+    
+    /**
+     * Returns true if the model element is unresolved.
+     * @return true if the model element is unresolved.
+     */
+    boolean isUnresolved();
+    
+    /**
+     * Sets whether the model element is unresolved.
+     * @param unresolved whether the model element is unresolved
+     */
+    void setUnresolved(boolean unresolved);
+
+}

Propchange: incubator/tuscany/java/sca/idl/src/main/java/org/apache/tuscany/sca/idl/Interface.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/idl/src/main/java/org/apache/tuscany/sca/idl/Interface.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/idl/src/main/java/org/apache/tuscany/sca/idl/Operation.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/idl/src/main/java/org/apache/tuscany/sca/idl/Operation.java?view=auto&rev=523915
==============================================================================
--- incubator/tuscany/java/sca/idl/src/main/java/org/apache/tuscany/sca/idl/Operation.java (added)
+++ incubator/tuscany/java/sca/idl/src/main/java/org/apache/tuscany/sca/idl/Operation.java Thu Mar 29 19:49:12 2007
@@ -0,0 +1,39 @@
+/*
+ * 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;
+
+
+/**
+ * Represents an operation on a service interface.
+ */
+public interface Operation {
+	
+	/**
+	 * Returns the name of the operation.
+	 * @return the name of the operation
+	 */
+	String getName();
+	
+	/**
+	 * Sets the name of the operation.
+	 * @param name the name of the operation
+	 */
+	void setName(String name);
+
+}

Propchange: incubator/tuscany/java/sca/idl/src/main/java/org/apache/tuscany/sca/idl/Operation.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/idl/src/main/java/org/apache/tuscany/sca/idl/Operation.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/idl/src/main/java/org/apache/tuscany/sca/idl/impl/InterfaceImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/idl/src/main/java/org/apache/tuscany/sca/idl/impl/InterfaceImpl.java?view=auto&rev=523915
==============================================================================
--- incubator/tuscany/java/sca/idl/src/main/java/org/apache/tuscany/sca/idl/impl/InterfaceImpl.java (added)
+++ incubator/tuscany/java/sca/idl/src/main/java/org/apache/tuscany/sca/idl/impl/InterfaceImpl.java Thu Mar 29 19:49:12 2007
@@ -0,0 +1,58 @@
+/*
+ * 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.impl;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.tuscany.sca.idl.Interface;
+import org.apache.tuscany.sca.idl.Operation;
+
+/**
+ * Represents a service interface.
+ *
+ *  @version $Rev$ $Date$
+ */
+public abstract class InterfaceImpl implements Interface {
+	
+	private boolean remotable;
+	private List<Operation> operations = new ArrayList<Operation>();
+	private boolean unresolved = false;
+
+	public boolean isRemotable() {
+		return remotable;
+	}
+
+	public void setRemotable(boolean local) {
+		this.remotable = local;
+	}
+
+	public List<Operation> getOperations() {
+		return operations;
+	}
+
+	public boolean isUnresolved() {
+		return unresolved;
+	}
+
+	public void setUnresolved(boolean undefined) {
+		this.unresolved = undefined;
+	}
+
+}

Propchange: incubator/tuscany/java/sca/idl/src/main/java/org/apache/tuscany/sca/idl/impl/InterfaceImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/idl/src/main/java/org/apache/tuscany/sca/idl/impl/InterfaceImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/idl/src/main/java/org/apache/tuscany/sca/idl/impl/OperationImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/idl/src/main/java/org/apache/tuscany/sca/idl/impl/OperationImpl.java?view=auto&rev=523915
==============================================================================
--- incubator/tuscany/java/sca/idl/src/main/java/org/apache/tuscany/sca/idl/impl/OperationImpl.java (added)
+++ incubator/tuscany/java/sca/idl/src/main/java/org/apache/tuscany/sca/idl/impl/OperationImpl.java Thu Mar 29 19:49:12 2007
@@ -0,0 +1,40 @@
+/*
+ * 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.impl;
+
+import org.apache.tuscany.sca.idl.Operation;
+
+/**
+ * Represents an operation on a service interface.
+ *
+ *  @version $Rev$ $Date$
+ */
+public abstract class OperationImpl implements Operation {
+	
+	private String name;
+	
+	public String getName() {
+		return name;
+	}
+	
+	public void setName(String name) {
+		this.name = name;
+	}
+	
+}

Propchange: incubator/tuscany/java/sca/idl/src/main/java/org/apache/tuscany/sca/idl/impl/OperationImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/idl/src/main/java/org/apache/tuscany/sca/idl/impl/OperationImpl.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