Examples of ParameterInt


Examples of org.jboss.aesh.cl.internal.ParameterInt

        params.add(parameterInt);
    }

    public CommandLineParser(String name, String usage) {
        params = new ArrayList<ParameterInt>();
        params.add(new ParameterInt(name, usage));
    }
View Full Code Here

Examples of org.jboss.aesh.cl.internal.ParameterInt

    private static ParameterInt generateParameter(Parameter param) throws CommandLineParserException {
        if(param.name() == null || param.name().length() < 1)
            throw new CommandLineParserException("The parameter name must be defined");

        ParameterInt parameterInt = new ParameterInt(param.name(), param.usage(), param.argumentType());

        if(param.options() != null) {
            for(Option o : param.options()) {
                parameterInt.addOption(
                        o.name(), o.longName(), o.description(),
                        o.hasValue(), o.argument(), o.required(),
                        o.valueSeparator(), o.isProperty(),
                        o.hasMultipleValues(), o.defaultValue(), o.type());
            }
View Full Code Here

Examples of org.jboss.aesh.cl.internal.ParameterInt

    }

    public ParameterInt generateParameter() throws CommandLineParserException {
        if(name == null || name.length() < 1)
            throw new CommandLineParserException("The parameter name must be defined");
        return  new ParameterInt(name, usage, argumentType, options);
    }
View Full Code Here

Examples of org.jboss.aesh.cl.internal.ParameterInt

                        o.name(), o.longName(), o.description(),
                        o.hasValue(), o.argument(), o.required(), o.valueSeparator(),
                        o.isProperty(), o.hasMultipleValues(), o.type());
            }

            return new ParameterInt(param.name(), param.usage(),
                    param.argumentType(), options);
        }
        else
            return new ParameterInt(param.name(), param.usage(),
                    param.argumentType(), new OptionInt[0]);
    }
View Full Code Here

Examples of org.jboss.aesh.cl.internal.ParameterInt

    }

    public ParameterInt generateParameter() throws CommandLineParserException {
        if(name == null || name.length() < 1)
            throw new CommandLineParserException("The parameter name must be defined");
        return  new ParameterInt(name, usage, argumentType, options);
    }
View Full Code Here

Examples of org.jboss.aesh.cl.internal.ParameterInt

        params.add(parameterInt);
    }

    public CommandLineParser(String name, String usage) {
        params = new ArrayList<ParameterInt>();
        params.add(new ParameterInt(name, usage));
    }
View Full Code Here

Examples of org.jboss.aesh.cl.internal.ParameterInt

    private static ParameterInt generateParameter(Parameter param) throws CommandLineParserException {
        if(param.name() == null || param.name().length() < 1)
            throw new CommandLineParserException("The parameter name must be defined");

        ParameterInt parameterInt = new ParameterInt(param.name(), param.usage(), param.argumentType());

        if(param.options() != null) {
            for(Option o : param.options()) {
                parameterInt.addOption(
                        o.name(), o.longName(), o.description(),
                        o.hasValue(), o.argument(), o.required(),
                        o.valueSeparator(), o.isProperty(),
                        o.hasMultipleValues(), o.type());
            }
View Full Code Here

Examples of org.jboss.aesh.cl.internal.ParameterInt

    public CommandLineParser(ParameterInt parameterInt) {
        this.param = parameterInt;
    }

    public CommandLineParser(String name, String usage) {
        this.param = new ParameterInt(name, usage);
    }
View Full Code Here

Examples of org.jboss.aesh.cl.internal.ParameterInt

                        o.name(), o.longName(), o.description(),
                        o.hasValue(), o.argument(), o.required(), o.valueSeparator(),
                        o.isProperty(), o.hasMultipleValues(), null);
            }

            return new CommandLineParser(new ParameterInt(param.name(), param.usage(), options));
        }
        else
            return new CommandLineParser(new ParameterInt(param.name(), param.usage(), new OptionInt[0]));
    }
View Full Code Here

Examples of org.jboss.aesh.cl.internal.ParameterInt

        this.options.addAll(options);
        return this;
    }

    public CommandLineParser generateParser() {
        return new CommandLineParser( new ParameterInt(name, usage, options));
    }
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.