| |
|
| java.lang.Object org.tp23.antinstaller.input.OutputField
All known Subclasses: org.tp23.antinstaller.input.InputField, org.tp23.antinstaller.input.CommentOutput,
OutputField | abstract public class OutputField (Code) | | This is the super class of all "Input types". It is called OutputField since
it handles the base features of "Input types" for outputing text for
the user to read. It also encapsulates some convenience methods for
interpreting boolean values from the command line and in configuration files.
|
OutputField | public OutputField()(Code) | | |
isFalse | public static boolean isFalse(String value)(Code) | | same as isTrue() but default is false if not specified
|
isTrue | public static boolean isTrue(String value)(Code) | | true if specified and true or yes.
N.B it is possible for X, isTrue(X) == isFalse(X);
This occurs if the value is null.
|
optionalBoolean | public static boolean optionalBoolean(String value)(Code) | | Return true if the value is set to true or false, returns false if the value is null
Parameters: value - String boolean |
requiredBoolean | public static boolean requiredBoolean(String value)(Code) | | Return true if the value is set to true or false, returns false if the value is null
Parameters: value - String boolean |
setDisplayText | public void setDisplayText(String displayText)(Code) | | |
setExplanatoryText | public void setExplanatoryText(String explanatoryText)(Code) | | |
validate | abstract public boolean validate(InstallerContext cxt) throws ValidationException(Code) | | Validate the user input (or lack of it)
This method should return false if the validation fails an throw an exception
if it is not possible to validate or there is an error.
Parameters: cxt - InstallerContext throws: ValidationException - thrown in error conditions not validation failure boolean |
validateObject | abstract public boolean validateObject()(Code) | | Used to validate the configuration, this can be run prior to distributing the
installer to check that the config is valid. Will not be used at runtime.
throws: ValidationException - boolean |
|
|
|