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