Package com.thoughtworks.qdox.model.impl
Class DefaultBeanProperty
java.lang.Object
com.thoughtworks.qdox.model.impl.DefaultBeanProperty
- All Implemented Interfaces:
BeanProperty
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JavaMethod
private JavaMethod
private final String
private JavaType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe setter-method of the bean.getName()
The name of the bean, which is based on the name of the mutator or accessor, not on the field.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
-
Field Details
-
name
-
accessor
-
mutator
-
type
-
-
Constructor Details
-
DefaultBeanProperty
-
-
Method Details
-
getName
The name of the bean, which is based on the name of the mutator or accessor, not on the field.- Specified by:
getName
in interfaceBeanProperty
- Returns:
- the name of the bean
-
setType
-
getType
The type of the bean, either used as argument type of the mutator or return type of the accessor.- Specified by:
getType
in interfaceBeanProperty
- Returns:
- the type of the bean
-
getAccessor
This can return both theisProperty
if the property is of typeBoolean
orgetProperty
for any other type ofObject
.- Specified by:
getAccessor
in interfaceBeanProperty
- Returns:
- the getter, otherwise
null
-
setAccessor
-
getMutator
The setter-method of the bean.- Specified by:
getMutator
in interfaceBeanProperty
- Returns:
- the setter, otherwise
null
-
setMutator
-