com.philemonworks.selfdiagnose.check
Class CheckProperty

java.lang.Object
  extended by com.philemonworks.selfdiagnose.DiagnosticTask
      extended by com.philemonworks.selfdiagnose.PatternMatchingTask
          extended by com.philemonworks.selfdiagnose.check.CheckProperty
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CheckAtgComponentProperty, CheckBeanProperty, CheckHttpRequestHeader, CheckMBeanProperty, CheckResourceProperty, CheckSpringBeanProperty, CheckSystemProperty

public abstract class CheckProperty
extends PatternMatchingTask

CheckProperty is an abstract class for tasks that verifies properties against a regular expression pattern.

Author:
Ernest Micklei
See Also:
Serialized Form

Field Summary
protected static String PARAMETER_PROPERTY
           
protected  String property
           
 
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
CheckProperty()
           
 
Method Summary
protected  void checkPropertyAccess()
           
 String getProperty()
           
 void initializeFromAttributes(Attributes attributes)
          This method is sent from the SelfDiagnoseHandler when a configuration is being processed.
 boolean isThisRequested()
          Answer whether the object itself is checked rather than one of its properties (field,operation).
 void setProperty(String string)
           
 void setUp(ExecutionContext ctx)
          Override this method to verify that task parameters are initialized/set correctly.
 
Methods inherited from class com.philemonworks.selfdiagnose.PatternMatchingTask
checkValueAgainstPattern, getPattern, setPattern
 
Methods inherited from class com.philemonworks.selfdiagnose.DiagnosticTask
createResult, getComment, getDefaultReportTemplate, getDescription, getRequestor, getTaskName, getVariableName, hasComment, isReportResults, run, run, run, setComment, setReportResults, setRequestor, setVariableName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAMETER_PROPERTY

protected static final String PARAMETER_PROPERTY
See Also:
Constant Field Values

property

protected String property
Constructor Detail

CheckProperty

public CheckProperty()
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

setUp

public void setUp(ExecutionContext ctx)
           throws DiagnoseException
Description copied from class: DiagnosticTask
Override this method to verify that task parameters are initialized/set correctly.

Overrides:
setUp in class DiagnosticTask
Parameters:
ctx - ExecutionContext
Throws:
DiagnoseException

checkPropertyAccess

protected void checkPropertyAccess()
                            throws DiagnoseException
Throws:
DiagnoseException

getProperty

public String getProperty()
Returns:

setProperty

public void setProperty(String string)
Parameters:
string -

isThisRequested

public boolean isThisRequested()
Answer whether the object itself is checked rather than one of its properties (field,operation).



Copyright © 2012. All Rights Reserved.