public class SDOFragmentMappingAttributeAccessor
extends AttributeAccessor
Purpose: A wrapper class for handling cases when the domain object attributes are to be accessed thru the accessor methods that are called "get" and "set". This is to be used when marsalling/unmarshalling SDODataObjects. The propertyName is the name of the property on the DataObject and that must be set on this accessor.
| Modifier and Type | Field and Description |
|---|---|
protected HelperContext |
helperContext |
protected SDOProperty |
property |
| Constructor and Description |
|---|
SDOFragmentMappingAttributeAccessor(SDOProperty property,
HelperContext helper) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getAttributeValueFromObject(java.lang.Object anObject)
Gets the value of an instance variable in the object.
|
SDOProperty |
getPropertyName()
INTERNAL:
|
void |
initializeAttributes(java.lang.Class theJavaClass)
Set get and set method after creating these methods by using
get and set method names
|
boolean |
isMethodAttributeAccessor()
INTERNAL:
|
void |
setAttributeValueInObject(java.lang.Object domainObject,
java.lang.Object attributeValue)
Sets the value of the instance variable in the object to the value.
|
void |
setProperty(SDOProperty property)
INTERNAL:
|
protected SDOProperty property
protected HelperContext helperContext
public SDOFragmentMappingAttributeAccessor(SDOProperty property, HelperContext helper)
public java.lang.Object getAttributeValueFromObject(java.lang.Object anObject)
throws DescriptorException
DescriptorExceptionpublic void initializeAttributes(java.lang.Class theJavaClass)
throws DescriptorException
DescriptorExceptionpublic boolean isMethodAttributeAccessor()
public void setAttributeValueInObject(java.lang.Object domainObject,
java.lang.Object attributeValue)
throws DescriptorException
DescriptorExceptionpublic void setProperty(SDOProperty property)
public SDOProperty getPropertyName()