Package com.lexicalscope.jewel.cli

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


    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

Related Classes of com.lexicalscope.jewel.cli.ValidationErrorBuilderImpl

Copyright © 2018 www.massapicom. 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.