|
Release Planner v1.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rp.util.TwoList | +--rp.util.dom.DOMObject | +--rp.util.dom.DOMRelation.Instance
Baseclass for relationship instances. Each instance represents a link between two DOMObjects. Note that a relationship instance is itself a DOMOBject (and hence can pariticpate in relations). This is how ternary and higher-order relationships are implemented in the framework.
Nested Class Summary | |
static interface |
DOMRelation.Instance.Iterator
Used to iterate across the instances of a relationship. |
Nested classes inherited from class rp.util.dom.DOMObject |
DOMObject.Iterator |
Nested classes inherited from class rp.util.TwoList |
TwoList.IteratorA, TwoList.IteratorB |
Field Summary | |
static int |
MANY
represents an infinite maximum numericity |
Fields inherited from class rp.util.TwoList |
headA, headB, nextA, nextB, numsA, numsB, prevA, prevB |
Constructor Summary | |
protected |
DOMRelation.Instance(DOMRelation.Left left,
DOMRelation.Right right)
Create a new relationship instance between the two object end-points. |
Method Summary | |
DOMRelation.Left |
getLeftEndpoint()
Get the left endpoint of this relationship instance. |
DOMObject |
getLeftObject()
Get the object on the left of this relationship instance. |
abstract DOMRelation |
getRelation()
Return the meta-object representing the relationship of which this instance is a part. |
DOMRelation.Right |
getRightEndpoint()
Get the right endpoint of this relationship instance. |
DOMObject |
getRightObject()
Get the object on the right of this relationship instance. |
void |
rm()
Remove the relationship between the two objects. |
Methods inherited from class rp.util.TwoList |
addA, addB, countA, countB, decommissionAsHeadA, decommissionAsHeadB, firstA, firstB, headA, headB, initAsHeadA, initAsHeadB, isElementA, isElementB, isHeadA, isHeadB, rmA, rmB |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int MANY
Constructor Detail |
protected DOMRelation.Instance(DOMRelation.Left left, DOMRelation.Right right)
left
- the relationship end-point of the object on the left of the relationshipright
- the relationship end-point of the object on the right of the relationshipMethod Detail |
public void rm()
public DOMRelation.Left getLeftEndpoint()
public DOMObject getLeftObject()
public DOMRelation.Right getRightEndpoint()
public DOMObject getRightObject()
public abstract DOMRelation getRelation()
|
Release Planner v1.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |