Interface TNode<I>
public interface TNode<I>
Hierarchical data object.
- Since:
- 4.0.63
-
Method Summary
Modifier and TypeMethodDescriptionbooleanexists()Returns true if the node exists, false otherwiseintReturns the number of children.Returns children.getId()Returns the object id.@NotNull StringReturns language specific label.Returns parent object andnullforrootelements without parent.getPath()Returns path to root ornullforrootnodes.@Nullable ObjectgetProperty(@NotNull String name) Returns a user defined property;nullfor unknown properties.Returns all property names.booleanReturnstrueif this object has children.booleanisRoot()Returnstruefor root elements.booleanReturnstrueif this object can be selected.
-
Method Details
-
getId
Returns the object id.- Returns:
- the object id.
- Since:
- 4.0.63
-
getParent
Returns parent object andnullforrootelements without parent.- Returns:
- parent object and
nullfor root elements. - Since:
- 4.0.63
-
getPath
Returns path to root ornullforrootnodes. The path starts with the node'sparent, ..., root node.- Returns:
- path to root or
nullforrootnodes. - Since:
- 4.0.63
-
isRoot
boolean isRoot()Returnstruefor root elements.- Returns:
truefor 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()Returnstrueif this object has children.- Returns:
trueif this entity has children.- Since:
- 4.0.63
-
getLabel
Returns language specific label. If no label is definied for the givenlocalea 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;nullfor unknown properties.- Parameters:
name- property name.- Returns:
- a user defined property;
nullfor unknown properties. - Since:
- 4.0.63
- See Also:
-
isSelectable
boolean isSelectable()Returnstrueif this object can be selected.- Returns:
trueif 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
-