org.apache.geronimo.blueprint.reflect
Class MapMetadataImpl

java.lang.Object
  extended by org.apache.geronimo.blueprint.reflect.MapMetadataImpl
All Implemented Interfaces:
MutableMapMetadata, MapMetadata, Metadata, NonNullMetadata

public class MapMetadataImpl
extends Object
implements MutableMapMetadata

Implementation of MapMetadata

Version:
$Rev: 760378 $, $Date: 2009-03-31 11:31:38 +0200 (Tue, 31 Mar 2009) $
Author:
Apache Geronimo Project

Constructor Summary
MapMetadataImpl()
           
MapMetadataImpl(MapMetadata source)
           
MapMetadataImpl(String keyType, String valueType, List<MapEntry> entries)
           
 
Method Summary
 void addEntry(MapEntry entry)
           
 MapEntry addEntry(NonNullMetadata key, Metadata value)
           
 List<MapEntry> getEntries()
          Return the entries for the map.
 String getKeyType()
          Return the name of the type of the map keys.
 String getValueType()
          Return the name of the type of the map values.
 void removeEntry(MapEntry entry)
           
 void setEntries(List<MapEntry> entries)
           
 void setKeyType(String keyTypeName)
           
 void setValueType(String valueTypeName)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapMetadataImpl

public MapMetadataImpl()

MapMetadataImpl

public MapMetadataImpl(String keyType,
                       String valueType,
                       List<MapEntry> entries)

MapMetadataImpl

public MapMetadataImpl(MapMetadata source)
Method Detail

getKeyType

public String getKeyType()
Description copied from interface: MapMetadata
Return the name of the type of the map keys. This is specified by the key-type attribute of the map.

Specified by:
getKeyType in interface MapMetadata
Returns:
The name of the type of the map keys, or null if none is specified.

setKeyType

public void setKeyType(String keyTypeName)
Specified by:
setKeyType in interface MutableMapMetadata

getValueType

public String getValueType()
Description copied from interface: MapMetadata
Return the name of the type of the map values. This is specified by the value-type attribute of the map.

Specified by:
getValueType in interface MapMetadata
Returns:
The name of the type of the map values, or null if none is specified.

setValueType

public void setValueType(String valueTypeName)
Specified by:
setValueType in interface MutableMapMetadata

getEntries

public List<MapEntry> getEntries()
Description copied from interface: MapMetadata
Return the entries for the map.

Specified by:
getEntries in interface MapMetadata
Returns:
An immutable List of MapEntry objects for each entry in the map. The List is empty if no entries are specified for the map.

setEntries

public void setEntries(List<MapEntry> entries)

addEntry

public void addEntry(MapEntry entry)
Specified by:
addEntry in interface MutableMapMetadata

addEntry

public MapEntry addEntry(NonNullMetadata key,
                         Metadata value)
Specified by:
addEntry in interface MutableMapMetadata

removeEntry

public void removeEntry(MapEntry entry)
Specified by:
removeEntry in interface MutableMapMetadata

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.