org.jboss.xb.spi
Class BeanAdapter

java.lang.Object
  extended by org.jboss.xb.spi.BeanAdapter
Direct Known Subclasses:
AbstractBeanAdapter

public abstract class BeanAdapter
extends Object

BeanAdapter.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Constructor Summary
BeanAdapter(BeanAdapterFactory beanAdapterFactory)
          Create a new BeanAdapter.
 
Method Summary
abstract  Object get(org.jboss.beans.info.spi.PropertyInfo propertyInfo)
          Get a property
 String getAvailable()
          Get the available properties as a string
 AbstractPropertyHandler getPropertyHandler(QName qName)
          Get the property handler for an element name
abstract  Object getValue()
          Get the value
 AbstractPropertyHandler getWildcardHandler()
          Get the wildcardHandler.
abstract  void set(org.jboss.beans.info.spi.PropertyInfo propertyInfo, Object child)
          Set a property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanAdapter

public BeanAdapter(BeanAdapterFactory beanAdapterFactory)
Create a new BeanAdapter.

Parameters:
beanAdapterFactory - the bean adapter factory
Throws:
IllegalArgumentException - for a null bean adapter factory
Method Detail

getPropertyHandler

public AbstractPropertyHandler getPropertyHandler(QName qName)
Get the property handler for an element name

Parameters:
qName - the element name
Returns:
the property handler

getWildcardHandler

public AbstractPropertyHandler getWildcardHandler()
Get the wildcardHandler.

Returns:
the wildcardHandler.

getAvailable

public String getAvailable()
Get the available properties as a string

Returns:
the available properties

get

public abstract Object get(org.jboss.beans.info.spi.PropertyInfo propertyInfo)
                    throws Throwable
Get a property

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

set

public abstract void set(org.jboss.beans.info.spi.PropertyInfo propertyInfo,
                         Object child)
                  throws Throwable
Set a property

Parameters:
propertyInfo - the property info
child - the value
Throws:
Throwable - for any error

getValue

public abstract Object getValue()
Get the value

Returns:
the value


Copyright © 2007 JBoss Inc.. All Rights Reserved.