org.jboss.beans.info.plugins
Class FieldPropertyInfo

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.reflect.plugins.AbstractAnnotatedInfo
          extended by org.jboss.reflect.plugins.AnnotationHolder
              extended by org.jboss.beans.info.plugins.AbstractPropertyInfo
                  extended by org.jboss.beans.info.plugins.FieldPropertyInfo
All Implemented Interfaces:
Serializable, Cloneable, PropertyInfo, AnnotatedInfo, org.jboss.util.JBossInterface
Direct Known Subclasses:
GetterAndFieldPropertyInfo, SetterAndFieldPropertyInfo

public class FieldPropertyInfo
extends AbstractPropertyInfo

Field property info.

Author:
Ales Justin
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.reflect.plugins.AnnotationHolder
annotationMap, annotationsArray
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
  FieldPropertyInfo(FieldInfo field)
           
protected FieldPropertyInfo(FieldInfo field, boolean setAnnotations)
           
 
Method Summary
 boolean equals(Object object)
           
 Object get(Object bean)
          Get the property value
 FieldInfo getFieldInfo()
          Get the field info in case impl uses field to handle property ops.
 MethodInfo getGetter()
          Get the getter
 MethodInfo getSetter()
          Get the setter
 boolean isReadable()
          Is property readable.
 boolean isWritable()
          Is property writable.
 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 toString(org.jboss.util.JBossStringBuilder buffer)
           
 
Methods inherited from class org.jboss.beans.info.plugins.AbstractPropertyInfo
getBeanInfo, getHashCode, getName, getType, getUpperName, init, setType, toShortString
 
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
 

Constructor Detail

FieldPropertyInfo

public FieldPropertyInfo(FieldInfo field)

FieldPropertyInfo

protected FieldPropertyInfo(FieldInfo field,
                            boolean setAnnotations)
Method Detail

getGetter

public MethodInfo getGetter()
Description copied from interface: PropertyInfo
Get the getter

Returns:
the getter

setGetter

public void setGetter(MethodInfo getter)
Description copied from interface: PropertyInfo
Set the getter

Parameters:
getter - the getter

getSetter

public MethodInfo getSetter()
Description copied from interface: PropertyInfo
Get the setter

Returns:
the setter

setSetter

public void setSetter(MethodInfo setter)
Description copied from interface: PropertyInfo
Set the setter

Parameters:
setter - the setter

isReadable

public boolean isReadable()
Description copied from interface: PropertyInfo
Is property readable.

Returns:
true if the property is readable

isWritable

public boolean isWritable()
Description copied from interface: PropertyInfo
Is property writable.

Returns:
true if the property is writable

get

public Object get(Object bean)
           throws Throwable
Description copied from interface: PropertyInfo
Get the property value

Parameters:
bean - the bean
Returns:
the property value
Throws:
Throwable - for any error

set

public void set(Object bean,
                Object value)
         throws Throwable
Description copied from interface: PropertyInfo
Set the property value

Parameters:
bean - the bean
value - the property value
Throws:
Throwable - for any error

getFieldInfo

public FieldInfo getFieldInfo()
Description copied from interface: PropertyInfo
Get the field info in case impl uses field to handle property ops.

Specified by:
getFieldInfo in interface PropertyInfo
Overrides:
getFieldInfo in class AbstractPropertyInfo
Returns:
the field info or null if no such info available

equals

public boolean equals(Object object)
Overrides:
equals in class AbstractPropertyInfo

toString

public void toString(org.jboss.util.JBossStringBuilder buffer)
Overrides:
toString in class AbstractPropertyInfo


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.