JBoss XML Binding 2.0.3.GA-redhat-2

org.jboss.xb.spi
Class DefaultBeanAdapter

java.lang.Object
  extended by org.jboss.xb.spi.BeanAdapter
      extended by org.jboss.xb.spi.DefaultBeanAdapter

public class DefaultBeanAdapter
extends BeanAdapter

DefaultBeanAdapter.

Version:
$Revision: 1.1 $
Author:
Adrian Brock, Alexey Loubyansky

Constructor Summary
DefaultBeanAdapter(BeanAdapterFactory beanAdapterFactory, org.jboss.beans.info.spi.BeanInfo beanInfo, org.jboss.reflect.spi.MethodInfo factory)
          Create a new bean adapter
 
Method Summary
 Object get(org.jboss.beans.info.spi.PropertyInfo propertyInfo)
          Get a property
 org.jboss.beans.info.spi.BeanInfo getBeanInfo()
          Get the bean info
 org.jboss.reflect.spi.MethodInfo getFactory()
          Get the factory
 Object getValue()
          Get the value
 void set(org.jboss.beans.info.spi.PropertyInfo propertyInfo, Object child)
          Set a property
 
Methods inherited from class org.jboss.xb.spi.BeanAdapter
getAvailable, getBeanAdapterFactory, getPropertyHandler, getWildcardHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBeanAdapter

public DefaultBeanAdapter(BeanAdapterFactory beanAdapterFactory,
                          org.jboss.beans.info.spi.BeanInfo beanInfo,
                          org.jboss.reflect.spi.MethodInfo factory)
Create a new bean adapter

Parameters:
beanAdapterFactory - the bean adapter factory
beanInfo - the bean info
factory - the factory
Throws:
IllegalArgumentException - for null bean adapter factory or bean info
Method Detail

getBeanInfo

public org.jboss.beans.info.spi.BeanInfo getBeanInfo()
Get the bean info

Returns:
the bean info

getFactory

public org.jboss.reflect.spi.MethodInfo getFactory()
Get the factory

Returns:
the factgory

get

public Object get(org.jboss.beans.info.spi.PropertyInfo propertyInfo)
           throws Throwable
Description copied from class: BeanAdapter
Get a property

Specified by:
get in class BeanAdapter
Parameters:
propertyInfo - the property info
Returns:
the property value
Throws:
Throwable - for any error

set

public void set(org.jboss.beans.info.spi.PropertyInfo propertyInfo,
                Object child)
         throws Throwable
Description copied from class: BeanAdapter
Set a property

Specified by:
set in class BeanAdapter
Parameters:
propertyInfo - the property info
child - the value
Throws:
Throwable - for any error

getValue

public Object getValue()
Description copied from class: BeanAdapter
Get the value

Specified by:
getValue in class BeanAdapter
Returns:
the value

JBoss XML Binding 2.0.3.GA-redhat-2

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.