| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.apache.tools.ant.util.facade.FacadeTaskHelper
Helper class for facade implementations - encapsulates treatment of explicit implementation choices, magic properties and implementation specific command line arguments.
| Constructor Summary | |
FacadeTaskHelper(java.lang.String defaultValue)
 | 
|
FacadeTaskHelper(java.lang.String defaultValue,
                 java.lang.String magicValue)
 | 
|
| Method Summary | |
 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.  | 
 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.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
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.| Method Detail | 
public void setMagicValue(java.lang.String magicValue)
public void setImplementation(java.lang.String userChoice)
public java.lang.String getImplementation()
public java.lang.String getExplicitChoice()
public void addImplementationArgument(ImplementationSpecificArgument arg)
public java.lang.String[] getArgs()
public boolean hasBeenSet()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||