public class ValidationErrorBuilderImpl extends Object implements ValidationErrorBuilder
Constructor and Description |
---|
ValidationErrorBuilderImpl() |
Modifier and Type | Method and Description |
---|---|
void |
invalidValueForType(OptionSpecification optionSpecification,
String message) |
void |
missingOption(OptionSpecification optionSpecification) |
void |
missingValue(OptionSpecification optionSpecification) |
void |
patternMismatch(OptionSpecification optionSpecification,
String value) |
void |
unableToConstructType(OptionSpecification optionSpecification,
String message) |
void |
unexpectedOption(String name) |
void |
unexpectedTrailingValue(List<String> unparsedArguments) |
void |
unexpectedValue(OptionSpecification optionSpecification,
List<String> values) |
void |
validate() |
void |
wrongNumberOfValues(OptionSpecification optionSpecification,
List<String> excessValues) |
public void missingValue(OptionSpecification optionSpecification)
missingValue
in interface ValidationErrorBuilder
public void wrongNumberOfValues(OptionSpecification optionSpecification, List<String> excessValues)
wrongNumberOfValues
in interface ValidationErrorBuilder
public void unexpectedOption(String name)
unexpectedOption
in interface ValidationErrorBuilder
public void unexpectedValue(OptionSpecification optionSpecification, List<String> values)
unexpectedValue
in interface ValidationErrorBuilder
public void unexpectedTrailingValue(List<String> unparsedArguments)
unexpectedTrailingValue
in interface ValidationErrorBuilder
public void missingOption(OptionSpecification optionSpecification)
missingOption
in interface ValidationErrorBuilder
public void invalidValueForType(OptionSpecification optionSpecification, String message)
invalidValueForType
in interface ValidationErrorBuilder
public void unableToConstructType(OptionSpecification optionSpecification, String message)
unableToConstructType
in interface ValidationErrorBuilder
public void patternMismatch(OptionSpecification optionSpecification, String value)
patternMismatch
in interface ValidationErrorBuilder
public void validate() throws ArgumentValidationException
validate
in interface ValidationErrorBuilder
ArgumentValidationException
Copyright © 2006-2013 lexicalscope. All Rights Reserved.