Methods Summary |
---|
public void | addImplementationArgument(ImplementationSpecificArgument arg)Command line argument.
args.addElement(arg);
|
public java.lang.String[] | getArgs()Retrieves the command line arguments enabled for the current
facade implementation.
Vector tmp = new Vector(args.size());
for (Enumeration e = args.elements(); e.hasMoreElements();) {
ImplementationSpecificArgument arg =
((ImplementationSpecificArgument) e.nextElement());
String[] curr = arg.getParts(getImplementation());
for (int i = 0; i < curr.length; i++) {
tmp.addElement(curr[i]);
}
}
String[] res = new String[tmp.size()];
tmp.copyInto(res);
return res;
|
public java.lang.String | getExplicitChoice()Retrieves the explicit user choice.
return userChoice;
|
public java.lang.String | getImplementation()Retrieves the implementation.
return userChoice != null ? userChoice
: (magicValue != null ? magicValue
: defaultValue);
|
public boolean | hasBeenSet()Tests whether the implementation has been chosen by the user
(either via a magic property or explicitly.
return userChoice != null || magicValue != null;
|
public void | setImplementation(java.lang.String userChoice)Used for explicit user choices.
this.userChoice = userChoice;
|
public void | setMagicValue(java.lang.String magicValue)Used to set the value of the magic property.
this.magicValue = magicValue;
|