|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.griphyn.cPlanner.classes.Data
org.griphyn.cPlanner.classes.NameValue
public class NameValue
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.
| Field Summary | |
|---|---|
private String |
name
stores the name of the pair. |
private String |
value
stores the corresponding value to the name in the pair. |
| Fields inherited from class org.griphyn.cPlanner.classes.Data |
|---|
mLogger, mLogMsg |
| Constructor Summary | |
|---|---|
NameValue()
the default constructor which initialises the class member variables. |
|
NameValue(String name,
String value)
Initialises the class member variables to the values passed in the arguments. |
|
| Method Summary | |
|---|---|
Object |
clone()
Returns a copy of this object |
int |
compareTo(Object o)
Implementation of the Comparable interface. |
String |
getKey()
Returns the key associated with this tuple. |
String |
getValue()
Returns the value associated with this tuple. |
String |
toString()
Writes out the contents of the class to a String in form suitable for displaying. |
| Methods inherited from class org.griphyn.cPlanner.classes.Data |
|---|
setToString, vectorToString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private String name
private String value
| Constructor Detail |
|---|
public NameValue()
public NameValue(String name,
String value)
name - corresponds to the name in the NameValue pair.value - corresponds to the value for the name in the NameValue pair.| Method Detail |
|---|
public String getKey()
public String getValue()
public Object clone()
clone in class Objectpublic String toString()
toString in class Datapublic int compareTo(Object o)
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.
compareTo in interface Comparableo - is the object to be compared
ClassCastException - if the specified object's type
prevents it from being compared to this Object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||