com.adventnet.util.parser.line
Class ParsedResult
java.lang.Object
|
+--com.adventnet.util.parser.line.ParsedResult
- public class ParsedResult
- extends java.lang.Object
This class contains the Result after parsing the message. The Result could
be either a table or a scalar value (parameter name, value pair) or both.
If the parsed result is a table, the method getTableResult()
should be called. This method will return a Hashtable which contains
the column names of the table as keys. The values contain the column values.
If the result is a list of scalar values, the method getResult()
should be used. This returns a Properties object containing the
parameters and values as property names and values respectively. The API
user need not instantiate this class since it is used internally by the
Line Parser.
|
Method Summary |
java.util.Properties |
getResult()
Gets the Parameter name, value pairs in a Properties object. |
java.util.Hashtable |
getTableResult()
Returns the parameter table. |
void |
setResult(java.util.Properties prop)
Sets the Scalar values (parameter,value) pairs. |
void |
setTableResult(java.util.Hashtable table)
Sets the parameter table which contains the column values. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
setResult
public void setResult(java.util.Properties prop)
- Sets the Scalar values (parameter,value) pairs.
- Parameters:
prop - the Properties object containing the parameter name, value
pairs.
getResult
public java.util.Properties getResult()
- Gets the Parameter name, value pairs in a Properties object.
The keys in the property contain the parameter names. The values
contain the parameter values.
- Returns:
- the Properties object containin the name, value pairs.
setTableResult
public void setTableResult(java.util.Hashtable table)
- Sets the parameter table which contains the column values.
- Parameters:
table - the Hashtable with the keys containing the column names.
The values contain a ArrayList of column values for the corresponding
column.
getTableResult
public java.util.Hashtable getTableResult()
- Returns the parameter table.
- Returns:
- Hashtable with the keys containing the column names.
The values contain a ArrayList of column values for the corresponding
column.