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.Gets the entity this node belongs to.getName()Returns the name of the node.
Can be the name of a property, an entity, class, interface, whatever.getNodes()Gets the optional sub nodes of this node.default StringGets the name of this node type.
Used to locate the image, for example.Returns the SQL select configuration for the where clause.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.booleanisHidden()Gets the hidden flag.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
-
isHidden
boolean isHidden()Gets the hidden flag.- Returns:
- true if object is hidden (no public method available)
-
getNodes
Gets the optional sub nodes of this node.- Returns:
- the nodes, null if this node has no sub nodes
-
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
-
getSqlCondition
SqlCondition getSqlCondition()Returns the SQL select configuration for the where clause.- Returns:
- the sql config
-
getEntity
Entity getEntity()Gets the entity this node belongs to.- Returns:
- the entity
-