public class DefaultBeanProperty extends java.lang.Object implements BeanProperty
| 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) |
public java.lang.String getName()
getName in interface BeanPropertypublic void setType(JavaType type)
public JavaType getType()
getType in interface BeanPropertypublic JavaMethod getAccessor()
isProperty if the property is of type Boolean or
getProperty for any other type of Object.getAccessor in interface BeanPropertynullpublic void setAccessor(JavaMethod accessor)
public JavaMethod getMutator()
getMutator in interface BeanPropertynullpublic void setMutator(JavaMethod mutator)
Copyright © 2002-2018. All Rights Reserved.