Package com.floreysoft.jmte.template

Examples of com.floreysoft.jmte.template.Template.transform()


  }

  String transformInternal(String template, Locale locale, String sourceName, Map<String, Object> model,
      ModelAdaptor modelAdaptor, ProcessListener processListener) {
    Template templateImpl = getTemplate(template, sourceName);
    String output = templateImpl.transform(model, locale, modelAdaptor, processListener);
    return output;
  }

  /**
   * Replacement for {@link java.lang.String.format}. All arguments will be
View Full Code Here


    assertEquals(template1.getClass().getName(), template2.getClass().getName());
    // sill, both classes are not the same
    assertNotSame(template1.getClass(), template2.getClass());
    // but, both still work
    String transformed1 = template1.transform(DEFAULT_MODEL, DEFAULT_LOCALE);
    String transformed2 = template2.transform(DEFAULT_MODEL, DEFAULT_LOCALE);
    // and give the same result
    assertEquals(transformed1, transformed2);
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.