public class CollectionMetadataImpl extends Object implements MutableCollectionMetadata
Constructor and Description |
---|
CollectionMetadataImpl() |
CollectionMetadataImpl(Class collectionClass,
String valueType,
List<Metadata> values) |
CollectionMetadataImpl(CollectionMetadata source) |
Modifier and Type | Method and Description |
---|---|
void |
addValue(Metadata value) |
Class |
getCollectionClass()
Return the type of the collection.
|
List<Metadata> |
getValues()
Return Metadata for the values of the collection.
|
String |
getValueType()
Return the type specified for the values of the collection.
|
void |
removeValue(Metadata value) |
void |
setCollectionClass(Class collectionClass) |
void |
setValues(List<Metadata> values) |
void |
setValueType(String valueType) |
String |
toString() |
public CollectionMetadataImpl()
public CollectionMetadataImpl(Class collectionClass, String valueType, List<Metadata> values)
public CollectionMetadataImpl(CollectionMetadata source)
public Class getCollectionClass()
CollectionMetadata
Object[]
), Set
,
and List
. This information is specified in the element name.getCollectionClass
in interface CollectionMetadata
Object[]
is returned to
indicate an array.public void setCollectionClass(Class collectionClass)
setCollectionClass
in interface MutableCollectionMetadata
public String getValueType()
CollectionMetadata
value-type
attribute specified this information.getValueType
in interface CollectionMetadata
public void setValueType(String valueType)
setValueType
in interface MutableCollectionMetadata
public List<Metadata> getValues()
CollectionMetadata
getValues
in interface CollectionMetadata
public void addValue(Metadata value)
addValue
in interface MutableCollectionMetadata
public void removeValue(Metadata value)
removeValue
in interface MutableCollectionMetadata
Copyright © 2013. All Rights Reserved.