01: package com.metaboss.sdlctools.models.metabossmodel.visualmodel;
02:
03: /**
04: * LineHasEnd association proxy interface.
05: */
06: public interface LineHasEnd extends javax.jmi.reflect.RefAssociation {
07: /**
08: * Queries whether a link currently exists between a given pair of instance
09: * objects in the associations link set.
10: * @param lineWithEnd Value of the first association end.
11: * @param endPoint Value of the second association end.
12: * @return Returns true if the queried link exists.
13: */
14: public boolean exists(
15: com.metaboss.sdlctools.models.metabossmodel.visualmodel.Line lineWithEnd,
16: com.metaboss.sdlctools.models.metabossmodel.visualmodel.Point endPoint);
17:
18: /**
19: * Queries the instance object that is related to a particular instance object
20: * by a link in the current associations link set.
21: * @param endPoint Required value of the second association end.
22: * @return Related object or <code>null</code> if none exists.
23: */
24: public com.metaboss.sdlctools.models.metabossmodel.visualmodel.Line getLineWithEnd(
25: com.metaboss.sdlctools.models.metabossmodel.visualmodel.Point endPoint);
26:
27: /**
28: * Queries the instance object that is related to a particular instance object
29: * by a link in the current associations link set.
30: * @param lineWithEnd Required value of the first association end.
31: * @return Related object or <code>null</code> if none exists.
32: */
33: public com.metaboss.sdlctools.models.metabossmodel.visualmodel.Point getEndPoint(
34: com.metaboss.sdlctools.models.metabossmodel.visualmodel.Line lineWithEnd);
35:
36: /**
37: * Creates a link between the pair of instance objects in the associations
38: * link set.
39: * @param lineWithEnd Value of the first association end.
40: * @param endPoint Value of the second association end.
41: */
42: public boolean add(
43: com.metaboss.sdlctools.models.metabossmodel.visualmodel.Line lineWithEnd,
44: com.metaboss.sdlctools.models.metabossmodel.visualmodel.Point endPoint);
45:
46: /**
47: * Removes a link between a pair of instance objects in the current associations
48: * link set.
49: * @param lineWithEnd Value of the first association end.
50: * @param endPoint Value of the second association end.
51: */
52: public boolean remove(
53: com.metaboss.sdlctools.models.metabossmodel.visualmodel.Line lineWithEnd,
54: com.metaboss.sdlctools.models.metabossmodel.visualmodel.Point endPoint);
55: }
|