| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jplate.kvp.impl.defaults.DefaultKvp
public class DefaultKvp
Default implementation of a KvpIfc.
Modifications:
    $Date: 2008-12-02 12:32:45 -0500 (Tue, 02 Dec 2008) $
    $Revision: 479 $
    $Author: sfloess $
    $HeadURL: https://jplate.svn.sourceforge.net/svnroot/jplate/trunk/src/dev/java/org/jplate/kvp/impl/defaults/DefaultKvp.java $
    
| Field Summary | |
|---|---|
private  java.lang.String | 
_key
Holds the key.  | 
private  org.apache.commons.logging.Log | 
_log
Used for logging.  | 
private  java.lang.String | 
_value
Holds the value.  | 
| Constructor Summary | |
|---|---|
DefaultKvp()
Default constructor.  | 
|
DefaultKvp(DefaultKvp toCopy)
Copy constructor.  | 
|
DefaultKvp(KvpIfc toCopy)
Copy constructor.  | 
|
| Method Summary | |
|---|---|
 boolean | 
equals(java.lang.Object toCompare)
 | 
 java.lang.String | 
getKey()
Returns the key.  | 
 java.lang.String | 
getValue()
Returns the value.  | 
 int | 
hashCode()
 | 
 void | 
setKey(java.lang.String key)
Sets the key.  | 
 void | 
setValue(java.lang.String value)
Sets the value.  | 
 java.lang.String | 
toString()
 | 
 java.lang.String | 
toString(java.lang.String prepend)
Returns a string representation of self prepending prepend to
 each line. | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
private final transient org.apache.commons.logging.Log _log
private java.lang.String _key
private java.lang.String _value
| Constructor Detail | 
|---|
public DefaultKvp(DefaultKvp toCopy)
toCopy - The object to copy.public DefaultKvp(KvpIfc toCopy)
toCopy - The object to copy.public DefaultKvp()
| Method Detail | 
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object toCompare)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString(java.lang.String prepend)
prepend to
 each line.
toString in interface FormattableIfcprepend - The text to prepend to each line as defined in the return
        value.
prepend
         prepended to each line.public java.lang.String getKey()
getKey in interface KvpIfcpublic void setKey(java.lang.String key)
setKey in interface KvpIfckey - The new key.public java.lang.String getValue()
getValue in interface KvpIfcpublic void setValue(java.lang.String value)
setValue in interface KvpIfcvalue - The new value.
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||