Package org.apache.isis.applib.annotation

Examples of org.apache.isis.applib.annotation.MinLength


        final Annotation[][] parameterAnnotations = method.getParameterAnnotations();
        if(parameterAnnotations.length == 1) {
            final Annotation[] searchArgAnnotations = parameterAnnotations[0];
            for(Annotation annotation: searchArgAnnotations) {
                if(annotation instanceof MinLength) {
                    MinLength minLength = (MinLength) annotation;
                    return minLength.value();
                }
            }
        }
        return MinLengthUtil.MIN_LENGTH_DEFAULT;
    }
View Full Code Here


        final Annotation[][] parameterAnnotations = method.getParameterAnnotations();
        if(parameterAnnotations.length == 1) {
            final Annotation[] searchArgAnnotations = parameterAnnotations[0];
            for(Annotation annotation: searchArgAnnotations) {
                if(annotation instanceof MinLength) {
                    MinLength minLength = (MinLength) annotation;
                    return minLength.value();
                }
            }
        }
        return MinLengthUtil.MIN_LENGTH_DEFAULT;
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.applib.annotation.MinLength

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.