com.philemonworks.selfdiagnose
Class PatternMatchingTask
java.lang.Object
com.philemonworks.selfdiagnose.DiagnosticTask
com.philemonworks.selfdiagnose.PatternMatchingTask
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- CheckProperty, CheckURLReachable, CheckValueMatches
public abstract class PatternMatchingTask
- extends DiagnosticTask
PatternMatchingTask is an abstract class that provides the functionality
of matching a String value against a pattern (regular expression).
- Author:
- ernestmicklei
- See Also:
- Serialized Form
| Methods inherited from class com.philemonworks.selfdiagnose.DiagnosticTask |
createResult, getComment, getDefaultReportTemplate, getDescription, getRequestor, getTaskName, getVariableName, hasComment, run, run, run, setComment, setRequestor, setUp, setVariableName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PARAMETER_PATTERN
protected static final java.lang.String PARAMETER_PATTERN
- See Also:
- Constant Field Values
pattern
protected java.lang.String pattern
PatternMatchingTask
public PatternMatchingTask()
initializeFromAttributes
public void initializeFromAttributes(org.xml.sax.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 DiagnosticTask
- Parameters:
attributes - org.xml.sax.Attributes
getPattern
public java.lang.String getPattern()
- Returns:
setPattern
public void setPattern(java.lang.String string)
- Parameters:
string -
checkValueAgainstPattern
protected void checkValueAgainstPattern(DiagnosticTaskResult result,
java.lang.String receiver,
java.lang.String accessKind,
java.lang.String propertyName,
java.lang.Object value)
Copyright © 2008. All Rights Reserved.