|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
C - public 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 -
List<C> getChildren(C self)
self -
<T extends Collection<C>> T getDescendants(C self,
T collection)
T - Collection typeself - collection - Collection to fill
int numParents(C self)
self - reference object
List<C> getParents(C self)
self -
<T extends Collection<C>> T getAncestors(C self,
T collection)
T - Collection typeself - collection - Collection to fill
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||