Package com.cedarsolutions.shared.domain

Examples of com.cedarsolutions.shared.domain.StringEnum


     * @return True if the string value is a valid (not counting the null enumeration), false otherwise.
     */
    public static boolean isValid(Class clazz, String value) {
        try {
            if (isStringEnum(clazz)) {
                StringEnum constant = (StringEnum) getEnum(clazz, value);
                return constant.getValue() != null;
            } else if (isIntegerEnum(clazz)) {
                IntegerEnum constant = (IntegerEnum) getEnum(clazz, value);
                return constant.getValue() != null;
            } else {
                return false;
            }
        } catch (EnumException e) {
            return false;
View Full Code Here

TOP

Related Classes of com.cedarsolutions.shared.domain.StringEnum

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.