org.jfree.xml.factory.objects
Class AbstractObjectDescription
java.lang.Object
org.jfree.xml.factory.objects.AbstractObjectDescription
- Cloneable, ObjectDescription, Serializable
An abstract base class for object descriptions.
configure
public void configure(Configuration config)
Configures this factory. The configuration contains several keys and
their defined values. The given reference to the configuration object
will remain valid until the report parsing or writing ends.
The configuration contents may change during the reporting.
- configure in interface ObjectDescription
config
- the configuration, never null
convertPrimitiveClass
public static Class convertPrimitiveClass(Class obj)
Converts primitives to corresponding object class.
getConfig
public Configuration getConfig()
Returns the configuration for that object description.
- the configuration or null, if not yet set.
getInstance
public ObjectDescription getInstance()
Returns a cloned instance of the object description. The contents
of the parameter objects collection are cloned too, so that any
already defined parameter value is copied to the new instance.
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.
- getInstance in interface ObjectDescription
getUnconfiguredInstance
public ObjectDescription getUnconfiguredInstance()
Returns a cloned instance of the object description. The contents
of the parameter objects collection are cloned too, so that any
already defined parameter value is copied to the new instance.
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.
- getUnconfiguredInstance in interface ObjectDescription
setParameterDefinition
public void setParameterDefinition(String name,
Class obj)
Sets the class for a parameter.
name
- the parameter name.obj
- the parameter class.