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, waitcreateObject, setParameterFromObjectpublic AbstractObjectDescription(Class className)
className - the class.public Class getParameterDefinition(String name)
getParameterDefinition in interface ObjectDescriptionname - 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 ObjectDescriptionname - the name.value - the value.public Iterator getParameterNames()
getParameterNames in interface ObjectDescriptionprotected Iterator getDefinedParameterNames()
public Object getParameter(String name)
getParameter in interface ObjectDescriptionname - the parameter name.public Class getObjectClass()
getObjectClass in interface ObjectDescriptionpublic 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 ObjectDescriptionpublic 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 ObjectDescriptionpublic void configure(Configuration config)
The configuration contents may change during the reporting.
configure in interface ObjectDescriptionconfig - the configuration, never nullpublic Configuration getConfig()
public boolean equals(Object o)
equals in interface ObjectDescriptionequals in class Objecto - the object to test.public int hashCode()
hashCode in interface ObjectDescriptionhashCode in class ObjectCopyright © 2009-2012 jtstand.com. All Rights Reserved.