public class DefaultBeanProperty extends java.lang.Object implements BeanProperty
Modifier and Type | Field and Description |
---|---|
private JavaMethod |
accessor |
private JavaMethod |
mutator |
private java.lang.String |
name |
private JavaType |
type |
Constructor and Description |
---|
DefaultBeanProperty(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
JavaMethod |
getAccessor()
This can return both the
isProperty if the property is of type Boolean or
getProperty for any other type of Object . |
JavaMethod |
getMutator()
The setter-method of the bean.
|
java.lang.String |
getName()
The name of the bean, which is based on the name of the mutator or accessor, not on the field.
|
JavaType |
getType()
The type of the bean, either used as argument type of the mutator or return type of the accessor.
|
void |
setAccessor(JavaMethod accessor) |
void |
setMutator(JavaMethod mutator) |
void |
setType(JavaType type) |
private final java.lang.String name
private JavaMethod accessor
private JavaMethod mutator
private JavaType type
public java.lang.String getName()
getName
in interface BeanProperty
public void setType(JavaType type)
public JavaType getType()
getType
in interface BeanProperty
public JavaMethod getAccessor()
isProperty
if the property is of type Boolean
or
getProperty
for any other type of Object
.getAccessor
in interface BeanProperty
null
public void setAccessor(JavaMethod accessor)
public JavaMethod getMutator()
getMutator
in interface BeanProperty
null
public void setMutator(JavaMethod mutator)