org.jfree.xml.factory.objects
public interface ObjectDescription extends Serializable
Method Summary | |
---|---|
void | configure(Configuration config)
Configures this factory. |
Object | createObject()
Creates an object based on the description.
|
boolean | equals(Object o)
Compares whether two object descriptions are equal.
|
ObjectDescription | getInstance()
Returns a cloned instance of the object description. |
Class | getObjectClass()
Returns the object class.
|
Object | getParameter(String name)
Returns the value of a parameter.
|
Class | getParameterDefinition(String name)
Returns a parameter definition. |
Iterator | getParameterNames()
Returns an iterator the provides access to the parameter names. |
ObjectDescription | getUnconfiguredInstance()
Returns a cloned instance of the object description. |
int | hashCode()
Computes the hashCode for this ClassFactory. |
void | setParameter(String name, Object value)
Sets the value of a parameter.
|
void | setParameterFromObject(Object o)
Sets the parameters of this description object to match the supplied object.
|
The configuration contents may change during the reporting.
Parameters: config the configuration, never null
Returns: The object.
Parameters: o the other object.
Returns: true, if both object desciptions describe the same object, false otherwise.
Parameter definitions are not cloned, as they are considered read-only.
Returns: A cloned instance.
Returns: The Class.
Parameters: name the parameter name.
Returns: The value.
Parameters: name the definition name.
Returns: The parameter class or null, if the parameter is not defined.
Returns: The iterator.
Parameter definitions are not cloned, as they are considered read-only.
The newly instantiated object description is not configured. If it need to be configured, then you have to call configure on it.
Returns: A cloned instance.
Returns: the hashcode.
Parameters: name the parameter name. value the parameter value.
Parameters: o the object.
Throws: ObjectFactoryException if there is a problem while reading the properties of the given object.