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 |
attributeName, isReadOnly, isWriteOnly
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:
|
clone, getAttributeClass, getAttributeName, isInitialized, isInstanceVariableAttributeAccessor, isMapValueAttributeAccessor, isReadOnly, isValuesAccessor, isVirtualAttributeAccessor, isWriteOnly, setAttributeName, setIsReadOnly, setIsWriteOnly
protected SDOProperty property
protected HelperContext helperContext
public SDOFragmentMappingAttributeAccessor(SDOProperty property, HelperContext helper)
public java.lang.Object getAttributeValueFromObject(java.lang.Object anObject) throws DescriptorException
getAttributeValueFromObject
in interface CoreAttributeAccessor
getAttributeValueFromObject
in class AttributeAccessor
DescriptorException
public void initializeAttributes(java.lang.Class theJavaClass) throws DescriptorException
initializeAttributes
in interface CoreAttributeAccessor
initializeAttributes
in class AttributeAccessor
DescriptorException
public boolean isMethodAttributeAccessor()
isMethodAttributeAccessor
in interface CoreAttributeAccessor
isMethodAttributeAccessor
in class AttributeAccessor
public void setAttributeValueInObject(java.lang.Object domainObject, java.lang.Object attributeValue) throws DescriptorException
setAttributeValueInObject
in interface CoreAttributeAccessor
setAttributeValueInObject
in class AttributeAccessor
DescriptorException
public void setProperty(SDOProperty property)
public SDOProperty getPropertyName()