com.philemonworks.selfdiagnose
Class CollectionIteratorTask
java.lang.Object
com.philemonworks.selfdiagnose.DiagnosticTask
com.philemonworks.selfdiagnose.CollectionIteratorTask
- All Implemented Interfaces:
- Serializable
public class CollectionIteratorTask
- extends DiagnosticTask
- See Also:
- Serialized Form
Methods inherited from class com.philemonworks.selfdiagnose.DiagnosticTask |
getComment, getDefaultReportTemplate, getRequestor, getTaskName, getVariableName, hasComment, isReportResults, run, run, setComment, setReportResults, setRequestor, setUp, setVariableName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollectionIteratorTask
public CollectionIteratorTask()
initializeFromAttributes
public void initializeFromAttributes(Attributes attributes)
- This method is sent from the SelfDiagnoseHandler when a configuration is being processed. Use the passed
attributes to initialize the receiver.
If a variable parameter is passed then store it.
- Overrides:
initializeFromAttributes
in class DiagnosticTask
- Parameters:
attributes
- org.xml.sax.Attributes
getDescription
public String getDescription()
- Specified by:
getDescription
in class DiagnosticTask
- Returns:
- String the description
createResult
public DiagnosticTaskResult createResult()
- Description copied from class:
DiagnosticTask
- Return an object to store the results of running the receiver.
- Overrides:
createResult
in class DiagnosticTask
- Returns:
- DiagnosticTaskResult
run
public void run(ExecutionContext ctx,
DiagnosticTaskResult result)
throws DiagnoseException
- Description copied from class:
DiagnosticTask
- Run the task. If an error is detected then raise a DiagnoseException.
Otherwise use the result object to the report any messages when a run is completed.
- Specified by:
run
in class DiagnosticTask
- Parameters:
ctx
- ExecutionContextresult
- DiagnosticTaskResult
- Throws:
DiagnoseException
register
public void register(DiagnosticTask task)
getTasks
public List getTasks()
getExpression
public String getExpression()
setExpression
public void setExpression(String expression)
Copyright © 2012. All Rights Reserved.