com.redspr.beanldom.info
Class LBeanInfo

java.lang.Object
  |
  +--com.redspr.beanldom.info.BaseInfo
        |
        +--com.redspr.beanldom.info.LBeanInfo
All Implemented Interfaces:
ClassInfo

public final class LBeanInfo
extends BaseInfo

Determines xml attribute and elements for a Java Bean.

Author:
Sam Hough

Field Summary
 
Fields inherited from interface com.redspr.beanldom.ClassInfo
ARRAY, BEAN, VALUE
 
Constructor Summary
LBeanInfo(Class clazz)
           
 
Method Summary
 PropertyInfo[] getAttributes()
          list of attributes for this class.
 PropertyInfo[] getElements()
          list of elements for this class.
 int getType()
          How should the implementation handle objects of this class
 
Methods inherited from class com.redspr.beanldom.info.BaseInfo
getArray, getValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LBeanInfo

public LBeanInfo(Class clazz)
Method Detail

getType

public int getType()
Description copied from interface: ClassInfo
How should the implementation handle objects of this class


getAttributes

public PropertyInfo[] getAttributes()
Description copied from interface: ClassInfo
list of attributes for this class. Return a zero length array if none.

Specified by:
getAttributes in interface ClassInfo
Overrides:
getAttributes in class BaseInfo

getElements

public PropertyInfo[] getElements()
Description copied from interface: ClassInfo
list of elements for this class. Return a zero length array if none. NB one entry even for an array.

Specified by:
getElements in interface ClassInfo
Overrides:
getElements in class BaseInfo