Package com.floreysoft.jmte.message

Examples of com.floreysoft.jmte.message.SilentErrorHandler


  /**
   * Checks if all given variables are there and if so, that they evaluate to true inside an if.
   */
  public boolean variablesAvailable(Map<String, Object> model, String... vars) {
    final TemplateContext context = new TemplateContext(null, null, null, new ScopedMap(model), modelAdaptor, this,
        new SilentErrorHandler(), null);
    for (String var : vars) {
      final IfToken token = new IfToken(var, false);
      if (!(Boolean) token.evaluate(context)) {
        return false;
      }
View Full Code Here

TOP

Related Classes of com.floreysoft.jmte.message.SilentErrorHandler

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.