org.codehaus.mojo.hibernate3
Interface ExporterMojo

All Superinterfaces:
Mojo
All Known Implementing Classes:
GenericExporterMojo, Hbm2CfgXmlExporterMojo, Hbm2DAOExporterMojo, Hbm2DDLExporterMojo, Hbm2DocExporterMojo, Hbm2HbmXmlExporterMojo, Hbm2JavaGeneratorMojo, HibernateExporterMojo

public interface ExporterMojo
extends Mojo

Interface for the different types of exporters found in hibernate-tools.

Version:
$Id: ExporterMojo.java 6588 2008-03-28 12:22:57Z bentmann $
Author:
Johann Reyes

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Method Summary
 String getComponentProperty(String key)
          Returns the value from the componentProperties element which key is the one being passed.
 boolean getComponentProperty(String key, boolean defaultValue)
          Returns the value from the componentProperties element as a boolean value, or if a value is not found returns the default value.
 String getComponentProperty(String key, String defaultValue)
          Returns the value from the componentProperties element which key is the one being passed, or if is null or empty then returns the default value being specified.
 String getName()
          Name of the goal being invoked.
 MavenProject getProject()
          Returns the MavenProject object.
 
Methods inherited from interface org.apache.maven.plugin.Mojo
execute, getLog, setLog
 

Method Detail

getComponentProperty

String getComponentProperty(String key)
Returns the value from the componentProperties element which key is the one being passed.

Parameters:
key - Key
Returns:
String

getComponentProperty

String getComponentProperty(String key,
                            String defaultValue)
Returns the value from the componentProperties element which key is the one being passed, or if is null or empty then returns the default value being specified.

Parameters:
key - Key
defaultValue - Default value
Returns:
String

getComponentProperty

boolean getComponentProperty(String key,
                             boolean defaultValue)
Returns the value from the componentProperties element as a boolean value, or if a value is not found returns the default value.

Parameters:
key - Key
defaultValue - Default value
Returns:
boolean

getName

String getName()
Name of the goal being invoked.

Returns:
String goal's name

getProject

MavenProject getProject()
Returns the MavenProject object.

Returns:
MavenProject


Copyright © 2005-2010 Codehaus. All Rights Reserved.