com.philemonworks.selfdiagnose.check
Class CheckValueMatches

java.lang.Object
  extended by com.philemonworks.selfdiagnose.DiagnosticTask
      extended by com.philemonworks.selfdiagnose.PatternMatchingTask
          extended by com.philemonworks.selfdiagnose.check.CheckValueMatches
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ReportMap, ReportProperties

public class CheckValueMatches
extends PatternMatchingTask

CheckValueMatches evaluates an OGNL expression and matches its String value against a pattern.

Author:
ronaldpulleman
See Also:
Serialized Form

Field Summary
protected static String PARAMETER_VALUE
           
 
Fields inherited from class com.philemonworks.selfdiagnose.PatternMatchingTask
PARAMETER_PATTERN, pattern
 
Fields inherited from class com.philemonworks.selfdiagnose.DiagnosticTask
comment, PARAMETER_COMMENT, PARAMETER_REPORT, PARAMETER_VARIABLE, reportResults, requestor, variableName
 
Constructor Summary
CheckValueMatches()
           
 
Method Summary
 String getAccessKind()
           
 String getAccessName()
           
 String getDescription()
           
 String getValue()
           
 void initializeFromAttributes(Attributes attributes)
          This method is sent from the SelfDiagnoseHandler when a configuration is being processed.
 void run(ExecutionContext ctx, DiagnosticTaskResult result)
          Run the task.
 void setAccessKind(String accessKind)
           
 void setAccessName(String accessName)
           
 void setValue(String newValue)
           
 
Methods inherited from class com.philemonworks.selfdiagnose.PatternMatchingTask
checkValueAgainstPattern, getPattern, setPattern
 
Methods inherited from class com.philemonworks.selfdiagnose.DiagnosticTask
createResult, 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
 

Field Detail

PARAMETER_VALUE

protected static final String PARAMETER_VALUE
See Also:
Constant Field Values
Constructor Detail

CheckValueMatches

public CheckValueMatches()
Method Detail

initializeFromAttributes

public void initializeFromAttributes(Attributes attributes)
Description copied from class: DiagnosticTask
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 PatternMatchingTask
Parameters:
attributes - org.xml.sax.Attributes

getDescription

public String getDescription()
Specified by:
getDescription in class DiagnosticTask
Returns:
String the description

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 - ExecutionContext
result - DiagnosticTaskResult
Throws:
DiagnoseException

getValue

public String getValue()

setValue

public void setValue(String newValue)

getAccessKind

public String getAccessKind()

setAccessKind

public void setAccessKind(String accessKind)

getAccessName

public String getAccessName()

setAccessName

public void setAccessName(String accessName)


Copyright © 2012. All Rights Reserved.