org.jboss.beans.info.spi
Interface PropertyInfo

All Superinterfaces:
AnnotatedInfo, Cloneable, org.jboss.util.JBossInterface
All Known Implementing Classes:
AbstractPropertyInfo, DefaultPropertyInfo, FieldPropertyInfo, GetterAndFieldPropertyInfo, NestedPropertyInfo, SetterAndFieldPropertyInfo

public interface PropertyInfo
extends AnnotatedInfo

Description of a property.

Version:
$Revision: 71064 $
Author:
Adrian Brock

Method Summary
 Object get(Object bean)
          Get the property value
 BeanInfo getBeanInfo()
          Get the BeanInfo
 FieldInfo getFieldInfo()
          Get the field info in case impl uses field to handle property ops.
 MethodInfo getGetter()
          Get the getter
 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
 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
 
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, toShortString
 

Method Detail

getBeanInfo

BeanInfo getBeanInfo()
Get the BeanInfo

Returns:
the bean info

getName

String getName()
Get the property name

Returns:
the name

getUpperName

String getUpperName()
Get the uppercase version of the property name

Returns:
the name

getType

TypeInfo getType()
Get the type

Returns:
the type

getGetter

MethodInfo getGetter()
Get the getter

Returns:
the getter

setGetter

void setGetter(MethodInfo getter)
Set the getter

Parameters:
getter - the getter

getSetter

MethodInfo getSetter()
Get the setter

Returns:
the setter

setSetter

void setSetter(MethodInfo setter)
Set the setter

Parameters:
setter - the setter

isReadable

boolean isReadable()
Is property readable.

Returns:
true if the property is readable

isWritable

boolean isWritable()
Is property writable.

Returns:
true if the property is writable

get

Object get(Object bean)
           throws Throwable
Get the property value

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

set

void set(Object bean,
         Object value)
         throws Throwable
Set the property value

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

getFieldInfo

FieldInfo getFieldInfo()
Get the field info in case impl uses field to handle property ops.

Returns:
the field info or null if no such info available


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