Package org.exolab.castor.mapping
Class MapItem
- java.lang.Object
-
- org.exolab.castor.mapping.MapItem
-
public class MapItem extends java.lang.Object
Represents a Mapped Object. This Class allows for more control over the key used in Maps and Hashtables.- Version:
- $Revision: 5951 $ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $
- Author:
- Keith Visco
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getKey()
Returns the key Object for this MapItem, or null if no key has been specified.java.lang.Object
getValue()
Returns the value Object for this MapItem, or null if no value has yet been specified.void
setKey(java.lang.Object key)
Sets the key for this MapItem.void
setValue(java.lang.Object value)
Sets the value for this MapItem.
-
-
-
Method Detail
-
getKey
public java.lang.Object getKey()
Returns the key Object for this MapItem, or null if no key has been specified.- Returns:
- the key Object for this MapItem.
-
getValue
public java.lang.Object getValue()
Returns the value Object for this MapItem, or null if no value has yet been specified.- Returns:
- the value Object for this MapItem.
-
setKey
public void setKey(java.lang.Object key)
Sets the key for this MapItem.- Parameters:
key
- the key Object for this MapItem.
-
setValue
public void setValue(java.lang.Object value)
Sets the value for this MapItem.- Parameters:
value
- the value Object for this MapItem.
-
-