View Javadoc

1   /*
2    wsmo4j - a WSMO API and Reference Implementation
3   
4    Copyright (c) 2004-2005, OntoText Lab. / SIRMA
5   
6    This library is free software; you can redistribute it and/or modify it under
7    the terms of the GNU Lesser General Public License as published by the Free
8    Software Foundation; either version 2.1 of the License, or (at your option)
9    any later version.
10   This library is distributed in the hope that it will be useful, but WITHOUT
11   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12   FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13   details.
14   You should have received a copy of the GNU Lesser General Public License along
15   with this library; if not, write to the Free Software Foundation, Inc.,
16   59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17   */
18  
19  /**
20   * <p>Title: WSMO4J</p>
21   * <p>Description: WSMO API and a Reference Implementation</p>
22   * <p>Copyright:  Copyright (c) 2004-2005</p>
23   * <p>Company: OntoText Lab. / SIRMA </p>
24   */
25  
26  package org.wsmo.service;
27  
28  
29  import org.wsmo.common.*;
30  
31  
32  /**
33   * This java interface represents a WSMO
34   * web service interface.
35   *
36   * @author not attributable
37   * @version $Revision: 386 $ $Date: 2005-06-01 13:59:58 +0300 (Wed, 01 Jun 2005) $
38   */
39  public interface Interface
40      extends TopEntity {
41  
42      /**
43       * Returns the orchestration of this interface.
44       * @return The orchestration of this interface.
45       * @see #setOrchestration(org.wsmo.service.Orchestration)
46       * @throws org.wsmo.common.exception.SynchronisationException
47       */
48      Orchestration getOrchestration();
49  
50      /**
51       * Sets the orchestration of this interface.
52       * @param orch The new orchestration.
53       * @see #getOrchestration()
54       * @throws org.wsmo.common.exception.SynchronisationException
55       * @throws org.wsmo.common.exception.InvalidModelException
56       */
57      void setOrchestration(Orchestration orch);
58  
59      /**
60       * Returns the choreography of this interface.
61       * @return The choreography of this interface.
62       * @see #setChoreography(org.wsmo.service.Choreography)
63       * @throws org.wsmo.common.exception.SynchronisationException
64       */
65      Choreography getChoreography();
66  
67      /**
68       * Sets the choreography of the this interface.
69       * @param chor A reference to the new choreography.
70       * @see #getChoreography()
71       * @throws org.wsmo.common.exception.SynchronisationException
72       * @throws org.wsmo.common.exception.InvalidModelException
73       */
74      void setChoreography(Choreography chor);
75  
76      /**
77       * Creates a new Choreography object.
78       * @param id The ID of the new Choreography object
79       * @return The newly created Choreography object.
80       */
81      Choreography createChoreography(Identifier id);
82  
83      /**
84       * Creates a new Orchestration object.
85       * @param id The ID of the new Orchestration object.
86       * @return The newly created Orchestration object.
87       */
88      Orchestration createOrchestration(Identifier id);
89  
90  // DO NOT EDIT below this line
91  
92      /**
93       * @link aggregation
94       * @supplierCardinality 0..1
95       * @supplierQualifier has-orch
96       * @clientCardinality 0..*
97       * @directed
98       */
99      /*# Orchestration lnkOrchestration; */
100 
101     /**
102      * @link aggregation
103      * @directed
104      * @supplierCardinality 0..1
105      * @supplierQualifier has-chor
106      * @clientCardinality 0..*
107      */
108     /*# Choreography lnkChoreography; */
109 }
110 
111 
112 /*
113  * $Log$
114  * Revision 1.9  2005/06/01 10:59:58  marin_dimitrov
115  * v0.4.0
116  *
117  * Revision 1.4  2005/05/12 10:11:05  marin
118  * added javadocs, proper formatting, etc
119  *
120  */
121