|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.xml.factory.objects.AbstractObjectDescription
public abstract class AbstractObjectDescription
An abstract base class for object descriptions.
Constructor Summary | |
---|---|
AbstractObjectDescription(java.lang.Class className)
Creates a new object description. |
Method Summary | |
---|---|
void |
configure(Configuration config)
Configures this factory. |
static java.lang.Class |
convertPrimitiveClass(java.lang.Class obj)
Converts primitives to corresponding object class. |
boolean |
equals(java.lang.Object o)
Tests for equality. |
Configuration |
getConfig()
Returns the configuration for that object description. |
protected java.util.Iterator |
getDefinedParameterNames()
Returns an iterator for the parameter names. |
ObjectDescription |
getInstance()
Returns a cloned instance of the object description. |
java.lang.Class |
getObjectClass()
Returns the class for the object. |
java.lang.Object |
getParameter(java.lang.String name)
Returns a parameter value. |
java.lang.Class |
getParameterDefinition(java.lang.String name)
Returns a parameter class. |
java.util.Iterator |
getParameterNames()
Returns an iterator for the parameter names. |
ObjectDescription |
getUnconfiguredInstance()
Returns a cloned instance of the object description. |
int |
hashCode()
Returns a hash code for the object. |
void |
setParameter(java.lang.String name,
java.lang.Object value)
Sets a parameter. |
void |
setParameterDefinition(java.lang.String name,
java.lang.Class obj)
Sets the class for a parameter. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jfree.xml.factory.objects.ObjectDescription |
---|
createObject, setParameterFromObject |
Constructor Detail |
---|
public AbstractObjectDescription(java.lang.Class className)
className
- the class.Method Detail |
---|
public java.lang.Class getParameterDefinition(java.lang.String name)
getParameterDefinition
in interface ObjectDescription
name
- the parameter definition.
public void setParameterDefinition(java.lang.String name, java.lang.Class obj)
name
- the parameter name.obj
- the parameter class.public static java.lang.Class convertPrimitiveClass(java.lang.Class obj)
obj
- the class.
public void setParameter(java.lang.String name, java.lang.Object value)
setParameter
in interface ObjectDescription
name
- the name.value
- the value.public java.util.Iterator getParameterNames()
getParameterNames
in interface ObjectDescription
protected java.util.Iterator getDefinedParameterNames()
public java.lang.Object getParameter(java.lang.String name)
getParameter
in interface ObjectDescription
name
- the parameter name.
public java.lang.Class getObjectClass()
getObjectClass
in interface ObjectDescription
public ObjectDescription getInstance()
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
public ObjectDescription getUnconfiguredInstance()
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
public void configure(Configuration config)
The configuration contents may change during the reporting.
configure
in interface ObjectDescription
config
- the configuration, never nullpublic Configuration getConfig()
public boolean equals(java.lang.Object o)
equals
in interface ObjectDescription
equals
in class java.lang.Object
o
- the object to test.
public int hashCode()
hashCode
in interface ObjectDescription
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |