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 getModelEncoding()
           
 String getName()
          Get The parameter name
 String getProperty()
          Get The JavaBeans property name to use to configure the mojo with this parameter.
 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 setModelEncoding(String modelEncoding)
           
 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 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.


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())


getDeprecation

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


getDescription

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


getExpression

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


getName

public String getName()
Get The parameter name


getProperty

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


getType

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


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.


isRequired

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


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 -

setType

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

Parameters:
type -

setModelEncoding

public void setModelEncoding(String modelEncoding)

getModelEncoding

public String getModelEncoding()


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.