public abstract class AbstractObjectDescription extends Object implements ObjectDescription, Cloneable
Constructor and Description |
---|
AbstractObjectDescription(Class className)
Creates a new object description.
|
Modifier and Type | Method and Description |
---|---|
void |
configure(Configuration config)
Configures this factory.
|
static Class |
convertPrimitiveClass(Class obj)
Converts primitives to corresponding object class.
|
boolean |
equals(Object o)
Tests for equality.
|
Configuration |
getConfig()
Returns the configuration for that object description.
|
protected Iterator |
getDefinedParameterNames()
Returns an iterator for the parameter names.
|
ObjectDescription |
getInstance()
Returns a cloned instance of the object description.
|
Class |
getObjectClass()
Returns the class for the object.
|
Object |
getParameter(String name)
Returns a parameter value.
|
Class |
getParameterDefinition(String name)
Returns a parameter class.
|
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(String name,
Object value)
Sets a parameter.
|
void |
setParameterDefinition(String name,
Class obj)
Sets the class for a parameter.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
createObject, setParameterFromObject
public AbstractObjectDescription(Class className)
className
- the class.public Class getParameterDefinition(String name)
getParameterDefinition
in interface ObjectDescription
name
- the parameter definition.public void setParameterDefinition(String name, Class obj)
name
- the parameter name.obj
- the parameter class.public static Class convertPrimitiveClass(Class obj)
obj
- the class.public void setParameter(String name, Object value)
setParameter
in interface ObjectDescription
name
- the name.value
- the value.public Iterator getParameterNames()
getParameterNames
in interface ObjectDescription
protected Iterator getDefinedParameterNames()
public Object getParameter(String name)
getParameter
in interface ObjectDescription
name
- the parameter name.public 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(Object o)
equals
in interface ObjectDescription
equals
in class Object
o
- the object to test.public int hashCode()
hashCode
in interface ObjectDescription
hashCode
in class Object
Copyright © 2001–2018 JFree.org. All rights reserved.