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.
    Returns the name of the node.
    Can be the name of a property, an entity, class, interface, whatever.
    List<? extends DataNode>
    Gets the optional subnodes of this node.
    default String
    Gets the name of this node type.
    Used to locate the image, for example.
    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.
    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
    • getNodes

      List<? extends DataNode> getNodes()
      Gets the optional subnodes of this node.
      Returns:
      the nodes, null if this node has no subnodes
    • 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