|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for object descriptions.
Method Summary | |
void |
configure(Configuration config)
Configures this factory. |
java.lang.Object |
createObject()
Creates an object based on the description. |
boolean |
equals(java.lang.Object o)
Compares whether two object descriptions are equal. |
ObjectDescription |
getInstance()
Returns a cloned instance of the object description. |
java.lang.Class |
getObjectClass()
Returns the object class. |
java.lang.Object |
getParameter(java.lang.String name)
Returns the value of a parameter. |
java.lang.Class |
getParameterDefinition(java.lang.String name)
Returns a parameter definition. |
java.util.Iterator |
getParameterNames()
Returns an iterator the provides access to the parameter names. |
ObjectDescription |
getUnconfiguredInstance()
Returns a cloned instance of the object description. |
void |
setParameter(java.lang.String name,
java.lang.Object value)
Sets the value of a parameter. |
void |
setParameterFromObject(java.lang.Object o)
Sets the parameters of this description object to match the supplied object. |
Method Detail |
public java.lang.Class getParameterDefinition(java.lang.String name)
name
- the definition name.
public void setParameter(java.lang.String name, java.lang.Object value)
name
- the parameter name.value
- the parameter value.public java.lang.Object getParameter(java.lang.String name)
name
- the parameter name.
public java.util.Iterator getParameterNames()
public java.lang.Class getObjectClass()
public java.lang.Object createObject()
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.
public ObjectDescription getInstance()
Parameter definitions are not cloned, as they are considered read-only.
public void setParameterFromObject(java.lang.Object o) throws ObjectFactoryException
o
- the object.
ObjectFactoryException
- if there is a problem while reading the
properties of the given object.public void configure(Configuration config)
The configuration contents may change during the reporting.
config
- the configuration, never nullpublic boolean equals(java.lang.Object o)
o
- the other object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |