org.apache.aries.blueprint.reflect
Class CollectionMetadataImpl

java.lang.Object
  extended by org.apache.aries.blueprint.reflect.CollectionMetadataImpl
All Implemented Interfaces:
MutableCollectionMetadata, CollectionMetadata, Metadata, NonNullMetadata

public class CollectionMetadataImpl
extends java.lang.Object
implements MutableCollectionMetadata

Implementation of CollectionMetadata

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

Constructor Summary
CollectionMetadataImpl()
           
CollectionMetadataImpl(java.lang.Class collectionClass, java.lang.String valueType, java.util.List<Metadata> values)
           
CollectionMetadataImpl(CollectionMetadata source)
           
 
Method Summary
 void addValue(Metadata value)
           
 java.lang.Class getCollectionClass()
          Return the type of the collection.
 java.util.List<Metadata> getValues()
          Return Metadata for the values of the collection.
 java.lang.String getValueType()
          Return the type specified for the values of the collection.
 void removeValue(Metadata value)
           
 void setCollectionClass(java.lang.Class collectionClass)
           
 void setValues(java.util.List<Metadata> values)
           
 void setValueType(java.lang.String valueType)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CollectionMetadataImpl

public CollectionMetadataImpl()

CollectionMetadataImpl

public CollectionMetadataImpl(java.lang.Class collectionClass,
                              java.lang.String valueType,
                              java.util.List<Metadata> values)

CollectionMetadataImpl

public CollectionMetadataImpl(CollectionMetadata source)
Method Detail

getCollectionClass

public java.lang.Class getCollectionClass()
Description copied from interface: CollectionMetadata
Return the type of the collection. The possible types are: array (Object[]), Set, and List. This information is specified in the element name.

Specified by:
getCollectionClass in interface CollectionMetadata
Returns:
The type of the collection. Object[] is returned to indicate an array.

setCollectionClass

public void setCollectionClass(java.lang.Class collectionClass)
Specified by:
setCollectionClass in interface MutableCollectionMetadata

getValueType

public java.lang.String getValueType()
Description copied from interface: CollectionMetadata
Return the type specified for the values of the collection. The value-type attribute specified this information.

Specified by:
getValueType in interface CollectionMetadata
Returns:
The type specified for the values of the collection.

setValueType

public void setValueType(java.lang.String valueType)
Specified by:
setValueType in interface MutableCollectionMetadata

getValues

public java.util.List<Metadata> getValues()
Description copied from interface: CollectionMetadata
Return Metadata for the values of the collection.

Specified by:
getValues in interface CollectionMetadata
Returns:
A List of Metadata for the values of the collection.

setValues

public void setValues(java.util.List<Metadata> values)

addValue

public void addValue(Metadata value)
Specified by:
addValue in interface MutableCollectionMetadata

removeValue

public void removeValue(Metadata value)
Specified by:
removeValue in interface MutableCollectionMetadata

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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