Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.jfree.xml.factory.objects.AbstractObjectDescription
org.jfree.xml.factory.objects.ArrayObjectDescription
public class ArrayObjectDescription
extends AbstractObjectDescription
Constructor Summary | |
|
Method Summary | |
Object |
|
ObjectDescription |
|
Class |
|
Iterator |
|
void |
|
Methods inherited from class org.jfree.xml.factory.objects.AbstractObjectDescription | |
configure , convertPrimitiveClass , equals , getConfig , getDefinedParameterNames , getInstance , getObjectClass , getParameter , getParameterDefinition , getParameterNames , getUnconfiguredInstance , hashCode , setParameter , setParameterDefinition |
public ArrayObjectDescription(Class c)
Constructs a new array objet description for the given array class. Note: throwsIllegalArgumentException
if the given class is no array.
- Parameters:
c
- the array class object.
public Object createObject()
Creates an object based on the description.
- Specified by:
- createObject in interface ObjectDescription
- Returns:
- The object.
public ObjectDescription getInstance()
Returns a new instance of the object description.
- Specified by:
- getInstance in interface ObjectDescription
- Overrides:
- getInstance in interface AbstractObjectDescription
- Returns:
- The object description.
public Class getParameterDefinition(String name)
Returns a parameter definition. If the parameter is invalid, this function returns null.
- Specified by:
- getParameterDefinition in interface ObjectDescription
- Overrides:
- getParameterDefinition in interface AbstractObjectDescription
- Parameters:
name
- the definition name.
- Returns:
- The parameter class or null, if the parameter is not defined.
public Iterator getParameterNames()
Returns an iterator for the parameter names.
- Specified by:
- getParameterNames in interface ObjectDescription
- Overrides:
- getParameterNames in interface AbstractObjectDescription
- Returns:
- The iterator.
public void setParameterFromObject(Object o) throws ObjectFactoryException
Sets the parameters of this description object to match the supplied object.
- Specified by:
- setParameterFromObject in interface ObjectDescription
- Parameters:
o
- the object.
- Throws:
ObjectFactoryException
- if there is a problem while reading the properties of the given object.