public abstract class ObjectWithParents<PC extends ObjectWithParents>
extends java.lang.Object
ObjectWithParents, i.e., an object-with-parents,
is an object that is (possibly partially) defined as
a list of objects of the same type.| Constructor and Description |
|---|
ObjectWithParents() |
| Modifier and Type | Method and Description |
|---|---|
PC |
getCanonicalObjectOfParent(PC prt)
Returns the canonical version of the specified parent of this object.
|
abstract PC |
getPrimaryChild()
Returns the primary child of this object.
|
abstract java.lang.Iterable<PC> |
getSecondaryChildren()
Returns the secondary children of this object.
|
void |
removeParentFromPrimaryChild(PC prt) |
void |
unwatch() |
void |
watch() |
public PC getCanonicalObjectOfParent(PC prt)
prt - the parent of this object.public void removeParentFromPrimaryChild(PC prt)
public abstract PC getPrimaryChild()
public abstract java.lang.Iterable<PC> getSecondaryChildren()
public void watch()
public void unwatch()