public class TddHashLocalDataBuilder extends CachingLocalDataBuilder
LocalDataBuilder.build(fmpp.Engine, fmpp.TemplateEnvironment)
is invoked first. Then the result is stored until the end of the processing
session, to be reused for all subsequent LocalDataBuilder.build(fmpp.Engine, fmpp.TemplateEnvironment)
invokations.
This local data builder is what localData setting uses, when the
last parameter to the case function is a hash, e.g.:
localData: [case(sub/, {bgColor:green, doc:xml(data/foo.xml)})].
EVENT_BEGIN_FILE_PROCESSING, EVENT_BEGIN_PROCESSING_SESSION, EVENT_CREATED_EMPTY_DIR, EVENT_END_FILE_PROCESSING, EVENT_END_PROCESSING_SESSION, EVENT_IGNORING_DIR, EVENT_SOURCE_NOT_MODIFIED, EVENT_WARNING
Constructor and Description |
---|
TddHashLocalDataBuilder(Fragment fragment) |
TddHashLocalDataBuilder(java.lang.String tddHash) |
Modifier and Type | Method and Description |
---|---|
java.util.Map |
build(Engine eng)
Override this method in your local data builder class.
|
java.lang.String |
toString() |
build, notifyProgressEvent
public TddHashLocalDataBuilder(java.lang.String tddHash)
public TddHashLocalDataBuilder(Fragment fragment)
public java.util.Map build(Engine eng) throws java.lang.Exception
CachingLocalDataBuilder
build
in class CachingLocalDataBuilder
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object