public class CollectionObjectDescription extends AbstractObjectDescription
Constructor and Description |
---|
CollectionObjectDescription(Class c)
Creates a list object description for the given collection class.
|
Modifier and Type | Method and Description |
---|---|
Object |
createObject()
Creates an object based on the description.
|
Class |
getParameterDefinition(String name)
Returns a parameter definition.
|
Iterator |
getParameterNames()
Returns an iterator for the parameter names.
|
void |
setParameterFromObject(Object o)
Sets the parameters of this description object to match the supplied object.
|
clone, configure, convertPrimitiveClass, equals, getConfig, getInstance, getObjectClass, getParameter, getUnconfiguredInstance, hashCode, setParameter, setParameterDefinition
public CollectionObjectDescription(Class c)
ClassCastException
if the given class is no collection instance.c
- the class of the collection implementation.public Class getParameterDefinition(String name)
getParameterDefinition
in interface ObjectDescription
getParameterDefinition
in class AbstractObjectDescription
name
- the definition name.public Iterator getParameterNames()
getParameterNames
in interface ObjectDescription
getParameterNames
in class AbstractObjectDescription
public Object createObject()
public void setParameterFromObject(Object o) throws ObjectFactoryException
o
- the object.ObjectFactoryException
- if there is a problem while reading the properties of the given object.