com.philemonworks.selfdiagnose.check
Class CheckResourceProperty
java.lang.Object
com.philemonworks.selfdiagnose.DiagnosticTask
com.philemonworks.selfdiagnose.PatternMatchingTask
com.philemonworks.selfdiagnose.check.CheckProperty
com.philemonworks.selfdiagnose.check.CheckResourceProperty
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- ReportMavenPOMProperties
public class CheckResourceProperty
- extends CheckProperty
CheckResourceProperty is a DiagnosticTask that verifies the availability of a property in a resource.
- Author:
- Ernest Micklei
- See Also:
- Serialized Form
Methods inherited from class com.philemonworks.selfdiagnose.DiagnosticTask |
createResult, getComment, getDefaultReportTemplate, getRequestor, getTaskName, getVariableName, hasComment, isReportResults, 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_NAME
protected static final String PARAMETER_NAME
- See Also:
- Constant Field Values
PARAMETER_URL
protected static final String PARAMETER_URL
- See Also:
- Constant Field Values
name
protected String name
url
protected String url
CheckResourceProperty
public CheckResourceProperty()
getDescription
public String getDescription()
- Specified by:
getDescription
in class DiagnosticTask
- Returns:
- String the description
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 CheckProperty
- 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 CheckProperty
- Parameters:
ctx
- ExecutionContext
- Throws:
DiagnoseException
run
public void run(ExecutionContext ctx,
DiagnosticTaskResult result)
throws DiagnoseException
- (non-Javadoc)
- Specified by:
run
in class DiagnosticTask
- Parameters:
ctx
- ExecutionContextresult
- DiagnosticTaskResult
- Throws:
DiagnoseException
- See Also:
DiagnosticTask.run(ExecutionContext)
getProperties
protected Properties getProperties(ExecutionContext ctx)
throws DiagnoseException
- Throws:
DiagnoseException
getName
public String getName()
setName
public void setName(String name)
getUrl
public String getUrl()
setUrl
public void setUrl(String url)
Copyright © 2012. All Rights Reserved.