org.aselect.server.processor
Class NMVPair

java.lang.Object
  extended by org.aselect.server.processor.NMVPair

public class NMVPair
extends java.lang.Object

NameMultiValue pair

Description:
NameValue pair. Contains a name and value.

Concurrency issues:
None


Constructor Summary
NMVPair(java.lang.String name)
          Create a new NMVPair

Concurrency issues:
-

Preconditions:
-

Postconditions:
-
NMVPair(java.lang.String name, java.lang.String value)
          Create a new NMVPair
Description:
Create a new NMVPair.
NMVPair(java.lang.String name, java.util.Vector value)
          Create a new NMVPair with a default value.
 
Method Summary
 void addValue(java.lang.String value)
          Add a single value to this pair.
 void addValues(java.util.Vector v)
          Add one or more values to this name value pair.
 java.lang.String encodeMV()
          Encodes the name multivalue pair into a url-encoded pair.
 java.lang.String getName()
          Retrieve the name of this NVPair.
 java.util.List getValues()
          Retrieve the value of this NVPair.
 java.lang.String toString()
           
 void updateMixedHashtable(java.util.Hashtable ht)
          Add to the mixed hashtable the value(s) of the current object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NMVPair

public NMVPair(java.lang.String name)
Create a new NMVPair

Concurrency issues:
-

Preconditions:
-

Postconditions:
-

Parameters:
name - The name.

NMVPair

public NMVPair(java.lang.String name,
               java.lang.String value)
Create a new NMVPair
Description:
Create a new NMVPair. With no value.
Concurrency issues:
-

Preconditions:
-

Postconditions:
-

Parameters:
name - name as String
value - value as String

NMVPair

public NMVPair(java.lang.String name,
               java.util.Vector value)
Create a new NMVPair with a default value.
Description: Create a new NMVPair with a default value.

Concurrency issues:
-

Preconditions:
-

Postconditions:
-

Parameters:
name - The name of the pair
value - The value of the pair.
Method Detail

updateMixedHashtable

public void updateMixedHashtable(java.util.Hashtable ht)
Add to the mixed hashtable the value(s) of the current object.

Concurrency issues:
-

Preconditions:
-

Postconditions:
-

Parameters:
ht - The hashtable where to add the variables.

addValue

public void addValue(java.lang.String value)
Add a single value to this pair.

Description:
Add a single value to this pair.

Concurrency issues:
-

Preconditions:
-

Postconditions:
-

Parameters:
value -

addValues

public void addValues(java.util.Vector v)
Add one or more values to this name value pair.
Concurrency issues:
-

Preconditions:
-

Postconditions:
-

Parameters:
v - A vector of strings to add.

encodeMV

public java.lang.String encodeMV()
Encodes the name multivalue pair into a url-encoded pair.

Concurrency issues:
-

Preconditions:
-

Postconditions:
-

Returns:
The url-encoded string.

getName

public java.lang.String getName()
Retrieve the name of this NVPair.

Concurrency issues:
-

Preconditions:
-

Postconditions:
-

Returns:
The name of this NVPair.

getValues

public java.util.List getValues()
Retrieve the value of this NVPair.

Concurrency issues:
-

Preconditions:
-

Postconditions:
-

Returns:
The value of this NVPair.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2008 SURFnet BV. All Rights Reserved.