org.enhydra.barracuda.plankton.data
Class Param

java.lang.Object
  extended byorg.enhydra.barracuda.plankton.data.Param

public class Param
extends Object

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


Constructor Summary
Param()
          Create an empty Param
Param(String ikey, String ivalue)
          Create a Param for a given key/value
 
Method Summary
 boolean equals(Object o)
          Check for equality (if both key & value match)
 String getKey()
          Get the key
 String getValue()
          Get the value
 void setKey(String ikey)
          Set the key
 void setValue(String ivalue)
          Set the value
 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(String ikey,
             String ivalue)
Create a Param for a given key/value

Parameters:
ikey - the param key
ivalue - the param value
Method Detail

setKey

public void setKey(String ikey)
Set the key

Parameters:
ikey - the param key

getKey

public String getKey()
Get the key

Returns:
the param key

setValue

public void setValue(String ivalue)
Set the value

Parameters:
ivalue - the param value

getValue

public String getValue()
Get the value

Returns:
the param value

equals

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

Parameters:
o - the object we are comparing against
Returns:
true if the objects are equal

toString

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



Copyright © 2003 BarracudaMVC.org All Rights Reserved.