01: package com.metaboss.sdlctools.models.metabossmodel;
02:
03: /**
04: * ModelElementHasAttachments association proxy interface.
05: */
06: public interface ModelElementHasAttachments 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 element Value of the first association end.
12: * @param attachments 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.ModelElement element,
17: com.metaboss.sdlctools.models.metabossmodel.ModelElementAttachment attachments);
18:
19: /**
20: * Queries the instance object that is related to a particular instance object
21: * by a link in the current associations link set.
22: * @param attachments Required value of the second association end.
23: * @return Related object or <code>null</code> if none exists.
24: */
25: public com.metaboss.sdlctools.models.metabossmodel.ModelElement getElement(
26: com.metaboss.sdlctools.models.metabossmodel.ModelElementAttachment attachments);
27:
28: /**
29: * Queries the instance objects that are related to a particular instance
30: * object by a link in the current associations link set.
31: * @param element Required value of the first association end.
32: * @return Collection of related objects.
33: */
34: public java.util.Collection getAttachments(
35: com.metaboss.sdlctools.models.metabossmodel.ModelElement element);
36:
37: /**
38: * Creates a link between the pair of instance objects in the associations
39: * link set.
40: * @param element Value of the first association end.
41: * @param attachments Value of the second association end.
42: */
43: public boolean add(
44: com.metaboss.sdlctools.models.metabossmodel.ModelElement element,
45: com.metaboss.sdlctools.models.metabossmodel.ModelElementAttachment attachments);
46:
47: /**
48: * Removes a link between a pair of instance objects in the current associations
49: * link set.
50: * @param element Value of the first association end.
51: * @param attachments Value of the second association end.
52: */
53: public boolean remove(
54: com.metaboss.sdlctools.models.metabossmodel.ModelElement element,
55: com.metaboss.sdlctools.models.metabossmodel.ModelElementAttachment attachments);
56: }
|