|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.writersforge.catalan.process.workers.dispatch.MatchRunner
Single match constraint for the dispatcher.
| Constructor Summary | |
MatchRunner(java.lang.Class matchClass,
IWorker[] workers,
boolean isExclusive)
Creates a new instance of MatchRunner that processes all nodes that implement a given class or interface. |
|
MatchRunner(IWorker[] workers)
Creates a new instance of MatchRunner that matches all nodes. |
|
MatchRunner(java.lang.String matchPattern,
IWorker[] workers,
boolean isExclusive)
Creates a new instance of MatchRunner that compares text to a regular expression. |
|
| Method Summary | |
boolean |
isExclusive()
Returns true if this MatchRunner is an exclusive processor. |
boolean |
isMatch(java.lang.Object node)
Determines if the given node should be processed by this MatchRunner. |
java.lang.Object[] |
processNode(java.lang.Object node,
IWorkProperties runtimeProps,
IWorkspace workspace)
Runs the data node through all workers associated with this MatchRunner. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MatchRunner(IWorker[] workers)
workers - workers to send the input node through on matches
public MatchRunner(java.lang.String matchPattern,
IWorker[] workers,
boolean isExclusive)
matchPattern - regular expression to match nodes againstworkers - workers to send the input node through on matchesisExclusive - true to exclude matched nodes from other Matchers
public MatchRunner(java.lang.Class matchClass,
IWorker[] workers,
boolean isExclusive)
matchClass - class or interface of nodes to matchworkers - workers to send the input node through on matchesisExclusive - true to exclude matched nodes from other Matchers| Method Detail |
public boolean isExclusive()
public boolean isMatch(java.lang.Object node)
node - input data node
public java.lang.Object[] processNode(java.lang.Object node,
IWorkProperties runtimeProps,
IWorkspace workspace)
throws ProcessException
node - input data noderuntimeProps - extra runtime parametersworkspace - processing environment
ProcessException - if an error occurs during worker processing
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||