public abstract class AbstractPojoPropertyAccessorMethodLimited extends AbstractPojoPropertyAccessor
PojoPropertyAccessor
for accessing a Method
(getter or setter) in a limited environment (GWT).Modifier and Type | Field and Description |
---|---|
private Class<?> |
declaringClass |
private String |
name |
private GenericType<?> |
propertyType |
Constructor and Description |
---|
AbstractPojoPropertyAccessorMethodLimited(String propertyName,
GenericType<?> propertyType,
Class<?> declaringClass)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getAccessibleObjectName()
This method gets the name of the
accessible object . |
Class<?> |
getDeclaringClass()
This method gets the class reflecting the type that declared this accessor.
|
int |
getModifiers()
This method gets the
modifiers of the accessible
object . |
String |
getName()
This method gets the programmatic (technical) name of the according property.
|
GenericType<?> |
getPropertyType()
This method gets the
GenericType of this property. |
getPropertyClass, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAccessibleObject, getMode, getReturnClass, getReturnType
private final String name
private final GenericType<?> propertyType
private final Class<?> declaringClass
public AbstractPojoPropertyAccessorMethodLimited(String propertyName, GenericType<?> propertyType, Class<?> declaringClass)
propertyName
- is the name
of the property.propertyType
- is the property type
.declaringClass
- is the declaring class
.public String getAccessibleObjectName()
PojoPropertyAccessor
accessible object
.accessible object
.Method.getName()
,
Constructor.getName()
,
Field.getName()
public int getModifiers()
PojoPropertyAccessor
modifiers
of the accessible
object
.Modifier
,
Field.getModifiers()
,
Method.getModifiers()
public GenericType<?> getPropertyType()
PojoPropertyAccessor
GenericType
of this property. getter
this will be the return-type
while
a setter
typically has void
as return-type
and this method will return the type of its argument. For mapped or indexed getters/setters this
method will return the item type.GenericType
reflecting the property.PojoPropertyAccessor.getPropertyClass()
,
PropertyDescriptor.getPropertyType()
public Class<?> getDeclaringClass()
PojoPropertyAccessor
field or method
of this
accessor is inherited from and is NOT overridden. Object
.public String getName()
PojoAttributeName
read
accessor
public String getFooBar()
the property name would be fooBar
.FeatureDescriptor.getName()
Copyright © 2001–2016 mmm-Team. All rights reserved.