Interface DataNode
- All Known Implementing Classes:
DataDiff,DataItem,DataList,DataObject
public interface DataNode
A node in a PDO data structure.
-
Method Summary
Modifier and TypeMethodDescriptionThe optional comment.Gets the optional configuration path.getName()Returns the name of the node.
Can be the name of a property, an entity, class, interface, whatever.getNodes()Gets the optional subnodes of this node.default StringGets the name of this node type.
Used to locate the image, for example.getType()Returns the type of the node.
Can be any Java type, classname (w/o package) including optional generics.
Example:getValue()Returns the value of the node.
This is usually thetoStringvalue.voidsetConfigurationPath(String configurationPath) Sets the optional configuration path.
-
Method Details
-
getType
Returns the type of the node.
Can be any Java type, classname (w/o package) including optional generics.
Example:List<Message>
- Returns:
- the type, never null and never empty
-
getName
Returns the name of the node.
Can be the name of a property, an entity, class, interface, whatever.- Returns:
- the name, never null and never empty
-
getValue
Returns the value of the node.
This is usually thetoStringvalue. For collections, it's the size.- Returns:
- the value, null if it's java value is null
-
getComment
String getComment()The optional comment.- Returns:
- the comment, null if none
-
getNodes
Gets the optional subnodes of this node.- Returns:
- the nodes, null if this node has no subnodes
-
getNodeType
Gets the name of this node type.
Used to locate the image, for example.- Returns:
- the node type name
-
setConfigurationPath
Sets the optional configuration path.- Parameters:
configurationPath- the path
-
getConfigurationPath
String getConfigurationPath()Gets the optional configuration path.- Returns:
- the path, null if none
-