Open SiteSearch 4.1.1
Final

ORG.oclc.jassi
Class DataPair

java.lang.Object
  |
  +--ORG.oclc.jassi.DataPair

public class DataPair
extends Object

The DataPair class defines a DataPair object as a parameter to a Verb taking the form name=value.

See Also:
DataPairs, JavaPage, RequestManager, UserStateObject, Verb

Constructor Summary
DataPair()
          Constructs a DataPair object with name = "" and value = "".
DataPair(String n)
          Constructs a DataPair object with name = n and value = "".
DataPair(String n, String v)
          Constructs a DataPair object with name = n and value = v.
 
Method Summary
 boolean equals(String v)
          Tests to see if the DataPair object value is equal to the input parameter String value.
 String get()
          Returns the value of the DataPair object.
 boolean isEmpty()
          Tests to see if the DataPair object value is empty.
 String name()
          Returns the name in the DataPair object.
 void setValue(String v)
          Sets the value of the existing DataPair object using the input parameter String value.
 String toString()
          Creates a String representation of the DataPair object.
 String toString(String separator)
          Creates a String representation of the DataPair object.
 String toString(String separator, boolean encode)
          Creates a String representation of the DataPair object using the input parameter String for the separator value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataPair

public DataPair()
Constructs a DataPair object with name = "" and value = "".

DataPair

public DataPair(String n)
Constructs a DataPair object with name = n and value = "".
Parameters:
n - the name for the DataPair object.

DataPair

public DataPair(String n,
                String v)
Constructs a DataPair object with name = n and value = v.
Parameters:
n - the name for the DataPair object.
v - the value for the DataPair object.
Method Detail

toString

public String toString()
Creates a String representation of the DataPair object.
Returns:
the String representation of the DataPair name and value.
Overrides:
toString in class Object

toString

public String toString(String separator)
Creates a String representation of the DataPair object.
Returns:
the String representation of the DataPair name and value.

toString

public String toString(String separator,
                       boolean encode)
Creates a String representation of the DataPair object using the input parameter String for the separator value.
Returns:
the String representation of the DataPair name and value.

setValue

public void setValue(String v)
Sets the value of the existing DataPair object using the input parameter String value.
Parameters:
v - the value for the DataPair object.

get

public String get()
Returns the value of the DataPair object.
Returns:
the value of the DataPair object.

name

public String name()
Returns the name in the DataPair object.
Returns:
the name in the DataPair object.

isEmpty

public boolean isEmpty()
Tests to see if the DataPair object value is empty.
Returns:
true if the value is empty or false otherwise.

equals

public boolean equals(String v)
Tests to see if the DataPair object value is equal to the input parameter String value.
Parameters:
v - the String value to test for equality.
Returns:
true if the value is equal or false otherwise.

Open SiteSearch 4.1.1
Final