Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC)
11g Release 1 (11.1)

E17274-04


oracle.stellent.ridc.common.util
Class NameValuePair

java.lang.Object
  extended by oracle.stellent.ridc.common.util.NameValuePair

All Implemented Interfaces:
Comparable<NameValuePair>
Direct Known Subclasses:
RIDCHttpHeaderImpl

public class NameValuePair
extends Object
implements Comparable<NameValuePair>

Generic Name value pairing


Constructor Summary
NameValuePair(String name, String value)
          Create a name/value pair

 

Method Summary
 int compareTo(NameValuePair namevaluePair)
          Compare two name value pairs by the key.
 String getName()
           
 String getValue()
           
 void setName(String name)
           
 void setValue(String value)
           
 String toString()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

NameValuePair

public NameValuePair(String name,
                     String value)
Create a name/value pair
Parameters:
name -
value -

Method Detail

getName

public String getName()
Returns:
the name

setName

public void setName(String name)
Parameters:
name - the name to set

getValue

public String getValue()
Returns:
the value

setValue

public void setValue(String value)
Parameters:
value - the value to set

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(NameValuePair namevaluePair)
Compare two name value pairs by the key. It is a basic string comparison of the keys
Specified by:
compareTo in interface Comparable<NameValuePair>
Parameters:
namevaluePair -
Returns:

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC)
11g Release 1 (11.1)

E17274-04


Copyright © 2008, 2013, Oracle and/or its affiliates. All rights reserved.