BeanProperty
public class DefaultBeanProperty extends Object implements BeanProperty
Constructor | Description |
---|---|
DefaultBeanProperty(String name) |
Modifier and Type | Method | Description |
---|---|---|
JavaMethod |
getAccessor() |
|
JavaMethod |
getMutator() |
The setter-method of the bean.
|
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 DefaultBeanProperty(String name)
public 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)
Copyright © 2002–2018. All rights reserved.