org.nuiton.plugin
Class AbstractAvailableDataMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by 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:
fdesbois $Id: AbstractAvailableDataMojo.java 814 2011-05-10 22:07:16Z tchemit $

Nested Class Summary
protected static interface AbstractAvailableDataMojo.AvailableData
          AvailableData 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
AbstractAvailableDataMojo()
           
 
Method Summary
protected  void appendData(AbstractAvailableDataMojo.AvailableData data, StringBuilder buffer)
          Append a data to the given buffer.
 void execute()
           
protected abstract  Collection<AbstractAvailableDataMojo.AvailableData> getAllAvailableDatas()
          Retrieve the Collection of all AvailableData to display.
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAvailableDataMojo

public AbstractAvailableDataMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

appendData

protected void appendData(AbstractAvailableDataMojo.AvailableData data,
                          StringBuilder buffer)
Append a data to the given buffer.

Parameters:
data - AvailableData to append
buffer - StringBuilder to use

getAllAvailableDatas

protected abstract Collection<AbstractAvailableDataMojo.AvailableData> getAllAvailableDatas()
Retrieve the Collection of all AvailableData to display.

Returns:
the Collection of all AbstractAvailableDataMojo.AvailableData.


Copyright © 2009-2012 CodeLutin. All Rights Reserved.