Release Planner v1.0

rp.util.dom
Class DOMRelation.Left

java.lang.Object
  |
  +--rp.util.TwoList
        |
        +--rp.util.dom.DOMRelation.Endpoint
              |
              +--rp.util.dom.DOMRelation.Left
Direct Known Subclasses:
DevelopsSoftware.Left, HasFeatureReleases.Left, HasUsers.Left
Enclosing class:
DOMRelation

public abstract static class DOMRelation.Left
extends DOMRelation.Endpoint

The left endpoint of a relationship.


Nested Class Summary
 
Nested classes inherited from class rp.util.dom.DOMRelation.Endpoint
DOMRelation.Endpoint.Iterator
 
Nested classes inherited from class rp.util.TwoList
TwoList.Iterator, 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.Left(DOMObject o)
          Initializes a left endpoint held by the specified object.
 
Method Summary
 int count()
          Returns a count of the number of relationships attached to this endpoint.
 DOMObject getOther()
          Returns the (first) object on the other side of the relationship or null if none.
 boolean isLeft()
          Indicates if this is a left endpoint.
 boolean isRight()
          Indicates if this is a right endpoint.
 DOMObject.Iterator iterator()
          Returns an iterator over all objects on the other side of the relationship.
 DOMRelation.Instance.Iterator relationIterator()
          Returns an iterator over all relationship instances attached to this endpoint.
 
Methods inherited from class rp.util.dom.DOMRelation.Endpoint
getObject, getRelation
 
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

DOMRelation.Left

protected DOMRelation.Left(DOMObject o)
Initializes a left endpoint held by the specified object.

Parameters:
o - the object that wishes to participate on the left side of relationships and that holds this endpoint
Method Detail

isLeft

public boolean isLeft()
Description copied from class: DOMRelation.Endpoint
Indicates if this is a left endpoint.

Overrides:
isLeft in class DOMRelation.Endpoint
Returns:
true when this is a left endpoint

isRight

public boolean isRight()
Description copied from class: DOMRelation.Endpoint
Indicates if this is a right endpoint.

Overrides:
isRight in class DOMRelation.Endpoint
Returns:
true when this is a right endpoint

count

public int count()
Description copied from class: DOMRelation.Endpoint
Returns a count of the number of relationships attached to this endpoint. Runs in O(1) time.

Specified by:
count in class DOMRelation.Endpoint
Returns:
the number of relationship instances attached to this endpoint.

getOther

public DOMObject getOther()
Description copied from class: DOMRelation.Endpoint
Returns the (first) object on the other side of the relationship or null if none.

Specified by:
getOther in class DOMRelation.Endpoint

relationIterator

public DOMRelation.Instance.Iterator relationIterator()
Description copied from class: DOMRelation.Endpoint
Returns an iterator over all relationship instances attached to this endpoint.

Specified by:
relationIterator in class DOMRelation.Endpoint
Returns:
a new iterator initialized to the start of the list of relationship instances attached to this endpoint

iterator

public DOMObject.Iterator iterator()
Description copied from class: DOMRelation.Endpoint
Returns an iterator over all objects on the other side of the relationship.

Specified by:
iterator in class DOMRelation.Endpoint
Returns:
a new iterator initialized to the start of the list of objects on the other side from this endpoint

Release Planner v1.0