| java.lang.Object org.exolab.castor.mapping.MapItem
MapItem | public class MapItem (Code) | | Represents a Mapped Object. This Class allows for more
control over the key used in Maps and Hashtables.
author: Keith Visco version: $Revision: 5951 $ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $ |
Constructor Summary | |
public | MapItem() Creates a new empty MapItem. | public | MapItem(Object key, Object value) Creates a new MapItem with the given key and value. |
Method Summary | |
public Object | getKey() Returns the key Object for this MapItem, or null
if no key has been specified. | public Object | getValue() Returns the value Object for this MapItem, or null
if no value has yet been specified. | public void | setKey(Object key) Sets the key for this MapItem. | public void | setValue(Object value) Sets the value for this MapItem. |
MapItem | public MapItem()(Code) | | Creates a new empty MapItem.
|
MapItem | public MapItem(Object key, Object value)(Code) | | Creates a new MapItem with the given key and value.
Parameters: key - the key Object for this MapItem. Parameters: value - the value for this MapItem. |
getKey | public Object getKey()(Code) | | Returns the key Object for this MapItem, or null
if no key has been specified.
the key Object for this MapItem. |
getValue | public Object getValue()(Code) | | Returns the value Object for this MapItem, or null
if no value has yet been specified.
the value Object for this MapItem. |
setKey | public void setKey(Object key)(Code) | | Sets the key for this MapItem.
Parameters: key - the key Object for this MapItem. |
setValue | public void setValue(Object value)(Code) | | Sets the value for this MapItem.
Parameters: value - the value Object for this MapItem. |
|
|