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/23 17:20:54 UTC

svn commit: r521792 [2/8] - in /incubator/tuscany/sandbox/sebastien/java/sca: modules/ modules2/ modules2/assembly/ modules2/assembly/src/ modules2/assembly/src/main/ modules2/assembly/src/main/java/ modules2/assembly/src/main/java/org/ modules2/assemb...

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Composite.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Composite.java?view=auto&rev=521792
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Composite.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Composite.java Fri Mar 23 09:20:35 2007
@@ -0,0 +1,85 @@
+/*
+ * 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.assembly.model;
+
+import java.util.List;
+
+import javax.xml.namespace.QName;
+
+
+/**
+ * Represents a composite.
+ */
+public interface Composite extends Implementation {
+
+    /**
+     * Returns the name of the composite.
+     * @return the name of the composite
+     */
+    QName getName();
+
+    /**
+     * Sets the name of the composite.
+     * @param name the name of the composite
+     */
+    void setName(QName name);
+
+    /**
+     * Returns a list of composites included in this composite.
+     * @return a list of composites included in this composite.
+     */
+    List<Composite> getIncludes();
+    
+    /**
+     * Returns a list of components contained in this composite.
+     * @return a list of components contained in this composite
+     */
+    List<Component> getComponents();
+
+    /**
+     * Returns a list of wires contained in this composite.
+     * @return a list of wires contained in this composite
+     */
+    List<Wire> getWires();
+
+    /**
+     * Returns true if all the components within the composite must run in the same process.
+     * @return true if all the components within the composite must run in the same process
+     */
+    boolean isLocal();
+
+    /**
+     * Sets whether all the components within the composite must run in the same process.
+     * @param local whether all the components within the composite must run in the same process
+     */
+    void setLocal(boolean local);
+    
+    /**
+     * Returns true if autowiring is enabled in the composite.
+     * @return true if autowiring is enabled in the composite
+     */
+    boolean isAutowire();
+
+    /**
+     * Sets whether autowiring is enabled in the composite.
+     * @param autowire whether autowiring is enabled in the composite
+     */
+    void setAutowire(boolean autowire);
+    
+}

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

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

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/CompositeReference.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/CompositeReference.java?view=auto&rev=521792
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/CompositeReference.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/CompositeReference.java Fri Mar 23 09:20:35 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.assembly.model;
+
+import java.util.List;
+
+
+
+/**
+ * Represents composite reference.
+ */
+public interface CompositeReference extends Reference {
+
+    /**
+     * Returns the promoted composite references.
+     * @return the promoted composite references
+     */
+    List<ComponentReference> getPromotedReferences();
+    
+}

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

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

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/CompositeService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/CompositeService.java?view=auto&rev=521792
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/CompositeService.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/CompositeService.java Fri Mar 23 09:20:35 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.assembly.model;
+
+
+
+/**
+ * Represents a composite service.
+ */
+public interface CompositeService extends Service {
+    
+    /**
+     * Returns the promoted component service .
+     * @return the promoted component service.
+     */
+    ComponentService getPromotedService();
+    
+    /**
+     * Sets the promoted component service
+     * @param promotedService the promoted component service.
+     */
+    void setPromotedService(ComponentService promotedService);
+    
+}

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

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

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/ConstrainingType.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/ConstrainingType.java?view=auto&rev=521792
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/ConstrainingType.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/ConstrainingType.java Fri Mar 23 09:20:35 2007
@@ -0,0 +1,66 @@
+/*
+ * 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.assembly.model;
+
+import java.util.List;
+
+import javax.xml.namespace.QName;
+
+import org.apache.tuscany.policy.model.IntentAttachPoint;
+
+
+
+/**
+ * A constrainingType provides the "shape" for a component and its implementation.
+ * Any component configuration that points to a constrainingType is constrained by this shape.
+ * The constrainingType specifies the services, references and properties that must be implemented.
+ */
+public interface ConstrainingType extends Base, IntentAttachPoint {
+	
+    /**
+     * Returns the name of the constrainingType.
+     * @return the name of the constrainingType
+     */
+    QName getName();
+
+    /**
+     * Sets the name of the constrainingType.
+     * @param name the name of the constrainingType
+     */
+    void setName(QName name);
+
+    /**
+     * Returns a list of services that are offered.
+     * @return a list of services that are offered
+     */
+    List<AbstractService> getServices();
+
+    /**
+     * Returns the list of references that are used.
+     * @return the list of references that are used
+     */
+    List<AbstractReference> getReferences();
+
+    /**
+     * Returns the list of properties that can be set.
+     * @return the list of properties that can be set
+     */
+    List<AbstractProperty> getProperties();
+
+}

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

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

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Contract.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Contract.java?view=auto&rev=521792
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Contract.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Contract.java Fri Mar 23 09:20:35 2007
@@ -0,0 +1,49 @@
+/*
+ * 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.assembly.model;
+
+import java.util.List;
+
+import org.apache.tuscany.policy.model.PolicySetAttachPoint;
+
+
+/**
+ * Represents a contract. A contract can be either a service or a reference.
+ */
+public interface Contract extends AbstractContract, PolicySetAttachPoint {
+    
+    /**
+     * Returns the bindings supported by this contract.
+     * @return the bindings supported by this contract
+     */
+    List<Binding> getBindings();
+    
+    /**
+     * Returns a callback definition of the bindings to use for callbacks. 
+     * @return a definition of the bindings to use for callbacks
+     */
+    Callback getCallback();
+
+    /**
+     * Sets a callback definition of the bindings to use for callbacks
+     * @param callback a definition of the bindings to use for callbacks
+     */
+    void setCallback(Callback callback);
+    
+}

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

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

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Implementation.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Implementation.java?view=auto&rev=521792
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Implementation.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Implementation.java Fri Mar 23 09:20:35 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.assembly.model;
+
+
+
+
+/**
+ * Represents a component implementation.
+ */
+public interface Implementation extends ComponentType {
+
+}

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

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

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Interface.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Interface.java?view=auto&rev=521792
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Interface.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Interface.java Fri Mar 23 09:20:35 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.assembly.model;
+
+import org.apache.tuscany.policy.model.IntentAttachPoint;
+
+/**
+ * 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 extends Base, IntentAttachPoint {
+
+    /**
+     * Returns true if the interface is conversational. 
+     * @return true if the interface is conversational
+     */
+    boolean isConversational();
+
+    /**
+    * Sets whether the interface is conversational or not. 
+    * @param conversational indicates whether the interface is conversational or not
+     */
+    void setConversational(boolean conversational);
+    
+    /**
+     * 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);
+    
+}

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

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

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Multiplicity.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Multiplicity.java?view=auto&rev=521792
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Multiplicity.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Multiplicity.java Fri Mar 23 09:20:35 2007
@@ -0,0 +1,46 @@
+/*
+ * 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.assembly.model;
+
+/**
+ * Enumeration for multiplicity. Defines the number of wires that can connect a reference to target services.
+ */
+public enum Multiplicity {
+    
+    /**
+     * Zero or one wire can have the reference as a source.
+     */
+    ZERO_ONE,
+
+    /**
+     * The default setting, one wire can have the reference as a source.
+     */
+    ONE_ONE,
+
+    /**
+     * Zero or more wires can have the reference as a source.
+     */
+    ZERO_N,
+
+    /**
+     * One or more wires can have the reference as a source.
+     */
+    ONE_N
+
+}

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

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

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Property.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Property.java?view=auto&rev=521792
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Property.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Property.java Fri Mar 23 09:20:35 2007
@@ -0,0 +1,31 @@
+/*
+ * 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.assembly.model;
+
+import org.apache.tuscany.policy.model.PolicySetAttachPoint;
+
+
+/**
+ * A property allows for the configuration of an implementation with externally set data values.
+ * An implementation can have zero or more properties.  Each property has a data type, which may be
+  * either simple or complex.  An implementation may also define a default value for a property.
+ */
+public interface Property extends AbstractProperty, PolicySetAttachPoint {
+    
+}

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

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

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Reference.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Reference.java?view=auto&rev=521792
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Reference.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Reference.java Fri Mar 23 09:20:35 2007
@@ -0,0 +1,50 @@
+/*
+ * 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.assembly.model;
+
+import java.util.List;
+
+
+/**
+ * Represents a reference. References within an implementation represent
+ * links to services that the implementation uses that must be provided by other components.
+ */
+public interface Reference extends AbstractReference, Contract {
+	
+	/**
+	 * Returns a boolean value, "false" by default, which indicates that the implementation wires this
+     * reference dynamically.
+	 * @return true if the implementation wires this reference dynamically
+	 */
+	boolean isWiredByImpl();
+
+	/**
+	 * Sets a boolean value, "false" by default, which indicates that the implementation wires this
+     * reference dynamically.
+	 * @param wiredByImpl whether the implementation wires this reference dynamically
+	 */
+	void setWiredByImpl(boolean wiredByImpl);
+    
+    /**
+     * Returns the targets of this reference.
+     * @return the targets of this reference.
+     */
+    List<ComponentService> getTargets();
+    
+}

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

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

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Service.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Service.java?view=auto&rev=521792
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Service.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Service.java Fri Mar 23 09:20:35 2007
@@ -0,0 +1,28 @@
+/*
+ * 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.assembly.model;
+
+
+/**
+ * Represents a service. Services are used to publish services provided by
+ * implementations, so that they are addressable by other components.
+ */
+public interface Service extends AbstractService, Contract {
+    
+}

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

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

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Wire.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Wire.java?view=auto&rev=521792
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Wire.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/Wire.java Fri Mar 23 09:20:35 2007
@@ -0,0 +1,53 @@
+/*
+ * 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.assembly.model;
+
+
+
+
+/**
+ * Represents a wire.
+ */
+public interface Wire extends Base {
+    
+    /**
+     * Returns the source of the wire.
+     * @return the source of the wire
+     */
+    ComponentReference getSource();
+    
+    /**
+     * Sets the source of the wire.
+     * @param source the source of the wire
+     */
+    void setSource(ComponentReference source);
+    
+    /**
+     * Returns the target of the wire.
+     * @return the target of the wire
+     */
+    ComponentService getTarget();
+    
+    /**
+     * Sets the target of the wire.
+     * @param target the target of the wire
+     */
+    void setTarget(ComponentService target);
+    
+}

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

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

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/AbstractPropertyImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/AbstractPropertyImpl.java?view=auto&rev=521792
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/AbstractPropertyImpl.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/AbstractPropertyImpl.java Fri Mar 23 09:20:35 2007
@@ -0,0 +1,96 @@
+/*
+ * 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.assembly.model.impl;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.xml.namespace.QName;
+
+import org.apache.tuscany.assembly.model.AbstractProperty;
+import org.apache.tuscany.policy.model.Intent;
+
+/**
+ * Represents an abstract  property.
+ *
+ *  @version $Rev$ $Date$
+ */
+public class AbstractPropertyImpl extends BaseImpl implements AbstractProperty {
+	private Object defaultValue;
+	private String name;
+	private QName xsdType;
+	private QName xsdElement;
+	private boolean many;
+	private boolean mustSupply;
+	private List<Intent> requiredIntents = new ArrayList<Intent>();
+
+	public Object getDefaultValue() {
+		return defaultValue;
+	}
+
+	public String getName() {
+		return name;
+	}
+
+	public QName getXSDElement() {
+		return xsdElement;
+	}
+
+	public QName getXSDType() {
+		return xsdType;
+	}
+
+	public boolean isMany() {
+		return many;
+	}
+
+	public boolean isMustSupply() {
+		return mustSupply;
+	}
+
+	public void setDefaultValue(Object defaultValue) {
+		this.defaultValue = defaultValue;
+	}
+
+	public void setMany(boolean many) {
+		this.many = many;
+	}
+
+	public void setMustSupply(boolean mustSupply) {
+		this.mustSupply = mustSupply;
+	}
+
+	public void setName(String name) {
+		this.name = name;
+	}
+
+	public void setXSDElement(QName element) {
+		this.xsdElement = element;
+	}
+
+	public void setXSDType(QName type) {
+		this.xsdType = type;
+	}
+
+	public List<Intent> getRequiredIntents() {
+		return requiredIntents;
+	}
+
+}

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

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

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/AbstractReferenceImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/AbstractReferenceImpl.java?view=auto&rev=521792
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/AbstractReferenceImpl.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/AbstractReferenceImpl.java Fri Mar 23 09:20:35 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.assembly.model.impl;
+
+import org.apache.tuscany.assembly.model.AbstractReference;
+import org.apache.tuscany.assembly.model.Multiplicity;
+
+/**
+ * Represents an abstract reference
+ *
+ *  @version $Rev$ $Date$
+ */
+public class AbstractReferenceImpl extends ContractImpl implements AbstractReference {
+	private Multiplicity multiplicity = Multiplicity.ONE_ONE;
+
+	public Multiplicity getMultiplicity() {
+		return multiplicity;
+	}
+
+	public void setMultiplicity(Multiplicity multiplicity) {
+		this.multiplicity = multiplicity;
+	}
+
+}

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

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

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/AbstractServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/AbstractServiceImpl.java?view=auto&rev=521792
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/AbstractServiceImpl.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/AbstractServiceImpl.java Fri Mar 23 09:20:35 2007
@@ -0,0 +1,30 @@
+/*
+ * 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.assembly.model.impl;
+
+import org.apache.tuscany.assembly.model.AbstractService;
+
+/**
+ * Represents an abstract service
+ *
+ *  @version $Rev$ $Date$
+ */
+public class AbstractServiceImpl extends ContractImpl implements AbstractService {
+
+}

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

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

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/AssemblyFactoryImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/AssemblyFactoryImpl.java?view=auto&rev=521792
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/AssemblyFactoryImpl.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/AssemblyFactoryImpl.java Fri Mar 23 09:20:35 2007
@@ -0,0 +1,116 @@
+/*
+ * 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.assembly.model.impl;
+
+import org.apache.tuscany.assembly.model.AbstractProperty;
+import org.apache.tuscany.assembly.model.AbstractReference;
+import org.apache.tuscany.assembly.model.AbstractService;
+import org.apache.tuscany.assembly.model.AssemblyFactory;
+import org.apache.tuscany.assembly.model.Callback;
+import org.apache.tuscany.assembly.model.Component;
+import org.apache.tuscany.assembly.model.ComponentProperty;
+import org.apache.tuscany.assembly.model.ComponentReference;
+import org.apache.tuscany.assembly.model.ComponentService;
+import org.apache.tuscany.assembly.model.ComponentType;
+import org.apache.tuscany.assembly.model.Composite;
+import org.apache.tuscany.assembly.model.CompositeReference;
+import org.apache.tuscany.assembly.model.CompositeService;
+import org.apache.tuscany.assembly.model.ConstrainingType;
+import org.apache.tuscany.assembly.model.Property;
+import org.apache.tuscany.assembly.model.Reference;
+import org.apache.tuscany.assembly.model.Service;
+import org.apache.tuscany.assembly.model.Wire;
+
+/**
+ * A factory for the assembly model.
+ *
+ *  @version $Rev$ $Date$
+ */
+public class AssemblyFactoryImpl implements AssemblyFactory {
+
+	public AbstractProperty createAbstractProperty() {
+		return new AbstractPropertyImpl();
+	}
+
+	public AbstractReference createAbstractReference() {
+		return new AbstractReferenceImpl();
+	}
+
+	public AbstractService createAbstractService() {
+		return new AbstractServiceImpl();
+	}
+	
+	public Callback createCallback() {
+		return new CallbackImpl();
+	}
+
+	public Component createComponent() {
+		return new ComponentImpl();
+	}
+
+	public ComponentProperty createComponentProperty() {
+		return new ComponentPropertyImpl();
+	}
+
+	public ComponentReference createComponentReference() {
+		return new ComponentReferenceImpl();
+	}
+
+	public ComponentService createComponentService() {
+		return new ComponentServiceImpl();
+	}
+
+	public ComponentType createComponentType() {
+		return new ComponentTypeImpl();
+	}
+
+	public Composite createComposite() {
+		return new CompositeImpl();
+	}
+
+	public CompositeReference createCompositeReference() {
+		return new CompositeReferenceImpl();
+	}
+
+	public CompositeService createCompositeService() {
+		return new CompositeServiceImpl();
+	}
+
+	public ConstrainingType createConstrainingType() {
+		return new ConstrainingTypeImpl();
+	}
+
+	public Property createProperty() {
+		return new PropertyImpl();
+	}
+
+	public Reference createReference() {
+		return new ReferenceImpl();
+	}
+
+	public Service createService() {
+		return new ServiceImpl();
+	}
+
+	public Wire createWire() {
+		return new WireImpl();
+	}
+
+}

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

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

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/BaseImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/BaseImpl.java?view=auto&rev=521792
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/BaseImpl.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/BaseImpl.java Fri Mar 23 09:20:35 2007
@@ -0,0 +1,47 @@
+/*
+ * 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.assembly.model.impl;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.tuscany.assembly.model.Base;
+
+/**
+ * Convenience base class for assembly model objects.
+ *
+ *  @version $Rev$ $Date$
+ */
+public class BaseImpl implements Base {
+	private List<?> extensions = new ArrayList();
+	private boolean unresolved = false;
+
+	public List<?> getExtensions() {
+		return extensions;
+	}
+
+	public boolean isUnresolved() {
+		return unresolved;
+	}
+
+	public void setUnresolved(boolean undefined) {
+		this.unresolved = undefined;
+	}
+
+}

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

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

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/CallbackImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/CallbackImpl.java?view=auto&rev=521792
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/CallbackImpl.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/CallbackImpl.java Fri Mar 23 09:20:35 2007
@@ -0,0 +1,52 @@
+/*
+ * 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.assembly.model.impl;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.tuscany.assembly.model.Binding;
+import org.apache.tuscany.assembly.model.Callback;
+import org.apache.tuscany.policy.model.Intent;
+import org.apache.tuscany.policy.model.PolicySet;
+
+/**
+ * Represents a reference.
+ *
+ *  @version $Rev$ $Date$
+ */
+public class CallbackImpl extends BaseImpl implements Callback {
+	private List<Binding> bindings = new ArrayList<Binding>();
+	private List<PolicySet> policySets = new ArrayList<PolicySet>();
+	private List<Intent> requiredIntents = new ArrayList<Intent>();
+
+	public List<Binding> getBindings() {
+		return bindings;
+	}
+
+	public List<PolicySet> getPolicySets() {
+		return policySets;
+	}
+	
+	public List<Intent> getRequiredIntents() {
+		return requiredIntents;
+	}
+
+}

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

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

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/ComponentImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/ComponentImpl.java?view=auto&rev=521792
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/ComponentImpl.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/ComponentImpl.java Fri Mar 23 09:20:35 2007
@@ -0,0 +1,100 @@
+/*
+ * 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.assembly.model.impl;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.tuscany.assembly.model.Component;
+import org.apache.tuscany.assembly.model.ComponentProperty;
+import org.apache.tuscany.assembly.model.ComponentReference;
+import org.apache.tuscany.assembly.model.ComponentService;
+import org.apache.tuscany.assembly.model.ConstrainingType;
+import org.apache.tuscany.assembly.model.Implementation;
+import org.apache.tuscany.policy.model.Intent;
+import org.apache.tuscany.policy.model.PolicySet;
+
+/**
+ * Represents a component.
+ *
+ *  @version $Rev$ $Date$
+ */
+public class ComponentImpl extends BaseImpl implements Component {
+	private ConstrainingType constrainingType;
+	private Implementation implementation;
+	private String name;
+	private List<ComponentProperty> properties = new ArrayList<ComponentProperty>();
+	private List<ComponentReference> references = new ArrayList<ComponentReference>();
+	private List<ComponentService> services = new ArrayList<ComponentService>();
+	private List<Intent> requiredIntents = new ArrayList<Intent>();
+	private List<PolicySet> policySets = new ArrayList<PolicySet>();
+	private boolean autowire;
+
+	public ConstrainingType getConstrainingType() {
+		return constrainingType;
+	}
+
+	public Implementation getImplementation() {
+		return implementation;
+	}
+
+	public String getName() {
+		return name;
+	}
+
+	public List<ComponentProperty> getProperties() {
+		return properties;
+	}
+
+	public List<ComponentReference> getReferences() {
+		return references;
+	}
+
+	public List<ComponentService> getServices() {
+		return services;
+	}
+
+	public void setConstrainingType(ConstrainingType constrainingType) {
+		this.constrainingType = constrainingType;
+	}
+
+	public void setImplementation(Implementation implementation) {
+		this.implementation = implementation;
+	}
+
+	public void setName(String name) {
+		this.name = name;
+	}
+
+	public List<Intent> getRequiredIntents() {
+		return requiredIntents;
+	}
+
+	public List<PolicySet> getPolicySets() {
+		return policySets;
+	}
+
+	public boolean isAutowire() {
+		return autowire;
+	}
+	
+	public void setAutowire(boolean autowire) {
+		this.autowire = autowire;
+	}
+}

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

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

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/ComponentPropertyImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/ComponentPropertyImpl.java?view=auto&rev=521792
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/ComponentPropertyImpl.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/ComponentPropertyImpl.java Fri Mar 23 09:20:35 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.assembly.model.impl;
+
+import org.apache.tuscany.assembly.model.ComponentProperty;
+import org.apache.tuscany.assembly.model.Property;
+
+/**
+ * Represents a component property.
+ *
+ *  @version $Rev$ $Date$
+ */
+public class ComponentPropertyImpl extends PropertyImpl implements ComponentProperty {
+	private String file;
+	private Property property;
+	private String source;
+
+	public String getFile() {
+		return file;
+	}
+
+	public Property getProperty() {
+		return property;
+	}
+
+	public String getSource() {
+		return source;
+	}
+
+	public void setFile(String file) {
+		this.file = file;
+	}
+
+	public void setProperty(Property property) {
+		this.property = property;
+	}
+
+	public void setSource(String source) {
+		this.source = source;
+	}
+
+}

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

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

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/ComponentReferenceImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/ComponentReferenceImpl.java?view=auto&rev=521792
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/ComponentReferenceImpl.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/ComponentReferenceImpl.java Fri Mar 23 09:20:35 2007
@@ -0,0 +1,41 @@
+/*
+ * 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.assembly.model.impl;
+
+import org.apache.tuscany.assembly.model.ComponentReference;
+import org.apache.tuscany.assembly.model.Reference;
+
+/**
+ * Represents a component reference
+ *
+ *  @version $Rev$ $Date$
+ */
+public class ComponentReferenceImpl extends ReferenceImpl implements ComponentReference {
+	private Reference reference;
+
+	public Reference getReference() {
+		return reference;
+	}
+
+	public void setReference(Reference reference) {
+		this.reference = reference;
+	}
+
+}

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

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

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/ComponentServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/ComponentServiceImpl.java?view=auto&rev=521792
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/ComponentServiceImpl.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/ComponentServiceImpl.java Fri Mar 23 09:20:35 2007
@@ -0,0 +1,41 @@
+/*
+ * 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.assembly.model.impl;
+
+import org.apache.tuscany.assembly.model.ComponentService;
+import org.apache.tuscany.assembly.model.Service;
+
+/**
+ * Represents a component service
+ *
+ *  @version $Rev$ $Date$
+ */
+public class ComponentServiceImpl extends ServiceImpl implements ComponentService {
+	private Service service;
+
+	public Service getService() {
+		return service;
+	}
+
+	public void setService(Service service) {
+		this.service = service;
+	}
+
+}

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

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

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/ComponentTypeImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/ComponentTypeImpl.java?view=auto&rev=521792
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/ComponentTypeImpl.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/ComponentTypeImpl.java Fri Mar 23 09:20:35 2007
@@ -0,0 +1,73 @@
+/*
+ * 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.assembly.model.impl;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.tuscany.assembly.model.ComponentType;
+import org.apache.tuscany.assembly.model.ConstrainingType;
+import org.apache.tuscany.assembly.model.Property;
+import org.apache.tuscany.assembly.model.Reference;
+import org.apache.tuscany.assembly.model.Service;
+import org.apache.tuscany.policy.model.Intent;
+import org.apache.tuscany.policy.model.PolicySet;
+
+/**
+ * Represents a component type.
+ *
+ *  @version $Rev$ $Date$
+ */
+public class ComponentTypeImpl extends BaseImpl implements ComponentType {
+	private ConstrainingType constrainingType;
+	private List<Property> properties = new ArrayList<Property>();
+	private List<Reference> references = new ArrayList<Reference>();
+	private List<Service> services = new ArrayList<Service>();
+	private List<Intent> requiredIntents = new ArrayList<Intent>();
+	private List<PolicySet> policySets = new ArrayList<PolicySet>();
+
+	public ConstrainingType getConstrainingType() {
+		return constrainingType;
+	}
+
+	public List<Property> getProperties() {
+		return properties;
+	}
+
+	public List<Reference> getReferences() {
+		return references;
+	}
+
+	public List<Service> getServices() {
+		return services;
+	}
+
+	public void setConstrainingType(ConstrainingType constrainingType) {
+		this.constrainingType = constrainingType;
+	}
+
+	public List<Intent> getRequiredIntents() {
+		return requiredIntents;
+	}
+
+	public List<PolicySet> getPolicySets() {
+		return policySets;
+	}
+
+}

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

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

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/CompositeImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/CompositeImpl.java?view=auto&rev=521792
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/CompositeImpl.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/CompositeImpl.java Fri Mar 23 09:20:35 2007
@@ -0,0 +1,76 @@
+/*
+ * 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.assembly.model.impl;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.xml.namespace.QName;
+
+import org.apache.tuscany.assembly.model.Component;
+import org.apache.tuscany.assembly.model.Composite;
+import org.apache.tuscany.assembly.model.Wire;
+
+public class CompositeImpl extends ComponentTypeImpl implements Composite {
+	private List<Component> components = new ArrayList<Component>();
+	private List<Composite> includes = new ArrayList<Composite>();
+	private QName name;
+	private List<Wire> wires = new ArrayList<Wire>();
+	private boolean autowire;
+	private boolean local = true;
+	
+
+	public List<Component> getComponents() {
+		return components;
+	}
+
+	public List<Composite> getIncludes() {
+		return includes;
+	}
+
+	public QName getName() {
+		return name;
+	}
+
+	public List<Wire> getWires() {
+		return wires;
+	}
+
+	public boolean isAutowire() {
+		return autowire;
+	}
+
+	public boolean isLocal() {
+		return local;
+	}
+
+	public void setAutowire(boolean autowire) {
+		this.autowire = autowire;
+	}
+
+	public void setLocal(boolean local) {
+		this.local = local;
+	}
+
+	public void setName(QName name) {
+		this.name = name;
+	}
+
+}

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

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

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/CompositeReferenceImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/CompositeReferenceImpl.java?view=auto&rev=521792
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/CompositeReferenceImpl.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/CompositeReferenceImpl.java Fri Mar 23 09:20:35 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.assembly.model.impl;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.tuscany.assembly.model.ComponentReference;
+import org.apache.tuscany.assembly.model.CompositeReference;
+
+/**
+ * Represents a composite reference.
+ *
+ *  @version $Rev$ $Date$
+ */
+public class CompositeReferenceImpl extends ReferenceImpl implements CompositeReference {
+	private List<ComponentReference> promotedReferences = new ArrayList<ComponentReference>();
+
+	public List<ComponentReference> getPromotedReferences() {
+		return promotedReferences;
+	}
+
+}

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

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

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/CompositeServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/CompositeServiceImpl.java?view=auto&rev=521792
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/CompositeServiceImpl.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/CompositeServiceImpl.java Fri Mar 23 09:20:35 2007
@@ -0,0 +1,49 @@
+/*
+ * 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.assembly.model.impl;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.tuscany.assembly.model.Binding;
+import org.apache.tuscany.assembly.model.ComponentService;
+import org.apache.tuscany.assembly.model.CompositeService;
+
+/**
+ * Represents a composite service
+ *
+ *  @version $Rev$ $Date$
+ */
+public class CompositeServiceImpl extends ServiceImpl implements CompositeService {
+	private List<Binding> callbackBindings = new ArrayList<Binding>();
+	private ComponentService promotedService;
+
+	public List<Binding> getCallbackBindings() {
+		return callbackBindings;
+	}
+
+	public ComponentService getPromotedService() {
+		return promotedService;
+	}
+	 
+	public void setPromotedService(ComponentService promotedService) {
+		this.promotedService = promotedService;
+	}
+}

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

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

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/ConstrainingTypeImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/ConstrainingTypeImpl.java?view=auto&rev=521792
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/ConstrainingTypeImpl.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/ConstrainingTypeImpl.java Fri Mar 23 09:20:35 2007
@@ -0,0 +1,68 @@
+/*
+ * 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.assembly.model.impl;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.xml.namespace.QName;
+
+import org.apache.tuscany.assembly.model.AbstractProperty;
+import org.apache.tuscany.assembly.model.AbstractReference;
+import org.apache.tuscany.assembly.model.AbstractService;
+import org.apache.tuscany.assembly.model.ConstrainingType;
+import org.apache.tuscany.policy.model.Intent;
+
+/**
+ * Represents a constraining type.
+ *
+ *  @version $Rev$ $Date$
+ */
+public class ConstrainingTypeImpl extends BaseImpl implements ConstrainingType {
+	private QName name;
+	private List<AbstractProperty> properties = new ArrayList<AbstractProperty>();
+	private List<AbstractReference> references = new ArrayList<AbstractReference>();
+	private List<AbstractService> services = new ArrayList<AbstractService>();
+	private List<Intent> requiredIntents = new ArrayList<Intent>();
+	
+	public QName getName() {
+		return name;
+	}
+	
+	public void setName(QName name) {
+		this.name = name;
+	}
+
+	public List<AbstractProperty> getProperties() {
+		return properties;
+	}
+
+	public List<AbstractReference> getReferences() {
+		return references;
+	}
+
+	public List<AbstractService> getServices() {
+		return services;
+	}
+
+	public List<Intent> getRequiredIntents() {
+		return requiredIntents;
+	}
+
+}

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

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

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/ContractImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/ContractImpl.java?view=auto&rev=521792
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/ContractImpl.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/ContractImpl.java Fri Mar 23 09:20:35 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.assembly.model.impl;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.tuscany.assembly.model.AbstractContract;
+import org.apache.tuscany.assembly.model.Interface;
+import org.apache.tuscany.policy.model.Intent;
+
+public class ContractImpl extends BaseImpl implements AbstractContract {
+	private Interface callbackInterface;
+	private Interface callInterface;
+	private String name;
+	private List<Intent> requiredIntents = new ArrayList<Intent>();
+
+	public Interface getCallbackInterface() {
+		return callbackInterface;
+	}
+
+	public Interface getInterface() {
+		return callInterface;
+	}
+
+	public String getName() {
+		return name;
+	}
+
+	public void setCallbackInterface(Interface callbackInterface) {
+		this.callbackInterface = callbackInterface;
+	}
+
+	public void setInterface(Interface callInterface) {
+		this.callInterface = callInterface;
+	}
+
+	public void setName(String name) {
+		this.name = name;
+	}
+
+	public List<Intent> getRequiredIntents() {
+		return requiredIntents;
+	}
+
+}

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

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

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/InterfaceImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/InterfaceImpl.java?view=auto&rev=521792
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/InterfaceImpl.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/InterfaceImpl.java Fri Mar 23 09:20:35 2007
@@ -0,0 +1,53 @@
+/*
+ * 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.assembly.model.impl;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.tuscany.assembly.model.Interface;
+import org.apache.tuscany.policy.model.Intent;
+
+public abstract class InterfaceImpl extends BaseImpl implements Interface {
+	
+	private boolean conversational;
+	private boolean remotable;
+	List<Intent> requiredIntents = new ArrayList<Intent>();
+
+	public boolean isConversational() {
+		return conversational;
+	}
+
+	public boolean isRemotable() {
+		return remotable;
+	}
+
+	public void setConversational(boolean conversational) {
+		this.conversational = conversational;
+	}
+
+	public void setRemotable(boolean local) {
+		this.remotable = local;
+	}
+
+	public List<Intent> getRequiredIntents() {
+		return requiredIntents;
+	}
+
+}

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

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

Added: incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/PropertyImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/PropertyImpl.java?view=auto&rev=521792
==============================================================================
--- incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/PropertyImpl.java (added)
+++ incubator/tuscany/sandbox/sebastien/java/sca/modules2/assembly/src/main/java/org/apache/tuscany/assembly/model/impl/PropertyImpl.java Fri Mar 23 09:20:35 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.assembly.model.impl;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.tuscany.assembly.model.Property;
+import org.apache.tuscany.policy.model.PolicySet;
+
+/**
+ * Represents a property.
+ *
+ *  @version $Rev$ $Date$
+ */
+public class PropertyImpl extends AbstractPropertyImpl implements Property {
+	private List<PolicySet> policySets = new ArrayList<PolicySet>();
+
+	public List<PolicySet> getPolicySets() {
+		return policySets;
+	}
+
+}



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