java.lang.Object
org.tentackle.maven.plugin.wizard.pdodata.DataList
All Implemented Interfaces:
DataNode

public class DataList extends Object implements DataNode
A list of PDOs.
Such as
List<Message> messages = [12]
  • Constructor Details

    • DataList

      public DataList(String genericType, String name, String comment, List<DataObject> nodes, Relation relation)
      Creates a DataList.
      Parameters:
      genericType - the inner generic type
      name - the name of the list property
      comment - the optional comment
      nodes - the items of the list sorted by ID
      relation - the composite list relation
  • Method Details

    • getGenericType

      public String getGenericType()
      Gets the inner generic type.
      Returns:
      the inner generic type
    • getName

      public String getName()
      Gets the name of the list property.
      Specified by:
      getName in interface DataNode
      Returns:
      the name of the list property
    • getComment

      public String getComment()
      Description copied from interface: DataNode
      The optional comment.
      Specified by:
      getComment in interface DataNode
      Returns:
      the comment, null if none
    • getNodes

      public List<DataObject> getNodes()
      Gets the items of the list sorted by ID.
      Specified by:
      getNodes in interface DataNode
      Returns:
      the items of the list sorted by ID
    • getRelation

      public Relation getRelation()
      Gets the composite list relation.
      Returns:
      the relation
    • getType

      public String getType()
      Description copied from interface: DataNode
      Returns the type of the node.
      Can be any Java type, classname (w/o package) including optional generics.
      Example:
      List<Message>
      Specified by:
      getType in interface DataNode
      Returns:
      the type, never null and never empty
    • getValue

      public String getValue()
      Description copied from interface: DataNode
      Returns the value of the node.
      This is usually the toString value. For collections, it's the size.
      Specified by:
      getValue in interface DataNode
      Returns:
      the value, null if it's java value is null
    • setConfigurationPath

      public void setConfigurationPath(String configurationPath)
      Description copied from interface: DataNode
      Sets the optional configuration path.
      Specified by:
      setConfigurationPath in interface DataNode
      Parameters:
      configurationPath - the path
    • getConfigurationPath

      public String getConfigurationPath()
      Description copied from interface: DataNode
      Gets the optional configuration path.
      Specified by:
      getConfigurationPath in interface DataNode
      Returns:
      the path, null if none
    • toString

      public String toString()
      Overrides:
      toString in class Object