org.codehaus.mojo.tomcat
Class AbstractI18NMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.tomcat.AbstractI18NMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AbstractCatalinaMojo, AbstractRunMojo

public abstract class AbstractI18NMojo
extends org.apache.maven.plugin.AbstractMojo

Abstract goal that provides i18n support.

Version:
$Id: AbstractI18NMojo.java 6588 2008-03-28 12:22:57Z bentmann $
Author:
Mark Hobson

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractI18NMojo()
          Creates a new AbstractI18NMojo.
 
Method Summary
protected  String getMessage(String key)
          Gets the message for the given key from this packages resource bundle.
protected  String getMessage(String key, Object param)
          Gets the message for the given key from this packages resource bundle and formats it with the given parameter.
protected  String getMessage(String key, Object[] params)
          Gets the message for the given key from this packages resource bundle and formats it with the given parameters.
protected  String getMessage(String key, Object param1, Object param2)
          Gets the message for the given key from this packages resource bundle and formats it with the given parameters.
 
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
 
Methods inherited from interface org.apache.maven.plugin.Mojo
execute
 

Constructor Detail

AbstractI18NMojo

public AbstractI18NMojo()
Creates a new AbstractI18NMojo.

Method Detail

getMessage

protected String getMessage(String key)
Gets the message for the given key from this packages resource bundle.

Parameters:
key - the key for the required message
Returns:
the message

getMessage

protected String getMessage(String key,
                            Object param)
Gets the message for the given key from this packages resource bundle and formats it with the given parameter.

Parameters:
key - the key for the required message
param - the parameter to be used to format the message with
Returns:
the formatted message

getMessage

protected String getMessage(String key,
                            Object param1,
                            Object param2)
Gets the message for the given key from this packages resource bundle and formats it with the given parameters.

Parameters:
key - the key for the required message
param1 - the first parameter to be used to format the message with
param2 - the second parameter to be used to format the message with
Returns:
the formatted message

getMessage

protected String getMessage(String key,
                            Object[] params)
Gets the message for the given key from this packages resource bundle and formats it with the given parameters.

Parameters:
key - the key for the required message
params - the parameters to be used to format the message with
Returns:
the formatted message


Copyright © 2005-2011 Codehaus. All Rights Reserved.