Interface TNode<I>
public interface TNode<I>
Hierarchical data object.
- Since:
- 4.0.63
-
Method Summary
Modifier and TypeMethodDescriptionboolean
exists()
Returns true if the node exists, false otherwiseint
Returns the number of children.Returns children.getId()
Returns the object id.@NotNull String
Returns language specific label.Returns parent object andnull
forroot
elements without parent.getPath()
Returns path to root ornull
forroot
nodes.@Nullable Object
getProperty
(@NotNull String name) Returns a user defined property;null
for unknown properties.Returns all property names.boolean
Returnstrue
if this object has children.boolean
isRoot()
Returnstrue
for root elements.boolean
Returnstrue
if this object can be selected.
-
Method Details
-
getId
Returns the object id.- Returns:
- the object id.
- Since:
- 4.0.63
-
getParent
Returns parent object andnull
forroot
elements without parent.- Returns:
- parent object and
null
for root elements. - Since:
- 4.0.63
-
getPath
Returns path to root ornull
forroot
nodes. The path starts with the node'sparent
, ..., root node.- Returns:
- path to root or
null
forroot
nodes. - Since:
- 4.0.63
-
isRoot
boolean isRoot()Returnstrue
for root elements.- Returns:
true
for root elements.- Since:
- 4.0.63
-
getChildCount
int getChildCount()Returns the number of children.- Returns:
- the number of children.
- Since:
- 4.0.63
-
getChildren
Returns children.- Returns:
- children.
- Since:
- 4.0.63
-
hasChildren
boolean hasChildren()Returnstrue
if this object has children.- Returns:
true
if this entity has children.- Since:
- 4.0.63
-
getLabel
Returns language specific label. If no label is definied for the givenlocale
a default label must be returned.- Parameters:
locale
- locale.- Returns:
- language specific label.
- Since:
- 4.0.63
-
getPropertyNames
Returns all property names.- Returns:
- all property names.
- Since:
- 4.0.63
-
getProperty
Returns a user defined property;null
for unknown properties.- Parameters:
name
- property name.- Returns:
- a user defined property;
null
for unknown properties. - Since:
- 4.0.63
- See Also:
-
isSelectable
boolean isSelectable()Returnstrue
if this object can be selected.- Returns:
true
if this object can be selected.- Since:
- 4.0.63
-
exists
boolean exists()Returns true if the node exists, false otherwise- Returns:
- true if the node exists, false otherwise
- Since:
- 4.0.63
-