|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.util.JBossObject
org.jboss.reflect.plugins.AbstractAnnotatedInfo
org.jboss.reflect.plugins.AnnotationHolder
org.jboss.beans.info.plugins.AbstractPropertyInfo
public class AbstractPropertyInfo
Property info.
| Field Summary | |
|---|---|
protected BeanInfo |
beanInfo
The bean info |
protected MethodInfo |
getter
The getter |
protected String |
name
The property name |
protected MethodInfo |
setter
The setter |
protected TypeInfo |
type
The type |
protected String |
upperName
The upper property name |
| Fields inherited from class org.jboss.reflect.plugins.AnnotationHolder |
|---|
annotationMap, annotationsArray |
| Fields inherited from class org.jboss.util.JBossObject |
|---|
hashCode, log, toString |
| Constructor Summary | |
|---|---|
AbstractPropertyInfo()
Create a new property info |
|
AbstractPropertyInfo(String name)
Create a new property info |
|
AbstractPropertyInfo(String name,
String upperName,
TypeInfo type,
MethodInfo getter,
MethodInfo setter)
Create a new property info |
|
AbstractPropertyInfo(String name,
String upperName,
TypeInfo type,
MethodInfo getter,
MethodInfo setter,
AnnotationValue[] annotations)
Create a new property info |
|
| Method Summary | |
|---|---|
boolean |
equals(Object object)
|
Object |
get(Object bean)
Get the property value |
BeanInfo |
getBeanInfo()
Get the BeanInfo |
MethodInfo |
getGetter()
Get the getter |
int |
getHashCode()
|
String |
getName()
Get the property name |
MethodInfo |
getSetter()
Get the setter |
TypeInfo |
getType()
Get the type |
String |
getUpperName()
Get the uppercase version of the property name |
void |
set(Object bean,
Object value)
Set the property value |
void |
setGetter(MethodInfo getter)
Set the getter |
void |
setSetter(MethodInfo setter)
Set the setter |
void |
setType(TypeInfo type)
|
void |
toShortString(org.jboss.util.JBossStringBuilder buffer)
|
void |
toString(org.jboss.util.JBossStringBuilder buffer)
|
| Methods inherited from class org.jboss.reflect.plugins.AnnotationHolder |
|---|
getAnnotation, getAnnotations, isAnnotationPresent, setupAnnotations |
| Methods inherited from class org.jboss.reflect.plugins.AbstractAnnotatedInfo |
|---|
getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent |
| Methods inherited from class org.jboss.util.JBossObject |
|---|
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, hashCode, list, notEqual, toShortString, toString, toStringImplementation |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.reflect.spi.AnnotatedInfo |
|---|
getAnnotation, getAnnotations, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresent |
| Methods inherited from interface org.jboss.util.JBossInterface |
|---|
clone, toShortString |
| Field Detail |
|---|
protected transient BeanInfo beanInfo
protected String name
protected String upperName
protected TypeInfo type
protected MethodInfo getter
protected MethodInfo setter
| Constructor Detail |
|---|
public AbstractPropertyInfo()
public AbstractPropertyInfo(String name)
name - the name
public AbstractPropertyInfo(String name,
String upperName,
TypeInfo type,
MethodInfo getter,
MethodInfo setter)
name - the nameupperName - the upper case version of the nametype - the typegetter - the gettersetter - the setter
public AbstractPropertyInfo(String name,
String upperName,
TypeInfo type,
MethodInfo getter,
MethodInfo setter,
AnnotationValue[] annotations)
name - the nameupperName - the upper case version of the nametype - the typegetter - the gettersetter - the setterannotations - the annotations| Method Detail |
|---|
public BeanInfo getBeanInfo()
PropertyInfo
getBeanInfo in interface PropertyInfopublic String getName()
PropertyInfo
getName in interface PropertyInfopublic String getUpperName()
PropertyInfo
getUpperName in interface PropertyInfopublic TypeInfo getType()
PropertyInfo
getType in interface PropertyInfopublic void setType(TypeInfo type)
public MethodInfo getGetter()
PropertyInfo
getGetter in interface PropertyInfopublic void setGetter(MethodInfo getter)
PropertyInfo
setGetter in interface PropertyInfogetter - the getterpublic MethodInfo getSetter()
PropertyInfo
getSetter in interface PropertyInfopublic void setSetter(MethodInfo setter)
PropertyInfo
setSetter in interface PropertyInfosetter - the setter
public Object get(Object bean)
throws Throwable
PropertyInfo
get in interface PropertyInfobean - the bean
Throwable - for any error
public void set(Object bean,
Object value)
throws Throwable
PropertyInfo
set in interface PropertyInfobean - the beanvalue - the property value
Throwable - for any errorpublic boolean equals(Object object)
equals in class Objectpublic void toString(org.jboss.util.JBossStringBuilder buffer)
toString in class org.jboss.util.JBossObjectpublic void toShortString(org.jboss.util.JBossStringBuilder buffer)
toShortString in interface org.jboss.util.JBossInterfacetoShortString in class org.jboss.util.JBossObjectpublic int getHashCode()
getHashCode in class org.jboss.util.JBossObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||