HPSearch

cgl.hpsearch.common
Class TableOfValues

java.lang.Object
  extended bycgl.hpsearch.common.TableOfValues

public class TableOfValues
extends Object

Allows us to store Name-Type-Value tuples.
Created on Nov 2, 2004

Author:
Harshawardhan Gadgil

Field Summary
static String JMSCorrID
           
static String JMSMsgID
           
 
Constructor Summary
TableOfValues()
           
 
Method Summary
 Object get(String prop)
          Retrieve a property
static TableOfValues getFromXML(String xml)
           
 String getJMSCorrelationID()
           
 String getJMSMessageID()
           
 void populate(String xml)
          Populates the table by unmarshalling the XML.
 void set(String prop, Object value)
          Add a property-value pair
 void setJMSCorrelationID(String value)
           
 void setJMSMessageID(String value)
           
 String toXML()
          Marshals the table to XML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JMSCorrID

public static final String JMSCorrID
See Also:
Constant Field Values

JMSMsgID

public static final String JMSMsgID
See Also:
Constant Field Values
Constructor Detail

TableOfValues

public TableOfValues()
Method Detail

getFromXML

public static TableOfValues getFromXML(String xml)

populate

public void populate(String xml)
Populates the table by unmarshalling the XML. The XML can be generated by XMLizing a TableOfValues object

Parameters:
xml - - The data which should be populated in the table.
See Also:
toXML()

toXML

public String toXML()
Marshals the table to XML

Returns:
String containing the XML

set

public void set(String prop,
                Object value)
Add a property-value pair

Parameters:
prop - - The name of the property to be added
value - - The value, an object

get

public Object get(String prop)
Retrieve a property

Parameters:
prop - - The name of the property to be retrieved
Returns:
The value (object) associated w/ the name, null if nothing is associated

setJMSCorrelationID

public void setJMSCorrelationID(String value)

getJMSCorrelationID

public String getJMSCorrelationID()

setJMSMessageID

public void setJMSMessageID(String value)

getJMSMessageID

public String getJMSMessageID()

HPSearch

For comments and suggestions please send e-mail to Harshawardhan Gadgil
Last updated: June 9 2006