public class FacadeTaskHelper
extends java.lang.Object
Constructor and Description |
---|
FacadeTaskHelper(java.lang.String defaultValue) |
FacadeTaskHelper(java.lang.String defaultValue,
java.lang.String magicValue) |
Modifier and Type | Method and Description |
---|---|
void |
addImplementationArgument(ImplementationSpecificArgument arg)
Command line argument.
|
java.lang.String[] |
getArgs()
Retrieves the command line arguments enabled for the current
facade implementation.
|
java.lang.String |
getExplicitChoice()
Retrieves the explicit user choice.
|
java.lang.String |
getImplementation()
Retrieves the implementation.
|
Path |
getImplementationClasspath(Project project)
The classpath to use when loading the implementation.
|
boolean |
hasBeenSet()
Tests whether the implementation has been chosen by the user
(either via a magic property or explicitly.
|
void |
setImplementation(java.lang.String userChoice)
Used for explicit user choices.
|
void |
setMagicValue(java.lang.String magicValue)
Used to set the value of the magic property.
|
public FacadeTaskHelper(java.lang.String defaultValue)
defaultValue
- The default value for the implementation.
Must not be null.public FacadeTaskHelper(java.lang.String defaultValue, java.lang.String magicValue)
defaultValue
- The default value for the implementation.
Must not be null.magicValue
- the value of a magic property that may hold a user.
choice. May be null.public void setMagicValue(java.lang.String magicValue)
magicValue
- the value of a magic property that may hold a user.public void setImplementation(java.lang.String userChoice)
userChoice
- the explicitly chosen implementation.public java.lang.String getImplementation()
public java.lang.String getExplicitChoice()
public void addImplementationArgument(ImplementationSpecificArgument arg)
arg
- an argument to add.public java.lang.String[] getArgs()
public boolean hasBeenSet()