Oracle Fusion Middleware
Java API Reference for Oracle PDK Java
11g Release 1 (11.1.1)
E10691-01

oracle.portal.utils
Class NameValue

java.lang.Object
  extended by oracle.portal.utils.NameValue
Direct Known Subclasses:
NameValuePair

public class NameValue
extends java.lang.Object

Utility class for storing and retrieving a name-value pair. The name and the value are stored as String objects. Users of this utility class are expected to carry out any validation they require.


Constructor Summary
NameValue()
           
NameValue(java.lang.String name, java.lang.String value)
           
 
Method Summary
 java.lang.String getName()
          Gets the name of this NameValue object.
 java.lang.String getValue()
          Gets the vaule of this NameValue object.
 void setName(java.lang.String name)
          Sets the name of this NameValue object.
 void setValue(java.lang.String value)
          Sets the value of this NameValue object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameValue

public NameValue()

NameValue

public NameValue(java.lang.String name,
                 java.lang.String value)
Method Detail

setName

public void setName(java.lang.String name)
Sets the name of this NameValue object.

Parameters:
name - - a name.

getName

public java.lang.String getName()
Gets the name of this NameValue object.

Returns:
the name of this NameValue object.

setValue

public void setValue(java.lang.String value)
Sets the value of this NameValue object.

Parameters:
value - - a value.

getValue

public java.lang.String getValue()
Gets the vaule of this NameValue object.

Returns:
the value of this NameValue object.

Oracle Fusion Middleware
Java API Reference for Oracle PDK Java
11g Release 1 (11.1.1)
E10691-01

Copyright (c) 1999, 2009, Oracle and/or its affiliates. All rights reserved.