org.apache.commons.betwixt
Class XMLIntrospector.DynaClassBeanType

java.lang.Object
  extended byorg.apache.commons.betwixt.XMLIntrospector.BeanType
      extended byorg.apache.commons.betwixt.XMLIntrospector.DynaClassBeanType
Enclosing class:
XMLIntrospector

private class XMLIntrospector.DynaClassBeanType
extends XMLIntrospector.BeanType

Implementation for DynaClasses


Field Summary
private  org.apache.commons.beanutils.DynaClass dynaClass
          BeanType for this DynaClass
private  BeanProperty[] properties
          Properties extracted in constuctor
 
Constructor Summary
XMLIntrospector.DynaClassBeanType(org.apache.commons.beanutils.DynaClass dynaClass)
          Constructs a BeanType for a DynaClass
 
Method Summary
 java.lang.String getBeanName()
          Gets the name for this bean type
 java.lang.Class getElementType()
          Gets the type to be used by the associated element
 BeanProperty[] getProperties()
          Gets the properties associated with this bean.
 boolean isLoopType()
          Is this type a loop?
 boolean isMapType()
          is this type a map?
 boolean isPrimitiveType()
          Is this type a primitive?
 java.lang.String toString()
          Create string representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dynaClass

private org.apache.commons.beanutils.DynaClass dynaClass
BeanType for this DynaClass


properties

private BeanProperty[] properties
Properties extracted in constuctor

Constructor Detail

XMLIntrospector.DynaClassBeanType

public XMLIntrospector.DynaClassBeanType(org.apache.commons.beanutils.DynaClass dynaClass)
Constructs a BeanType for a DynaClass

Parameters:
dynaClass - not null
Method Detail

getBeanName

public java.lang.String getBeanName()
Description copied from class: XMLIntrospector.BeanType
Gets the name for this bean type

Specified by:
getBeanName in class XMLIntrospector.BeanType
Returns:
the bean type name, not null
See Also:
BeanType#getBeanName

getElementType

public java.lang.Class getElementType()
Description copied from class: XMLIntrospector.BeanType
Gets the type to be used by the associated element

Specified by:
getElementType in class XMLIntrospector.BeanType
Returns:
a Class that is the type not null
See Also:
BeanType#getElementType

isPrimitiveType

public boolean isPrimitiveType()
Description copied from class: XMLIntrospector.BeanType
Is this type a primitive?

Specified by:
isPrimitiveType in class XMLIntrospector.BeanType
Returns:
true if this type should be treated by betwixt as a primitive
See Also:
BeanType#isPrimitiveType

isMapType

public boolean isMapType()
Description copied from class: XMLIntrospector.BeanType
is this type a map?

Specified by:
isMapType in class XMLIntrospector.BeanType
Returns:
true this should be treated as a map.
See Also:
BeanType#isMapType

isLoopType

public boolean isLoopType()
Description copied from class: XMLIntrospector.BeanType
Is this type a loop?

Specified by:
isLoopType in class XMLIntrospector.BeanType
Returns:
true if this should be treated as a loop
See Also:
BeanType#isLoopType

getProperties

public BeanProperty[] getProperties()
Description copied from class: XMLIntrospector.BeanType
Gets the properties associated with this bean.

Specified by:
getProperties in class XMLIntrospector.BeanType
Returns:
the BeanProperty's, not null
See Also:
BeanType#getProperties

toString

public java.lang.String toString()
Create string representation

Returns:
something useful for logging