com.philemonworks.selfdiagnose.check
Class CheckProperty
java.lang.Object
com.philemonworks.selfdiagnose.DiagnosticTask
com.philemonworks.selfdiagnose.PatternMatchingTask
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
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 |
PARAMETER_PROPERTY
protected static final String PARAMETER_PROPERTY
- See Also:
- Constant Field Values
property
protected String property
CheckProperty
public CheckProperty()
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.