|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.jutil.structure.StructureElement
DEPRECATEDA class of "components" for inplementing a 1-n binding. This class is the n side of the binding (the side where the "n" is in a UML diagram).
This is actually a lightweight version of the APSet-APElement combination of the Beedra framework of Jan Dockx.
This class is typically using in the following way. See class StructureElement for class B.
public class B {
public B() {
$a = new StructureElement(this);
}
public A getA() {
return (A)$a.getOtherEnd();
}
StructureElement getALink() {
return $a;
}
private StructureElement $a;
}
The binding is controlled in class A. Of course you can add a setA(A a) method to class B.
| Class Specifications |
| public invariant getStructureSet() != null ==> getStructureSet().contains(this); |
| Field Summary | |
static java.lang.String |
CVS_REVISION
Deprecated. |
| Constructor Summary | |
StructureElement(java.lang.Object object)
Deprecated. Initialize a new StructureElement for the given object. |
|
StructureElement(java.lang.Object object,
StructureSet structureSet)
Deprecated. Initialize a new StructureElement for the given object, connected to the given StructureSet. |
|
| Method Summary | |
void |
connectTo(StructureSet structureSet)
Deprecated. Set the 1 side of this 10n binding. |
java.lang.Object |
getObject()
Deprecated. Return the object on the n side of the 1-n binding represented by this StructureElement |
java.lang.Object |
getOtherEnd()
Deprecated. Return the Object at the other end of this double binding. |
StructureSet |
getStructureSet()
Deprecated. return the structureSet this StructureElement belongs to |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String CVS_REVISION
| Constructor Detail |
public StructureElement(java.lang.Object object)
object - The object at the n side of the 1-n binding.
public StructureElement(java.lang.Object object,
StructureSet structureSet)
object - The object at the n side of the 1-n binding.| Method Detail |
public java.lang.Object getOtherEnd()
public void connectTo(StructureSet structureSet)
set - The new StructureSet this StructureElement will be connected to.public java.lang.Object getObject()
public StructureSet getStructureSet()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||