Package org.apache.velocity.runtime.exception

Examples of org.apache.velocity.runtime.exception.ReferenceException


        Object result = getVariableValue(context, rootString);

        if (result == null)
        {
            log.error(new ReferenceException("reference set : template = "
                      + context.getCurrentTemplateName(), this));
            return false;
        }

        /*
         * How many child nodes do we have?
         */

        for (int i = 0; i < numChildren - 1; i++)
        {
            result = jjtGetChild(i).execute(result, context);

            if (result == null)
            {
                log.error(new ReferenceException("reference set : template = "
                          + context.getCurrentTemplateName(), this));
                return false;
            }
        }

View Full Code Here


        Object result = getVariableValue(context, rootString);

        if (result == null)
        {
            log.error(new ReferenceException("reference set : template = "
                      + context.getCurrentTemplateName(), this));
            return false;
        }

        /*
         * How many child nodes do we have?
         */

        for (int i = 0; i < numChildren - 1; i++)
        {
            result = jjtGetChild(i).execute(result, context);

            if (result == null)
            {
                log.error(new ReferenceException("reference set : template = "
                          + context.getCurrentTemplateName(), this));
                return false;
            }
        }

View Full Code Here

         
            if (referenceType != QUIET_REFERENCE
                && rsvc.getBoolean(
                                      RuntimeConstants.RUNTIME_LOG_REFERENCE_LOG_INVALID, true) )
            {
               rsvc.warn(new ReferenceException("reference : template = "
                                                    + context.getCurrentTemplateName(), this));
            }

            return true;
        }
View Full Code Here

        Object result = getVariableValue(context, rootString);
       
        if (result == null)
        {
            rsvc.error(new ReferenceException("reference set : template = " + context.getCurrentTemplateName(), this));
            return false;
        }                         
       
        /*
         * How many child nodes do we have?
         */

        for (int i = 0; i < numChildren - 1; i++)
        {
            result = jjtGetChild(i).execute(result, context);
           
            if (result == null)
            {
                rsvc.error(new ReferenceException("reference set : template = " + context.getCurrentTemplateName(), this));
                return false;
            }                         
        }           

        /*
 
View Full Code Here

           
            if (referenceType != QUIET_REFERENCE
                && Runtime.getBoolean(
                                      RuntimeConstants.RUNTIME_LOG_REFERENCE_LOG_INVALID, true) )
            {
                Runtime.warn(new ReferenceException("reference : template = "
                                                    + context.getCurrentTemplateName(), this));
            }

            return true;
        }
View Full Code Here

        Object result = getVariableValue(context, rootString);
       
        if (result == null)
        {
            Runtime.error(new ReferenceException("reference set : template = " + context.getCurrentTemplateName(), this));
            return false;
        }                         
       
        /*
         * How many child nodes do we have?
         */

        for (int i = 0; i < numChildren - 1; i++)
        {
            result = jjtGetChild(i).execute(result, context);
           
            if (result == null)
            {
                Runtime.error(new ReferenceException("reference set : template = " + context.getCurrentTemplateName(), this));
                return false;
            }                         
        }           

        /*
 
View Full Code Here

         
            if (referenceType != QUIET_REFERENCE
                && rsvc.getBoolean(
                                      RuntimeConstants.RUNTIME_LOG_REFERENCE_LOG_INVALID, true) )
            {
               rsvc.warn(new ReferenceException("reference : template = "
                                                    + context.getCurrentTemplateName(), this));
            }

            return true;
        }
View Full Code Here

        Object result = getVariableValue(context, rootString);
       
        if (result == null)
        {
            rsvc.error(new ReferenceException("reference set : template = " + context.getCurrentTemplateName(), this));
            return false;
        }                         
       
        /*
         * How many child nodes do we have?
         */

        for (int i = 0; i < numChildren - 1; i++)
        {
            result = jjtGetChild(i).execute(result, context);
           
            if (result == null)
            {
                rsvc.error(new ReferenceException("reference set : template = " + context.getCurrentTemplateName(), this));
                return false;
            }                         
        }           

        /*
 
View Full Code Here

             */

            writer.write(NodeUtils.specialText(getFirstToken()) + prefix + prefix + nullString);
           
            if (referenceType != QUIET_REFERENCE && Runtime.getBoolean( RuntimeConstants.RUNTIME_LOG_REFERENCE_LOG_INVALID, true) )
                Runtime.warn(new ReferenceException("reference : template = " + context.getCurrentTemplateName(), this));
        }                   
        else
        {
            writer.write(NodeUtils.specialText(getFirstToken()) + prefix + value.toString());
        }                   
View Full Code Here

        Object result = getVariableValue(context, rootString);
       
        if (result == null)
        {
            Runtime.error(new ReferenceException("reference set : template = " + context.getCurrentTemplateName(), this));
            return false;
        }                         
       
        /*
         * How many child nodes do we have?
         */

        int children = jjtGetNumChildren();

        for (int i = 0; i < children - 1; i++)
        {
            result = jjtGetChild(i).execute(result, context);
           
            if (result == null)
            {
                Runtime.error(new ReferenceException("reference set : template = " + context.getCurrentTemplateName(), this));
                return false;
            }                         
        }           

        /*
 
View Full Code Here

TOP

Related Classes of org.apache.velocity.runtime.exception.ReferenceException

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.