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