org.enhydra.barracuda.core.util.data
Class Param

java.lang.Object
  |
  +--org.enhydra.barracuda.core.util.data.Param

public class Param
extends java.lang.Object

Define a Param object as having key and value properties (both of which are Strings)


Constructor Summary
Param()
          Create an empty Param
Param(java.lang.String ikey, java.lang.String ivalue)
          Create a Param for a given key/value
 
Method Summary
 boolean equals(java.lang.Object o)
          Check for equality (if both key & value match)
 java.lang.String getKey()
          Get the key
 java.lang.String getValue()
          Get the value
 void setKey(java.lang.String ikey)
          Set the key
 void setValue(java.lang.String ivalue)
          Set the value
 java.lang.String toString()
          Return a string representation of the param
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Param

public Param()
Create an empty Param


Param

public Param(java.lang.String ikey,
             java.lang.String ivalue)
Create a Param for a given key/value

Method Detail

setKey

public void setKey(java.lang.String ikey)
Set the key


getKey

public java.lang.String getKey()
Get the key

Returns:
the param key

setValue

public void setValue(java.lang.String ivalue)
Set the value


getValue

public java.lang.String getValue()
Get the value

Returns:
the param value

equals

public boolean equals(java.lang.Object o)
Check for equality (if both key & value match)

Overrides:
equals in class java.lang.Object
Parameters:
o - the object we are comparing against
Returns:
true if the objects are equal

toString

public java.lang.String toString()
Return a string representation of the param

Overrides:
toString in class java.lang.Object


Copyright © 2001 Enhydra.org