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.
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:08:27 $MapItem() - Creates a new empty MapItem.
|
MapItem(Object key, Object value) - Creates a new MapItem with the given key and value.
|
Object | getKey() - Returns the key Object for this MapItem, or null
if no key has been specified.
|
Object | getValue() - Returns the value Object for this MapItem, or null
if no value has yet been specified.
|
void | setKey(Object key) - Sets the key for this MapItem.
|
void | setValue(Object value) - Sets the value for this MapItem.
|
MapItem
public MapItem()
Creates a new empty MapItem.
MapItem
public MapItem(Object key,
Object value)
Creates a new MapItem with the given key and value.
key
- the key Object for this MapItem.value
- the value for this MapItem.
getKey
public Object getKey()
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()
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)
Sets the key for this MapItem.
key
- the key Object for this MapItem.
setValue
public void setValue(Object value)
Sets the value for this MapItem.
value
- the value Object for this MapItem.
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com