Public Member Functions

org.exolab.castor.mapping.MapItem Class Reference

List of all members.

Public Member Functions

 MapItem ()
 MapItem (Object key, Object value)
Object getKey ()
Object getValue ()
void setKey (Object key)
void setValue (Object value)

Detailed Description

Represents a Mapped Object. This Class allows for more control over the key used in Maps and Hashtables.

Author:
Keith Visco
Version:
Revision:
1.1.1.1
Date:
2003/03/03 07:08:27

Constructor & Destructor Documentation

org.exolab.castor.mapping.MapItem.MapItem (  ) 

Creates a new empty MapItem.

org.exolab.castor.mapping.MapItem.MapItem ( Object  key,
Object  value 
)

Creates a new MapItem with the given key and value.

Parameters:
key the key Object for this MapItem.
value the value for this MapItem.

Member Function Documentation

Object org.exolab.castor.mapping.MapItem.getKey (  ) 

Returns the key Object for this MapItem, or null if no key has been specified.

Returns:
the key Object for this MapItem.
Object org.exolab.castor.mapping.MapItem.getValue (  ) 

Returns the value Object for this MapItem, or null if no value has yet been specified.

Returns:
the value Object for this MapItem.

Referenced by org.exolab.castor.xml.UnmarshalHandler.endElement().

void org.exolab.castor.mapping.MapItem.setKey ( Object  key  ) 

Sets the key for this MapItem.

Parameters:
key the key Object for this MapItem.
void org.exolab.castor.mapping.MapItem.setValue ( Object  value  ) 

Sets the value for this MapItem.

Parameters:
value the value Object for this MapItem.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties