|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
C - Cluster typepublic interface HierarchyImplementation<C extends HierarchyInterface<C>>
Hierarchy abstraction layer. Note that this allows the hierarchy to be implemented either using one Hierarchy Object per C object, or using a shared object for all of them. "self" is the parameter that is the referencing object.
| Method Summary | ||
|---|---|---|
|
getAncestors(C self,
T collection)
Collect ancestors (recursive parents) |
|
List<C> |
getChildren(C self)
Get children list. |
|
|
getDescendants(C self,
T collection)
Collect descendants (recursive children) |
|
List<C> |
getParents(C self)
Get parents list. |
|
boolean |
isHierarchical()
Test for hierarchical properties |
|
int |
numChildren(C self)
Get number of children |
|
int |
numParents(C self)
Get number of parents |
|
| Method Detail |
|---|
boolean isHierarchical()
int numChildren(C self)
self - object to get number of children for
List<C> getChildren(C self)
self - object to get children for
<T extends Collection<C>> T getDescendants(C self,
T collection)
T - Collection typeself - object to get descendants forcollection - Collection to fill
int numParents(C self)
self - reference object
List<C> getParents(C self)
self - object to get parents for
<T extends Collection<C>> T getAncestors(C self,
T collection)
T - Collection typeself - object to get anchestors forcollection - Collection to fill
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||