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