Class Expression
java.lang.Object
org.apache.maven.usability.plugin.Expression
- All Implemented Interfaces:
Serializable
A plugin parameter expression supported by Maven.
- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PropertiesField apiMethods.private StringA preferred alternative to this expression, in the case where it's banned from use.private PropertiesField cliOptions.private StringThe place and syntax used to change the value of this expression.private StringA preferred alternative to this expression, in the case where it's deprecated.private StringThe description of what this expression references, and what it's generally used for.private booleanWhether the value of this expression can be changed.private StringThe syntax of the expression. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddApiMethod(String key, String value) Method addApiMethod.voidaddCliOption(String key, String value) Method addCliOption.Method getApiMethods.getBan()Get a preferred alternative to this expression, in the case where it's banned from use.Method getCliOptions.Get the place and syntax used to change the value of this expression.Get a preferred alternative to this expression, in the case where it's deprecated.Get the description of what this expression references, and what it's generally used for.Get the syntax of the expression.booleanGet whether the value of this expression can be changed.voidsetApiMethods(Properties apiMethods) Set the programmatic methods used to change the value of this expression.voidSet a preferred alternative to this expression, in the case where it's banned from use.voidsetCliOptions(Properties cliOptions) Set the command-line switches used to change the value of this expression.voidsetConfiguration(String configuration) Set the place and syntax used to change the value of this expression.voidsetDeprecation(String deprecation) Set a preferred alternative to this expression, in the case where it's deprecated.voidsetDescription(String description) Set the description of what this expression references, and what it's generally used for.voidsetEditable(boolean editable) Set whether the value of this expression can be changed.voidSet the syntax of the expression.
-
Field Details
-
syntax
The syntax of the expression. -
description
The description of what this expression references, and what it's generally used for. -
configuration
The place and syntax used to change the value of this expression. -
cliOptions
Field cliOptions. -
apiMethods
Field apiMethods. -
deprecation
A preferred alternative to this expression, in the case where it's deprecated. -
ban
A preferred alternative to this expression, in the case where it's banned from use. -
editable
private boolean editableWhether the value of this expression can be changed.
-
-
Constructor Details
-
Expression
public Expression()
-
-
Method Details
-
addApiMethod
Method addApiMethod.- Parameters:
key- a key object.value- a value object.
-
addCliOption
Method addCliOption.- Parameters:
key- a key object.value- a value object.
-
getApiMethods
Method getApiMethods.- Returns:
- Properties
-
getBan
Get a preferred alternative to this expression, in the case where it's banned from use.- Returns:
- String
-
getCliOptions
Method getCliOptions.- Returns:
- Properties
-
getConfiguration
Get the place and syntax used to change the value of this expression.- Returns:
- String
-
getDeprecation
Get a preferred alternative to this expression, in the case where it's deprecated.- Returns:
- String
-
getDescription
Get the description of what this expression references, and what it's generally used for.- Returns:
- String
-
getSyntax
Get the syntax of the expression.- Returns:
- String
-
isEditable
public boolean isEditable()Get whether the value of this expression can be changed.- Returns:
- boolean
-
setApiMethods
Set the programmatic methods used to change the value of this expression.- Parameters:
apiMethods- a apiMethods object.
-
setBan
Set a preferred alternative to this expression, in the case where it's banned from use.- Parameters:
ban- a ban object.
-
setCliOptions
Set the command-line switches used to change the value of this expression.- Parameters:
cliOptions- a cliOptions object.
-
setConfiguration
Set the place and syntax used to change the value of this expression.- Parameters:
configuration- a configuration object.
-
setDeprecation
Set a preferred alternative to this expression, in the case where it's deprecated.- Parameters:
deprecation- a deprecation object.
-
setDescription
Set the description of what this expression references, and what it's generally used for.- Parameters:
description- a description object.
-
setEditable
public void setEditable(boolean editable) Set whether the value of this expression can be changed.- Parameters:
editable- a editable object.
-
setSyntax
Set the syntax of the expression.- Parameters:
syntax- a syntax object.
-