Examples of ValidationErrorBuilderImpl


Examples of com.lexicalscope.jewel.cli.ValidationErrorBuilderImpl

*/

public final class DefaultValidatorFactory {
    public static final <O> ArgumentValidator createDefaultValidator(final OptionsSpecification<O> optionsSpecification)
    {
        return new ArgumentValidatorImpl<O>(optionsSpecification, new ValidationErrorBuilderImpl());
    }
View Full Code Here

Examples of com.lexicalscope.jewel.cli.ValidationErrorBuilderImpl

    private <O> OptionCollectionImpl validate(final String[] arguments, final Class<O> klass)
            throws ArgumentValidationException {
        final ArgumentValidatorImpl<O> impl =
                new ArgumentValidatorImpl<O>(
                        InterfaceOptionsSpecificationParser.<O>createOptionsSpecificationImpl(type(klass)), new ValidationErrorBuilderImpl());

        final ArgumentCollectionBuilder parsedArguments = new ArgumentCollectionBuilder();
        createDefaultArgumentParser().parseArguments(parsedArguments, arguments);

        return (OptionCollectionImpl) parsedArguments.processArguments(impl);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.