01: // THIS SOFTWARE IS PROVIDED BY SOFTARIS PTY.LTD. AND OTHER METABOSS
02: // CONTRIBUTORS ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING,
03: // BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
04: // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SOFTARIS PTY.LTD.
05: // OR OTHER METABOSS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
06: // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
07: // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
08: // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
09: // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
10: // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
11: // EVEN IF SOFTARIS PTY.LTD. OR OTHER METABOSS CONTRIBUTORS ARE ADVISED OF THE
12: // POSSIBILITY OF SUCH DAMAGE.
13: //
14: // Copyright 2000-2005 © Softaris Pty.Ltd. All Rights Reserved.
15: package com.metaboss.sdlctools.domains.enterprisemodel;
16:
17: import com.metaboss.enterprise.bo.BOException;
18: import com.metaboss.sdlctools.types.enterprisemodel.AssociationRoleCardinality;
19: import com.metaboss.sdlctools.types.enterprisemodel.AssociationRoleStereotype;
20: import com.oldboss.framework.bo.BOObject;
21:
22: public interface BOAssociationRole extends BOObject {
23: /** Retrieves association this role belongs to. Together with name
24: * forms primary key for this object */
25: public BOAssociation getAssociation() throws BOException;
26:
27: /** Retrieves role's ref. Ref is globally unique */
28: public String getRef() throws BOException;
29:
30: /** Retrieves role's position.
31: * @return true if Role is at A position and false if role is at B position */
32: public boolean isRoleA() throws BOException;
33:
34: /** Retrieves singular role name. */
35: public String getName() throws BOException;
36:
37: /** Sets singular role name. */
38: public void setName(String pName) throws BOException;
39:
40: /** Retrieves plural role name */
41: public String getPluralName() throws BOException;
42:
43: /** Sets plural role name. */
44: public void setPluralName(String pPluralName) throws BOException;
45:
46: /** Retrieves entity for which this role is described */
47: public BOEntity getEntity() throws BOException;
48:
49: /** Sets entity for which this role is described. This method
50: * will remove the role from the entity it was previously associated with and
51: * add this role to the entity passed to it. EntityAssociationRole lists
52: * are automatically updated if required. */
53: public void setEntity(BOEntity pEntity) throws BOException;
54:
55: /** Retrieves description */
56: public String getDescription() throws BOException;
57:
58: /** Sets description */
59: public void setDescription(String pDescription) throws BOException;
60:
61: /** Retrieves cardinality for this role */
62: public AssociationRoleCardinality getCardinality()
63: throws BOException;
64:
65: /** Sets cardinality */
66: public void setCardinality(AssociationRoleCardinality pCardinality)
67: throws BOException;
68:
69: /** Returns stereotype for this role */
70: public AssociationRoleStereotype getStereotype() throws BOException;
71:
72: /** Sets stereotype */
73: public void setStereotype(AssociationRoleStereotype pStereotype)
74: throws BOException;
75: }
|