Interface DataNode
- All Known Implementing Classes:
DataDiff, DataItem, DataList, DataObject
public interface DataNode
A node in a PDO data structure.
Implemented by
Implemented by
DataObject, DataList and DataItem for the data of a PDO,
and by DataDiff for the comparison of two such structures.-
Method Summary
Modifier and TypeMethodDescriptionGets the 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.
The path identifies the node in the code configuration, seeCodeConfigurationFactory.
-
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, null only for a reference without PDO and entity
-
getName
Returns the name of the node.
Can be the name of a property, an entity, class, interface, whatever.- Returns:
- the name, null for the root object
-
getValue
Returns the value of the node.
This is usually thetoStringvalue. For collections, it's the size.- Returns:
- the value, the representation of a null value is implementation-specific
-
getComment
-
isHidden
boolean isHidden()Gets the hidden flag.- Returns:
- true if object is hidden (no public method available)
-
getNodes
-
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.
The path identifies the node in the code configuration, seeCodeConfigurationFactory.- Parameters:
configurationPath- the path- Throws:
UnsupportedOperationException- if not applicable, such as for aDataDiff
-
getConfigurationPath
-
getSqlCondition
SqlCondition getSqlCondition()Returns the SQL select configuration for the where clause.- Returns:
- the SQL condition, null if none
-
getEntity
-