public interface HierarchicalEntity extends Identifiable
Entity that is structured hierarchically.
Modifier and Type | Interface and Description |
---|---|
static interface |
HierarchicalEntity.HierarchicalEntityBuilder<SELF extends HierarchicalEntity.HierarchicalEntityBuilder<SELF>>
Builder for a HierarchicalEntity instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getParentId()
Returns the id of the parent entity.
|
List<String> |
getPath()
Returns the path of the hierarchy to which the entity belongs.
|
String |
getRootId()
Returns the id of the root entity.
|
boolean |
hasParent()
Returns <i>true</i> if the entity has a parent.
|
getId
List<String> getPath()
Returns the path of the hierarchy to which the entity belongs. The path starts with the root and ends with the entity itself, when iterating through the list from beginning to end.
String getRootId()
Returns the id of the root entity.
boolean hasParent()
Returns <i>true</i> if the entity has a parent.
String getParentId()
Returns the id of the parent entity.
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.