com.infoengine.soap.util
Class Bean

java.lang.Object
  extended bycom.infoengine.soap.util.Bean

public class Bean
extends Object

IMPORTANT: this class must remain independant of Info*Engine classes so that it can remain portable and be used by clients in non Info*Engine VMs


Field Summary
private  List attributes
           
private  Map attributesMap
           
private  Class beanClass
           
private  String className
           
private  String expanding
           
private  Bean parentBean
           
 
Constructor Summary
(package private) Bean(Bean parentBean, String className)
           
(package private) Bean(String className)
           
 
Method Summary
private  void _describe(BeanInfo binfo, Class c)
           
private  BeanAttribute addAttribute(BeanAttribute attr)
           
private  BeanAttribute addAttribute(String name, Class cls)
           
private  void describe(BeanInfo binfo, Class c)
           
(package private)  Bean expandedBeanClass(String beanClass)
           
private  BeanAttribute findAttribute(String attrName)
           
 Bean[] findNestedBeans()
           
(package private)  Bean[] findNestedBeans(List hierarchy)
           
 BeanAttribute getAttribute(String attrName)
           
 BeanAttribute[] getAttributes()
           
 Class getBeanClass()
           
 String getClassName()
           
private  void loadBean()
           
 String toString()
           
(package private)  String toString(String indent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

parentBean

private Bean parentBean

className

private String className

attributes

private List attributes

attributesMap

private Map attributesMap

beanClass

private Class beanClass

expanding

private String expanding
Constructor Detail

Bean

Bean(String className)
throws ClassNotFoundException,
       InstantiationException,
       IllegalAccessException,
       NotSerializableException,
       IntrospectionException

Bean

Bean(Bean parentBean,
     String className)
throws ClassNotFoundException,
       InstantiationException,
       IllegalAccessException,
       NotSerializableException,
       IntrospectionException
Method Detail

loadBean

private void loadBean()
               throws ClassNotFoundException,
                      InstantiationException,
                      IllegalAccessException,
                      NotSerializableException,
                      IntrospectionException
Throws:
ClassNotFoundException
InstantiationException
IllegalAccessException
NotSerializableException
IntrospectionException

expandedBeanClass

Bean expandedBeanClass(String beanClass)

findNestedBeans

Bean[] findNestedBeans(List hierarchy)

findNestedBeans

public Bean[] findNestedBeans()

findAttribute

private BeanAttribute findAttribute(String attrName)

getAttribute

public BeanAttribute getAttribute(String attrName)

addAttribute

private BeanAttribute addAttribute(BeanAttribute attr)

addAttribute

private BeanAttribute addAttribute(String name,
                                   Class cls)

getClassName

public String getClassName()

getBeanClass

public Class getBeanClass()

getAttributes

public BeanAttribute[] getAttributes()

describe

private void describe(BeanInfo binfo,
                      Class c)
               throws ClassNotFoundException,
                      InstantiationException,
                      IllegalAccessException,
                      NotSerializableException,
                      IntrospectionException
Throws:
ClassNotFoundException
InstantiationException
IllegalAccessException
NotSerializableException
IntrospectionException

_describe

private void _describe(BeanInfo binfo,
                       Class c)
                throws ClassNotFoundException,
                       InstantiationException,
                       IllegalAccessException,
                       NotSerializableException,
                       IntrospectionException
Throws:
ClassNotFoundException
InstantiationException
IllegalAccessException
NotSerializableException
IntrospectionException

toString

String toString(String indent)

toString

public String toString()