org.apache.maven.plugin.tools.model
Class Parameter

java.lang.Object
  extended by org.apache.maven.plugin.tools.model.Parameter
All Implemented Interfaces:
Serializable

public class Parameter
extends Object
implements Serializable

A parameter used by a mojo, and configurable from the command line or POM configuration sections.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Parameter()
           
 
Method Summary
 String getAlias()
          Get an alternate name for the parameter.
 String getDefaultValue()
          Get an expression in the form ${instance.property} for extracting a value for this parameter, especially from a runtime instance within the build system.
 String getDeprecation()
          Get a deprecation message for this mojo parameter.
 String getDescription()
          Get the description for this parameter.
 String getExpression()
          Get the command-line reference to this parameter.
 String getName()
          Get the parameter name.
 String getProperty()
          Get the JavaBeans property name to use to configure the mojo with this parameter.
 String getSince()
          Get version when the parameter was added.
 String getType()
          Get the java type for this parameter.
 boolean isReadonly()
          Get whether this parameter can be directly edited.
 boolean isRequired()
          Get whether this parameter is required.
 void setAlias(String alias)
          Set an alternate name for the parameter.
 void setDefaultValue(String defaultValue)
          Set an expression in the form ${instance.property} for extracting a value for this parameter, especially from a runtime instance within the build system.
 void setDeprecation(String deprecation)
          Set a deprecation message for this mojo parameter.
 void setDescription(String description)
          Set the description for this parameter.
 void setExpression(String expression)
          Set the command-line reference to this parameter.
 void setName(String name)
          Set the parameter name.
 void setProperty(String property)
          Set the JavaBeans property name to use to configure the mojo with this parameter.
 void setReadonly(boolean readonly)
          Set whether this parameter can be directly edited.
 void setRequired(boolean required)
          Set whether this parameter is required.
 void setSince(String since)
          Set version when the parameter was added.
 void setType(String type)
          Set the java type for this parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parameter

public Parameter()
Method Detail

getAlias

public String getAlias()
Get an alternate name for the parameter.

Returns:
String

getDefaultValue

public String getDefaultValue()
Get an expression in the form ${instance.property} for extracting a value for this parameter, especially from a runtime instance within the build system. (eg. ${project.build.directory} references project.getBuild().getDirectory()).

Returns:
String

getDeprecation

public String getDeprecation()
Get a deprecation message for this mojo parameter.

Returns:
String

getDescription

public String getDescription()
Get the description for this parameter.

Returns:
String

getExpression

public String getExpression()
Get the command-line reference to this parameter.

Returns:
String

getName

public String getName()
Get the parameter name.

Returns:
String

getProperty

public String getProperty()
Get the JavaBeans property name to use to configure the mojo with this parameter.

Returns:
String

getSince

public String getSince()
Get version when the parameter was added.

Returns:
String

getType

public String getType()
Get the java type for this parameter.

Returns:
String

isReadonly

public boolean isReadonly()
Get whether this parameter can be directly edited. If false, this param is either derived from another POM element, or refers to a runtime instance of the build system.

Returns:
boolean

isRequired

public boolean isRequired()
Get whether this parameter is required.

Returns:
boolean

setAlias

public void setAlias(String alias)
Set an alternate name for the parameter.

Parameters:
alias -

setDefaultValue

public void setDefaultValue(String defaultValue)
Set an expression in the form ${instance.property} for extracting a value for this parameter, especially from a runtime instance within the build system. (eg. ${project.build.directory} references project.getBuild().getDirectory()).

Parameters:
defaultValue -

setDeprecation

public void setDeprecation(String deprecation)
Set a deprecation message for this mojo parameter.

Parameters:
deprecation -

setDescription

public void setDescription(String description)
Set the description for this parameter.

Parameters:
description -

setExpression

public void setExpression(String expression)
Set the command-line reference to this parameter.

Parameters:
expression -

setName

public void setName(String name)
Set the parameter name.

Parameters:
name -

setProperty

public void setProperty(String property)
Set the JavaBeans property name to use to configure the mojo with this parameter.

Parameters:
property -

setReadonly

public void setReadonly(boolean readonly)
Set whether this parameter can be directly edited. If false, this param is either derived from another POM element, or refers to a runtime instance of the build system.

Parameters:
readonly -

setRequired

public void setRequired(boolean required)
Set whether this parameter is required.

Parameters:
required -

setSince

public void setSince(String since)
Set version when the parameter was added.

Parameters:
since -

setType

public void setType(String type)
Set the java type for this parameter.

Parameters:
type -


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.