public class BaseProperty extends java.lang.Object implements Property
Property
interface.Constructor and Description |
---|
BaseProperty() |
Modifier and Type | Method and Description |
---|---|
AttributeDescription |
getAttributeDescription()
Returns attribute description of this property.
|
java.lang.String |
getAttributeName()
Returns the attribute name.
|
BeanType |
getBeanType()
Returns the bean type this property.
|
java.lang.reflect.Method |
getGetter()
Returns the getter java method for this property.
|
java.lang.String |
getName()
Returns the property name.
|
java.lang.reflect.Method |
getSetter()
Returns the setter java method for this property.
|
java.lang.Class<?> |
getTargetType()
Returns the target type.
|
boolean |
hasAttributeDescription()
Determines if it has attribute description.
|
void |
setAttributeDescription(AttributeDescription attributeDescription)
Sets the attribute description.
|
void |
setAttributeName(java.lang.String attributeName)
Sets the attribute name.
|
void |
setBeanType(BeanType beanType)
Sets the bean type this property.
|
void |
setGetter(java.lang.reflect.Method getter)
Sets the Getter method.
|
void |
setHasAttributeDescription(boolean hasAttributeDescription)
Sets the has attribute description.
|
void |
setName(java.lang.String name)
Sets the property name.
|
void |
setSetter(java.lang.reflect.Method setter)
Sets the Setter method.
|
void |
setTargetType(java.lang.Class<?> targetType)
Sets the target type.
|
public AttributeDescription getAttributeDescription()
Property
getAttributeDescription
in interface Property
public void setAttributeDescription(AttributeDescription attributeDescription) throws CSAppFrameworkException
attributeDescription
- the attribute description.CSAppFrameworkException
- if an internal error occurs.public java.lang.String getName()
public void setName(java.lang.String name)
name
- the property name.public java.lang.Class<?> getTargetType()
getTargetType
in interface Property
public void setTargetType(java.lang.Class<?> targetType)
targetType
- the target type.public java.lang.reflect.Method getGetter()
public java.lang.reflect.Method getSetter()
public void setGetter(java.lang.reflect.Method getter)
getter
- the getter to setpublic void setSetter(java.lang.reflect.Method setter)
setter
- the setter to setpublic BeanType getBeanType()
Property
getBeanType
in interface Property
public void setBeanType(BeanType beanType)
beanType
- the bean type this property.public java.lang.String getAttributeName()
public void setAttributeName(java.lang.String attributeName)
attributeName
- the attributeName to set.public boolean hasAttributeDescription()
true
if it has attribute description.public void setHasAttributeDescription(boolean hasAttributeDescription)
hasAttributeDescription
- true
if it has attribute description.