com.ibm.dtfj.analyzer.util
Class AnalyzeResponseHelper

java.lang.Object
  extended by com.ibm.dtfj.analyzer.util.AnalyzeResponseHelper

public class AnalyzeResponseHelper
extends java.lang.Object

Utility class to help parse the analysis results from IAnalyze.doAnalysis() and use them in other analyzers (without necessarily using the built-in rules).


Constructor Summary
AnalyzeResponseHelper(java.lang.String analyzerName, java.lang.String[] results)
           
 
Method Summary
 int getIntProperty(java.lang.String key)
          Lookup a given property within the results set, and return its value as an integer.
 java.lang.String getStringProperty(java.lang.String key)
          Lookup a given property within the results set, and return its value as a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnalyzeResponseHelper

public AnalyzeResponseHelper(java.lang.String analyzerName,
                             java.lang.String[] results)
Parameters:
analyzerName - the name of the analyzer whose results we are helping to parse
results - the results returned from a call to analyzer.doAnalysis()
Method Detail

getStringProperty

public java.lang.String getStringProperty(java.lang.String key)
Lookup a given property within the results set, and return its value as a string.

Parameters:
key - the name of the property to look-up
Returns:
the property value as a string, or null if not found

getIntProperty

public int getIntProperty(java.lang.String key)
Lookup a given property within the results set, and return its value as an integer.

Parameters:
key - the name of the property to look-up
Returns:
the property value as an integer, or -1 if not found


© Copyright IBM Corp. 2007, 2008 All Rights Reserved. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.