public interface TNode<I>
Modifier and Type | Method and Description |
---|---|
boolean |
exists()
Returns true if the node exists, false otherwise
|
int |
getChildCount()
Returns the number of children.
|
Iterable<TNode<I>> |
getChildren()
Returns children.
|
I |
getId()
Returns the object id.
|
String |
getLabel(Locale locale)
Returns language specific label.
|
TNode<I> |
getParent()
Returns parent object and
null for root elements without parent. |
Iterable<TNode<I>> |
getPath()
Returns path to root or
null for root nodes. |
Object |
getProperty(String name)
Returns a user defined property;
null for unknown properties. |
Iterable<String> |
getPropertyNames()
Returns all property names.
|
boolean |
hasChildren()
Returns
true if this object has children. |
boolean |
isRoot()
Returns
true for root elements. |
boolean |
isSelectable()
Returns
true if this object can be selected. |
@Nullable TNode<I> getParent()
null
for root
elements without parent.null
for root elements.Iterable<TNode<I>> getPath()
null
for root
nodes. The path starts with the node's
parent
, ..., root node.null
for root
nodes.boolean isRoot()
true
for root elements.true
for root elements.int getChildCount()
@NotNull Iterable<TNode<I>> getChildren()
boolean hasChildren()
true
if this object has children.true
if this entity has children.@NotNull String getLabel(@Nullable Locale locale)
locale
a
default label must be returned.locale
- locale.@NotNull Iterable<String> getPropertyNames()
@Nullable Object getProperty(@NotNull String name)
null
for unknown properties.name
- property name.null
for unknown properties.getPropertyNames()
boolean isSelectable()
true
if this object can be selected.true
if this object can be selected.boolean exists()
Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500