Class ObjectDataProvider

  • All Implemented Interfaces:
    DataProvider

    public class ObjectDataProvider
    extends java.lang.Object
    implements DataProvider
    An object of this class acts as a DataProvider for rule templates. It may be created with a collection of maps or objects. The template's column names are used as keys or Bean-stype accessors to obtain the actual parameters for the substitution.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      java.lang.String[] next()  
      • Methods inherited from class java.lang.Object

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

      • ObjectDataProvider

        public ObjectDataProvider​(TemplateContainer tcont,
                                  java.util.Collection<?> objs)
        Constructor from a template container
        Parameters:
        tcont - a template container
        objs - a collection of maps or objects