Interface DataNode

All Known Implementing Classes:
DataDiff, DataItem, DataList, DataObject

public interface DataNode
A node in a PDO data structure.
  • Method Summary

    Modifier and Type
    Method
    Description
    The optional comment.
    Gets the optional configuration path.
    Gets the entity this node belongs to.
    Returns the name of the node.
    Can be the name of a property, an entity, class, interface, whatever.
    List<? extends DataNode>
    Gets the optional sub nodes of this node.
    default String
    Gets the name of this node type.
    Used to locate the image, for example.
    Returns the SQL select configuration for the where clause.
    Returns the type of the node.
    Can be any Java type, classname (w/o package) including optional generics.
    Example:
    Returns the value of the node.
    This is usually the toString value.
    boolean
    Gets the hidden flag.
    void
    setConfigurationPath(String configurationPath)
    Sets the optional configuration path.
  • Method Details

    • getType

      @Bindable String 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

      @Bindable String 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

      @Bindable String getValue()
      Returns the value of the node.
      This is usually the toString value. 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

      List<? extends DataNode> getNodes()
      Gets the optional sub nodes of this node.
      Returns:
      the nodes, null if this node has no sub nodes
    • getNodeType

      default String getNodeType()
      Gets the name of this node type.
      Used to locate the image, for example.
      Returns:
      the node type name
    • setConfigurationPath

      void setConfigurationPath(String configurationPath)
      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