public class AllowedArgsCmdLineOptionValidator extends Object implements CmdLineOptionValidator
CmdLineOptionValidator
which check args against a supplied list of
valid allowed arguments.CmdLineOptionValidator.Result
Constructor and Description |
---|
AllowedArgsCmdLineOptionValidator() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getAllowedArgs() |
void |
setAllowedArgs(List<String> allowedArgs) |
CmdLineOptionValidator.Result |
validate(CmdLineOptionInstance optionInst)
Throws
CmdLineValidationException if validation fails, otherwise
method just returns. |
public CmdLineOptionValidator.Result validate(CmdLineOptionInstance optionInst)
CmdLineOptionValidator
CmdLineValidationException
if validation fails, otherwise
method just returns.validate
in interface CmdLineOptionValidator
Copyright © 1999–2017 Apache OODT. All rights reserved.