Purpose: A wrapper class for handling cases when the domain object attributes are to be accessed thru the accessor methods. This could happen if the variables are not defined public in the domain object.
| Modifier and Type | Field and Description |
|---|---|
| protected transient Method | |
| protected String | |
| protected transient Method | |
| protected String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Class | getAttributeClass()
Overrides org. Implements org. |
| public Object | getAttributeValueFromObject(Object anObject)
Implements abstract org. Implements org. |
| protected Object | getAttributeValueFromObject(final Object anObject, final Object[] parameters)
Gets the value of an instance variable in the object. |
| public Method | |
| public String | |
| public Class | getGetMethodReturnType()
INTERNAL: Return the GetMethod return type for this MethodAttributeAccessor. |
| protected Method | |
| public String | |
| public Class | |
| protected Class | |
| protected Class | |
| public void | initializeAttributes(Class<?> theJavaClass)
Overrides org. Implements org. |
| protected void | initializeAttributes(Class<?> theJavaClass, Class<?>[] getParameterTypes)
Set get and set method after creating these methods by using get and set method names |
| public boolean | isInitialized()
Overrides org. |
| public boolean | |
| public void | setAttributeValueInObject(Object domainObject, Object attributeValue)
Implements abstract org. Implements org. |
| protected void | setAttributeValueInObject(final Object domainObject, final Object attributeValue, final Object[] parameters)
Sets the value of the instance variable in the object to the value. |
| protected void | |
| public void | setGetMethodName(String getMethodName)
Set the name of the accessor method for the attribute accessor. |
| protected void | |
| public void |
| getMethod | back to summary |
|---|---|
| protected transient Method getMethod | |
| getMethodName | back to summary |
|---|---|
| protected String getMethodName | |
| setMethod | back to summary |
|---|---|
| protected transient Method setMethod | |
| setMethodName | back to summary |
|---|---|
| protected String setMethodName | |
| MethodAttributeAccessor | back to summary |
|---|---|
| public MethodAttributeAccessor() | |
| getAttributeClass | back to summary |
|---|---|
| public Class Overrides org. Implements org. Return the return type of the method accessor.
| |
| getAttributeValueFromObject | back to summary |
|---|---|
| public Object getAttributeValueFromObject(Object anObject) throws DescriptorException Implements abstract org. Implements org. Gets the value of an instance variable in the object.
| |
| getAttributeValueFromObject | back to summary |
|---|---|
| protected Object getAttributeValueFromObject(final Object anObject, final Object[] parameters) throws DescriptorException Gets the value of an instance variable in the object. | |
| getGetMethod | back to summary |
|---|---|
| public Method getGetMethod() Return the accessor method for the attribute accessor. 266912: For Metamodel API - change visibility from protected | |
| getGetMethodName | back to summary |
|---|---|
| public String getGetMethodName() Return the name of the accessor method for the attribute accessor. | |
| getGetMethodReturnType | back to summary |
|---|---|
| public Class INTERNAL: Return the GetMethod return type for this MethodAttributeAccessor. A special check is made to determine if a missing method is a result of failed weaving. | |
| getSetMethod | back to summary |
|---|---|
| protected Method getSetMethod() Return the set method for the attribute accessor. | |
| getSetMethodName | back to summary |
|---|---|
| public String getSetMethodName() Return the name of the set method for the attribute accessor. | |
| getSetMethodParameterType | back to summary |
|---|---|
| public Class | |
| getSetMethodParameterType | back to summary |
|---|---|
| protected Class | |
| getSetMethodParameterTypes | back to summary |
|---|---|
| protected Class | |
| initializeAttributes | back to summary |
|---|---|
| public void initializeAttributes(Class<?> theJavaClass) throws DescriptorException Overrides org. Implements org. Set get and set method after creating these methods by using get and set method names
| |
| initializeAttributes | back to summary |
|---|---|
| protected void initializeAttributes(Class<?> theJavaClass, Class<?>[] getParameterTypes) throws DescriptorException Set get and set method after creating these methods by using get and set method names | |
| isInitialized | back to summary |
|---|---|
| public boolean isInitialized() Overrides org. 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.
| |
| isMethodAttributeAccessor | back to summary |
|---|---|
| public boolean isMethodAttributeAccessor() Overrides org. Implements org.
| |
| setAttributeValueInObject | back to summary |
|---|---|
| public void setAttributeValueInObject(Object domainObject, Object attributeValue) throws DescriptorException Implements abstract org. Implements org. Sets the value of the instance variable in the object to the value.
| |
| setAttributeValueInObject | back to summary |
|---|---|
| protected void setAttributeValueInObject(final Object domainObject, final Object attributeValue, final Object[] parameters) throws DescriptorException Sets the value of the instance variable in the object to the value. | |
| setGetMethod | back to summary |
|---|---|
| protected void setGetMethod(Method getMethod) Set the accessor method for the attribute accessor. | |
| setGetMethodName | back to summary |
|---|---|
| public void setGetMethodName(String getMethodName) Set the name of the accessor method for the attribute accessor. | |
| setSetMethod | back to summary |
|---|---|
| protected void setSetMethod(Method setMethod) Set the set method for the attribute accessor. | |
| setSetMethodName | back to summary |
|---|---|
| public void setSetMethodName(String setMethodName) Set the name of the set method for the attribute accessor. | |