|
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.DOMRelation.Endpoint
The end-point (left or right) of a relationship. Each object wishing to participate in a relationship must own an endpoint object.
Nested Class Summary | |
static interface |
DOMRelation.Endpoint.Iterator
Used to iterate across the endpoints of a relationship. |
Nested classes inherited from class rp.util.TwoList |
TwoList.IteratorA, TwoList.IteratorB |
Field Summary |
Fields inherited from class rp.util.TwoList |
headA, headB, nextA, nextB, numsA, numsB, prevA, prevB |
Constructor Summary | |
protected |
DOMRelation.Endpoint(DOMObject o)
Initializes an endpoint held by the specified object. |
Method Summary | |
abstract int |
count()
Returns a count of the number of relationships attached to this endpoint. |
DOMObject |
getObject()
Returns the object that owns this endpoint. |
abstract DOMObject |
getOther()
Returns the (first) object on the other side of the relationship or null if none. |
abstract DOMRelation |
getRelation()
Returns the meta-infomration about the relationship that this endpoint is part of. |
boolean |
isLeft()
Indicates if this is a left endpoint. |
boolean |
isRight()
Indicates if this is a right endpoint. |
abstract DOMObject.Iterator |
iterator()
Returns an iterator over all objects on the other side of the relationship. |
abstract DOMRelation.Instance.Iterator |
relationIterator()
Returns an iterator over all relationship instances attached to this endpoint. |
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 |
Constructor Detail |
protected DOMRelation.Endpoint(DOMObject o)
o
- the object that wishes to participate in relationships that holds this endpointMethod Detail |
public boolean isLeft()
public boolean isRight()
public abstract DOMRelation.Instance.Iterator relationIterator()
public abstract DOMObject.Iterator iterator()
public abstract DOMObject getOther()
public abstract int count()
public DOMObject getObject()
public abstract DOMRelation getRelation()
|
Release Planner v1.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |