Examples of EnumValueParser


Examples of net.windwards.options.valueparsers.basic.EnumValueParser

                throw new UnsupportedTypeException("Failed to instantiate " +
                        "value parser " + parserKlazz.getName() +
                        " for option --" + this.longOptionName);
            }
        } else if (type.isEnum()) {
            this.valueParser = new EnumValueParser();
            Object[] constants = type.getEnumConstants();
            this.alternatives = new HashSet<String>();
            for (Object enumValue : constants) {
                this.alternatives.add(enumValue.toString());
            }
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.