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.
| Modifier and Type | Field and Description |
|---|---|
| protected String | attributeName
Stores the name of the attribute |
| protected boolean | |
| protected boolean |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public Class | getAttributeClass()
Implements org. |
| public String | getAttributeName()
Implements org. |
| public abstract Object | getAttributeValueFromObject(Object object)
Redeclares org. |
| public void | initializeAttributes(Class<?> descriptorClass)
Implements org. |
| public boolean | isInitialized()
Returns true if this attribute accessor has been initialized and now stores a reference to the class's attribute. |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | isWriteOnly()
Implements org. |
| public void | |
| public abstract void | setAttributeValueInObject(Object object, Object value)
Redeclares org. |
| public void | setIsReadOnly(boolean aBoolean)
Implements org. |
| public void | setIsWriteOnly(boolean aBoolean)
Implements org. |
| attributeName | back to summary |
|---|---|
| protected String attributeName Stores the name of the attribute | |
| isReadOnly | back to summary |
|---|---|
| protected boolean isReadOnly | |
| isWriteOnly | back to summary |
|---|---|
| protected boolean isWriteOnly | |
| AttributeAccessor | back to summary |
|---|---|
| protected AttributeAccessor() Default constructor. | |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. INTERNAL: Clones itself.
| |
| getAttributeClass | back to summary |
|---|---|
| public Class Implements org. Return the class type of the attribute.
| |
| getAttributeName | back to summary |
|---|---|
| public String getAttributeName() Implements org. INTERNAL: Return the attribute name.
| |
| getAttributeValueFromObject | back to summary |
|---|---|
| public abstract Object getAttributeValueFromObject(Object object) throws DescriptorException Redeclares org. Return the attribute value from the object.
| |
| initializeAttributes | back to summary |
|---|---|
| public void initializeAttributes(Class<?> descriptorClass) throws DescriptorException Implements org. Allow any initialization to be performed with the descriptor class.
| |
| isInitialized | back to summary |
|---|---|
| public boolean isInitialized() Returns true if this attribute accessor has been initialized and now stores a reference to the class's attribute. An attribute accessor can become uninitialized on serialization. | |
| isInstanceVariableAttributeAccessor | back to summary |
|---|---|
| public boolean isInstanceVariableAttributeAccessor() Implements org.
| |
| isMapValueAttributeAccessor | back to summary |
|---|---|
| public boolean isMapValueAttributeAccessor() | |
| isMethodAttributeAccessor | back to summary |
|---|---|
| public boolean isMethodAttributeAccessor() Implements org.
| |
| isReadOnly | back to summary |
|---|---|
| public boolean isReadOnly() INTERNAL | |
| isValuesAccessor | back to summary |
|---|---|
| public boolean isValuesAccessor() | |
| isVirtualAttributeAccessor | back to summary |
|---|---|
| public boolean isVirtualAttributeAccessor() | |
| isWriteOnly | back to summary |
|---|---|
| public boolean isWriteOnly() Implements org. INTERNAL:
| |
| setAttributeName | back to summary |
|---|---|
| public void setAttributeName(String attributeName) INTERNAL: Set the attribute name. | |
| setAttributeValueInObject | back to summary |
|---|---|
| public abstract void setAttributeValueInObject(Object object, Object value) throws DescriptorException Redeclares org. Set the attribute value into the object.
| |
| setIsReadOnly | back to summary |
|---|---|
| public void setIsReadOnly(boolean aBoolean) Implements org. INTERNAL
| |
| setIsWriteOnly | back to summary |
|---|---|
| public void setIsWriteOnly(boolean aBoolean) Implements org. INTERNAL:
| |