|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.umber.catalan.process.workers.BaseMetadataHolder org.umber.catalan.process.workers.BaseJob org.umber.catalan.process.workers.XmlJob
A BaseJob based on an XML description of embedded Workers.
Constructor Summary | |
XmlJob(Datum xml,
WorkerRegistry registry)
Creates a new instance of XmlJob. |
Method Summary | |
IWorkProperties |
getDefaultProperties()
Retrieves the default properties for this IWorker. |
IWorkMetadata |
getMetadata()
Retrieves descriptive metadata associated with this job implementation. |
protected IWorkProperties[] |
getWorkerRuntimeProperties()
Retrieves customized runtime properties for each IWorker returned in getWorkers() . |
IWorker[] |
getWorkers()
Retrieves all embedded Workers associated with this BaseJob, in the order they will run for this BaseJob. |
Methods inherited from class org.umber.catalan.process.workers.BaseJob |
process, setDefaultProperties |
Methods inherited from class org.umber.catalan.process.workers.BaseMetadataHolder |
setOptionalProperties, setRequiredProperties, validateProperties, validateType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.umber.catalan.process.workers.IMetadataHolder |
validateProperties, validateType |
Constructor Detail |
public XmlJob(Datum xml, WorkerRegistry registry)
xml
- XML BaseJob definitionregistry
- registry to instantiate IWorker objects fromMethod Detail |
public IWorkMetadata getMetadata()
getMetadata
in interface IMetadataHolder
getMetadata
in class BaseMetadataHolder
public IWorker[] getWorkers()
process()
method will
run on each IWorker, using the runtime properties passed into
BaseJob.process()
merged with the runtime properties for
each IWorker from getWorkerRuntimeProperties()
.
getWorkers
in class BaseJob
protected IWorkProperties[] getWorkerRuntimeProperties()
getWorkers()
. The arrays returned by these two methods
must be the same size and contain no nulls. The BaseJob will pass the
runtime properties into each IWorker.process()
method.
This implementation returns the attributes from
getWorkerRuntimeProperties
in class BaseJob
public IWorkProperties getDefaultProperties()
This implementation merges the XmlJob's XML attributes with
properties explicitly set with
BaseJob.setDefaultProperties()
. The XML properties take
precedence over BaseJob properties.
getDefaultProperties
in interface IWorker
getDefaultProperties
in class BaseJob
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |