public abstract class AbstractObjectDescription extends Object implements ObjectDescription, Cloneable
Modifier | Constructor and Description |
---|---|
protected |
AbstractObjectDescription(Class className)
Creates a new object description.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
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.
|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
createObject, setParameterFromObject
protected AbstractObjectDescription(Class className)
className
- the class.public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
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()
getInstance
in interface ObjectDescription
public ObjectDescription getUnconfiguredInstance()
getUnconfiguredInstance
in interface ObjectDescription
public void configure(Configuration config)
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 © 2017 Hitachi Vantara. All rights reserved.