Class DataList
java.lang.Object
org.tentackle.maven.plugin.wizard.pdodata.DataList
- All Implemented Interfaces:
DataNode
A list of PDOs.
Such as
Such as
List<Message> messages = [12]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe optional comment.Gets the optional configuration path.Gets the inner generic type.getName()Gets the name of the list property.getNodes()Gets the items of the list sorted by ID.Gets the composite list relation.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.voidsetConfigurationPath(String configurationPath) Sets the optional configuration path.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.tentackle.maven.plugin.wizard.pdodata.DataNode
getNodeType
-
Constructor Details
-
DataList
public DataList(String genericType, String name, String comment, List<DataObject> nodes, Relation relation) Creates a DataList.- Parameters:
genericType- the inner generic typename- the name of the list propertycomment- the optional commentnodes- the items of the list sorted by IDrelation- the composite list relation
-
-
Method Details
-
getGenericType
Gets the inner generic type.- Returns:
- the inner generic type
-
getName
Gets the name of the list property. -
getComment
Description copied from interface:DataNodeThe optional comment.- Specified by:
getCommentin interfaceDataNode- Returns:
- the comment, null if none
-
getNodes
Gets the items of the list sorted by ID. -
getRelation
Gets the composite list relation.- Returns:
- the relation
-
getType
Description copied from interface:DataNodeReturns the type of the node.
Can be any Java type, classname (w/o package) including optional generics.
Example:List<Message>
-
getValue
Description copied from interface:DataNodeReturns the value of the node.
This is usually thetoStringvalue. For collections, it's the size. -
setConfigurationPath
Description copied from interface:DataNodeSets the optional configuration path.- Specified by:
setConfigurationPathin interfaceDataNode- Parameters:
configurationPath- the path
-
getConfigurationPath
Description copied from interface:DataNodeGets the optional configuration path.- Specified by:
getConfigurationPathin interfaceDataNode- Returns:
- the path, null if none
-
toString
-