| java.lang.Object org.griphyn.cPlanner.classes.Data org.griphyn.cPlanner.classes.NameValue
NameValue | public class NameValue extends Data implements Comparable(Code) | | The object of this class holds the name value pair.
At present to be used for environment variables. Will be used more
after integration of Spitfire.
author: Karan Vahi author: Gaurang Mehta version: $Revision: 50 $ |
Constructor Summary | |
public | NameValue() the default constructor which initialises the class member variables. | public | NameValue(String name, String value) Initialises the class member variables to the values passed in the
arguments. |
NameValue | public NameValue()(Code) | | the default constructor which initialises the class member variables.
|
NameValue | public NameValue(String name, String value)(Code) | | Initialises the class member variables to the values passed in the
arguments.
Parameters: name - corresponds to the name in the NameValue pair. Parameters: value - corresponds to the value for the name in the NameValue pair. |
clone | public Object clone()(Code) | | Returns a copy of this object
object containing a cloned copy of the tuple. |
compareTo | public int compareTo(Object o)(Code) | | Implementation of the
java.lang.Comparable interface.
Compares this object with the specified object for order. Returns a
negative integer, zero, or a positive integer as this object is
less than, equal to, or greater than the specified object. The
NameValue are compared by their keys.
Parameters: o - is the object to be compared a negative number, zero, or a positive number, if theobject compared against is less than, equals or greater thanthis object. exception: ClassCastException - if the specified object's typeprevents it from being compared to this Object. |
getKey | public String getKey()(Code) | | Returns the key associated with this tuple.
the key associated with the tuple. |
getValue | public String getValue()(Code) | | Returns the value associated with this tuple.
value associated with the tuple. |
toString | public String toString()(Code) | | Writes out the contents of the class to a String
in form suitable for displaying.
the textual description. |
|
|