Package org.apache.beehive.netui.compiler.model.validation

Examples of org.apache.beehive.netui.compiler.model.validation.ValidatorRule


        }
    }

    private static ValidatorRule getFieldRule( String entityName, String propertyName, AnnotationInstance ruleAnnotation )
    {
        ValidatorRule rule = VALIDATOR_RULE_FACTORY.getFieldRule( entityName, propertyName, ruleAnnotation );

        if ( rule != null )
        {
            //
            // message/message-key
            //
            rule.setMessage( CompilerUtils.getString( ruleAnnotation, MESSAGE_ATTR, true ) );
            rule.setMessageKey( CompilerUtils.getString( ruleAnnotation, MESSAGE_KEY_ATTR, true ) );
            rule.setBundle( CompilerUtils.getString( ruleAnnotation, BUNDLE_NAME_ATTR, true ) );
            if ( rule.getMessage() != null ) assert rule.getMessageKey() == null;   // TODO: checker should enforce

            //
            // args
            //
            addMessageArgs( rule, ruleAnnotation );
View Full Code Here

TOP

Related Classes of org.apache.beehive.netui.compiler.model.validation.ValidatorRule

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.