Package com.thoughtworks.qdox.model.impl
Class DefaultBeanProperty
- java.lang.Object
-
- com.thoughtworks.qdox.model.impl.DefaultBeanProperty
-
- All Implemented Interfaces:
BeanProperty
public class DefaultBeanProperty extends java.lang.Object implements BeanProperty
-
-
Constructor Summary
Constructors Constructor Description DefaultBeanProperty(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JavaMethodgetAccessor()This can return both theisPropertyif the property is of typeBooleanorgetPropertyfor any other type ofObject.JavaMethodgetMutator()The setter-method of the bean.java.lang.StringgetName()The name of the bean, which is based on the name of the mutator or accessor, not on the field.JavaTypegetType()The type of the bean, either used as argument type of the mutator or return type of the accessor.voidsetAccessor(JavaMethod accessor)voidsetMutator(JavaMethod mutator)voidsetType(JavaType type)
-
-
-
Method Detail
-
getName
public java.lang.String getName()
The name of the bean, which is based on the name of the mutator or accessor, not on the field.- Specified by:
getNamein interfaceBeanProperty- Returns:
- the name of the bean
-
setType
public void setType(JavaType type)
-
getType
public JavaType getType()
The type of the bean, either used as argument type of the mutator or return type of the accessor.- Specified by:
getTypein interfaceBeanProperty- Returns:
- the type of the bean
-
getAccessor
public JavaMethod getAccessor()
This can return both theisPropertyif the property is of typeBooleanorgetPropertyfor any other type ofObject.- Specified by:
getAccessorin interfaceBeanProperty- Returns:
- the getter, otherwise
null
-
setAccessor
public void setAccessor(JavaMethod accessor)
-
getMutator
public JavaMethod getMutator()
The setter-method of the bean.- Specified by:
getMutatorin interfaceBeanProperty- Returns:
- the setter, otherwise
null
-
setMutator
public void setMutator(JavaMethod mutator)
-
-