Package org.nuiton.plugin
Class AbstractAvailableDataMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.nuiton.plugin.AbstractAvailableDataMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
public abstract class AbstractAvailableDataMojo
extends org.apache.maven.plugin.AbstractMojo
Abstract mojo used to display
AbstractAvailableDataMojo.AvailableData in a simple way.
Created: 10/05/11
- Since:
- 1.3
- Author:
- Florian Desbois
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interfaceAvailableData type that contains all data needed to display and how to display them. -
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendData(AbstractAvailableDataMojo.AvailableData data, StringBuilder buffer) Append adatato the givenbuffer.voidexecute()protected abstract Collection<AbstractAvailableDataMojo.AvailableData>Retrieve the Collection of all AvailableData to display.Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
AbstractAvailableDataMojo
public AbstractAvailableDataMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
appendData
Append adatato the givenbuffer.- Parameters:
data- AvailableData to appendbuffer- StringBuilder to use
-
getAllAvailableDatas
Retrieve the Collection of all AvailableData to display.- Returns:
- the Collection of all
AbstractAvailableDataMojo.AvailableData.
-