org.jboss.javabean.plugins.jaxb
Class JavaBean

java.lang.Object
  extended by org.jboss.xb.spi.BeanAdapter
      extended by org.jboss.javabean.plugins.jaxb.JavaBean
Direct Known Subclasses:
JavaBean10, JavaBean20

public class JavaBean
extends BeanAdapter

JavaBean.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Constructor Summary
JavaBean(BeanAdapterFactory beanAdapterFactory)
           
 
Method Summary
 Object get(org.jboss.beans.info.spi.PropertyInfo propertyInfo)
          Get a property
 String getClassName()
           
 Constructor getConstructor()
           
protected  Object[] getParams(List<? extends AbstractParameter> parameters, org.jboss.reflect.spi.TypeInfo[] paramTypes)
          Get parameter values.
 Property[] getProperties()
           
protected  String[] getSignature(List<? extends AbstractParameter> parameters)
          Get parameter types.
 Object getValue()
          Get the value
 void set(org.jboss.beans.info.spi.PropertyInfo propertyInfo, Object child)
          Set a property
 void setClassName(String className)
           
 void setConstructor(Constructor constructor)
           
 void setProperties(Property[] properties)
           
 
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

JavaBean

public JavaBean(BeanAdapterFactory beanAdapterFactory)
Method Detail

getClassName

public String getClassName()

setClassName

public void setClassName(String className)

getConstructor

public Constructor getConstructor()

setConstructor

public void setConstructor(Constructor constructor)

getProperties

public Property[] getProperties()

setProperties

public void setProperties(Property[] properties)

getValue

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

Specified by:
getValue in class BeanAdapter
Returns:
the value

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

getSignature

protected String[] getSignature(List<? extends AbstractParameter> parameters)
Get parameter types.

Parameters:
parameters - the parameters
Returns:
parameter types

getParams

protected Object[] getParams(List<? extends AbstractParameter> parameters,
                             org.jboss.reflect.spi.TypeInfo[] paramTypes)
Get parameter values.

Parameters:
parameters - the parameters
paramTypes - the types
Returns:
parameter values


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