public abstract class AttributeAccessor extends java.lang.Object implements CoreAttributeAccessor, java.lang.Cloneable, java.io.Serializable
Purpose: This provides an abstract class for setting and retrieving the attribute value for the mapping from an object. It can be used in advanced situations if the attribute requires advanced conversion of the mapping value, or a real attribute does not exist.
| Constructor and Description |
|---|
AttributeAccessor() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
INTERNAL: Clones itself.
|
java.lang.Class |
getAttributeClass()
Return the class type of the attribute.
|
java.lang.String |
getAttributeName()
INTERNAL: Return the attribute name.
|
abstract java.lang.Object |
getAttributeValueFromObject(java.lang.Object object)
Return the attribute value from the object.
|
void |
initializeAttributes(java.lang.Class descriptorClass)
Allow any initialization to be performed with the descriptor class.
|
boolean |
isInitialized()
Returns true if this attribute accessor has been initialized and now stores a reference to the class's attribute.
|
boolean |
isInstanceVariableAttributeAccessor() |
boolean |
isMapValueAttributeAccessor() |
boolean |
isMethodAttributeAccessor() |
boolean |
isReadOnly()
INTERNAL
|
boolean |
isValuesAccessor() |
boolean |
isVirtualAttributeAccessor() |
boolean |
isWriteOnly()
INTERNAL:
|
void |
setAttributeName(java.lang.String attributeName)
INTERNAL: Set the attribute name.
|
abstract void |
setAttributeValueInObject(java.lang.Object object, java.lang.Object value)
Set the attribute value into the object.
|
void |
setIsReadOnly(boolean aBoolean)
INTERNAL
|
void |
setIsWriteOnly(boolean aBoolean)
INTERNAL:
|
public java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.String getAttributeName()
getAttributeName in interface CoreAttributeAccessorpublic void setAttributeName(java.lang.String attributeName)
public java.lang.Class getAttributeClass()
getAttributeClass in interface CoreAttributeAccessor
public void initializeAttributes(java.lang.Class descriptorClass)
throws DescriptorException
initializeAttributes in interface CoreAttributeAccessorDescriptorExceptionpublic boolean isInitialized()
public boolean isInstanceVariableAttributeAccessor()
isInstanceVariableAttributeAccessor in interface CoreAttributeAccessorpublic boolean isMapValueAttributeAccessor()
public boolean isMethodAttributeAccessor()
isMethodAttributeAccessor in interface CoreAttributeAccessorpublic boolean isValuesAccessor()
public boolean isVirtualAttributeAccessor()
public boolean isWriteOnly()
isWriteOnly in interface CoreAttributeAccessorpublic void setIsWriteOnly(boolean aBoolean)
setIsWriteOnly in interface CoreAttributeAccessoraBoolean -public boolean isReadOnly()
public void setIsReadOnly(boolean aBoolean)
setIsReadOnly in interface CoreAttributeAccessoraBoolean -
public abstract java.lang.Object getAttributeValueFromObject(java.lang.Object object)
throws DescriptorException
getAttributeValueFromObject in interface CoreAttributeAccessorDescriptorException
public abstract void setAttributeValueInObject(java.lang.Object object,
java.lang.Object value)
throws DescriptorException
setAttributeValueInObject in interface CoreAttributeAccessorDescriptorException