Class CustomAccessorAttributeAccessor
- java.lang.Object
-
- org.eclipse.persistence.mappings.AttributeAccessor
-
- org.eclipse.persistence.internal.jaxb.CustomAccessorAttributeAccessor
-
- All Implemented Interfaces:
Serializable,Cloneable,CoreAttributeAccessor
public class CustomAccessorAttributeAccessor extends AttributeAccessor
Purpose: Provides a wrapper around an instance of Accessor. Makes reflective calls to the nested accessor's get and set methods. The nested accessor can come from either the internal or public package.
- Since:
- EclipseLink 2.4
- Author:
- mmacivor
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.mappings.AttributeAccessor
attributeName, isReadOnly, isWriteOnly
-
-
Constructor Summary
Constructors Constructor Description CustomAccessorAttributeAccessor(Object accessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetAttributeValueFromObject(Object object)voidsetAttributeValueInObject(Object object, Object value)-
Methods inherited from class org.eclipse.persistence.mappings.AttributeAccessor
clone, getAttributeClass, getAttributeName, initializeAttributes, isInitialized, isInstanceVariableAttributeAccessor, isMapValueAttributeAccessor, isMethodAttributeAccessor, isReadOnly, isValuesAccessor, isVirtualAttributeAccessor, isWriteOnly, setAttributeName, setIsReadOnly, setIsWriteOnly
-
-
-
-
Constructor Detail
-
CustomAccessorAttributeAccessor
public CustomAccessorAttributeAccessor(Object accessor)
-
-
Method Detail
-
getAttributeValueFromObject
public Object getAttributeValueFromObject(Object object) throws DescriptorException
- Specified by:
getAttributeValueFromObjectin interfaceCoreAttributeAccessor- Specified by:
getAttributeValueFromObjectin classAttributeAccessor- Throws:
DescriptorException
-
setAttributeValueInObject
public void setAttributeValueInObject(Object object, Object value) throws DescriptorException
- Specified by:
setAttributeValueInObjectin interfaceCoreAttributeAccessor- Specified by:
setAttributeValueInObjectin classAttributeAccessor- Throws:
DescriptorException
-
-