org.apache.aries.blueprint.reflect
Class MapMetadataImpl

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

public class MapMetadataImpl
extends java.lang.Object
implements MutableMapMetadata

Implementation of MapMetadata

Version:
$Rev: 896324 $, $Date: 2010-01-06 06:05:04 +0000 (Wed, 06 Jan 2010) $

Constructor Summary
MapMetadataImpl()
           
MapMetadataImpl(MapMetadata source)
           
MapMetadataImpl(java.lang.String keyType, java.lang.String valueType, java.util.List<MapEntry> entries)
           
 
Method Summary
 void addEntry(MapEntry entry)
           
 MapEntry addEntry(NonNullMetadata key, Metadata value)
           
 java.util.List<MapEntry> getEntries()
          Return the entries for the map.
 java.lang.String getKeyType()
          Return the name of the type of the map keys.
 java.lang.String getValueType()
          Return the name of the type of the map values.
 void removeEntry(MapEntry entry)
           
 void setEntries(java.util.List<MapEntry> entries)
           
 void setKeyType(java.lang.String keyTypeName)
           
 void setValueType(java.lang.String valueTypeName)
           
 java.lang.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(java.lang.String keyType,
                       java.lang.String valueType,
                       java.util.List<MapEntry> entries)

MapMetadataImpl

public MapMetadataImpl(MapMetadata source)
Method Detail

getKeyType

public java.lang.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(java.lang.String keyTypeName)
Specified by:
setKeyType in interface MutableMapMetadata

getValueType

public java.lang.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(java.lang.String valueTypeName)
Specified by:
setValueType in interface MutableMapMetadata

getEntries

public java.util.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(java.util.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object


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