Class ObjectDataCompiler


  • public class ObjectDataCompiler
    extends DataProviderCompiler
    This class provides additional methods for invoking the template compiler, taking the actual parameters from maps or objects.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String compile​(java.util.Collection<?> objs, java.io.InputStream templateStream)
      Compile templates, substituting from a collection of maps or objects into the given template.
      java.lang.String compile​(java.util.Collection<?> objs, java.lang.String template)
      Compile templates, substituting from a collection of maps or objects into the given template.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ObjectDataCompiler

        public ObjectDataCompiler()
    • Method Detail

      • compile

        public java.lang.String compile​(java.util.Collection<?> objs,
                                        java.lang.String template)
        Compile templates, substituting from a collection of maps or objects into the given template.
        Parameters:
        objs - the collection of maps or objects
        template - the template resource pathname
        Returns:
        the expanded rules as a string
      • compile

        public java.lang.String compile​(java.util.Collection<?> objs,
                                        java.io.InputStream templateStream)
        Compile templates, substituting from a collection of maps or objects into the given template.
        Parameters:
        objs - objs the collection of maps or objects
        templateStream - the template as a stream
        Returns:
        the expanded rules as a string