Package org.drools.template.objects
Class ObjectDataProvider
java.lang.Object
org.drools.template.objects.ObjectDataProvider
- All Implemented Interfaces:
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.
-
Constructor Summary
ConstructorsConstructorDescriptionObjectDataProvider(TemplateContainer tcont, Collection<?> objs) Constructor from a template container -
Method Summary
-
Constructor Details
-
ObjectDataProvider
Constructor from a template container- Parameters:
tcont- a template containerobjs- a collection of maps or objects
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceDataProvider
-
next
- Specified by:
nextin interfaceDataProvider
-