org.oddjob.arooa.deploy
Class BeanDescriptorHelper

java.lang.Object
  extended by org.oddjob.arooa.deploy.BeanDescriptorHelper
All Implemented Interfaces:
ArooaBeanDescriptor

public class BeanDescriptorHelper
extends Object
implements ArooaBeanDescriptor


Constructor Summary
BeanDescriptorHelper(ArooaBeanDescriptor beanDescriptor)
           
 
Method Summary
 ArooaAnnotations getAnnotations()
          Provide annotation information about methods.
 ArooaType getArooaType(String property)
           
 String getComponentProperty()
          The name of the component property.
 ConfiguredHow getConfiguredHow(String property)
          How is a property configured.
 String getFlavour(String property)
          Get the property flavour.
 ParsingInterceptor getParsingInterceptor()
          Get The ParsingInterceptor.
 String getTextProperty()
          The name of the property which can be set using the text of an xml element.
 boolean isAttribute(String property)
           
 boolean isAuto(String property)
          Indicates that the property should be set automatically from the services.
 boolean isComponent(String property)
           
 boolean isElement(String property)
           
 boolean isHidden(String property)
           
 boolean isText(String property)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanDescriptorHelper

public BeanDescriptorHelper(ArooaBeanDescriptor beanDescriptor)
Method Detail

getParsingInterceptor

public ParsingInterceptor getParsingInterceptor()
Description copied from interface: ArooaBeanDescriptor
Get The ParsingInterceptor.

Specified by:
getParsingInterceptor in interface ArooaBeanDescriptor
Returns:

getConfiguredHow

public ConfiguredHow getConfiguredHow(String property)
Description copied from interface: ArooaBeanDescriptor
How is a property configured.

Specified by:
getConfiguredHow in interface ArooaBeanDescriptor
Parameters:
property - The property name.
Returns:
How the property is configured. Never null.

getTextProperty

public String getTextProperty()
Description copied from interface: ArooaBeanDescriptor
The name of the property which can be set using the text of an xml element. At most only one property can be set using the text of an element.

The actual property name is required because unlike components and values, the property name can not be derrived from an element name.

Specified by:
getTextProperty in interface ArooaBeanDescriptor
Returns:
The name of the property to be set using the text of the element. Will be null if the class doesn't support setting element text.

getComponentProperty

public String getComponentProperty()
The name of the component property.

Specified by:
getComponentProperty in interface ArooaBeanDescriptor
Returns:

isAttribute

public boolean isAttribute(String property)

isElement

public boolean isElement(String property)

isComponent

public boolean isComponent(String property)

getArooaType

public ArooaType getArooaType(String property)

isText

public boolean isText(String property)

isHidden

public boolean isHidden(String property)

isAuto

public boolean isAuto(String property)
Description copied from interface: ArooaBeanDescriptor
Indicates that the property should be set automatically from the services.

Specified by:
isAuto in interface ArooaBeanDescriptor
Parameters:
property - The property name.
Returns:
true if the property can be set automatically, false otherwise.

getFlavour

public String getFlavour(String property)
Description copied from interface: ArooaBeanDescriptor
Get the property flavour. This is for services.

Specified by:
getFlavour in interface ArooaBeanDescriptor
Parameters:
property - The property name.
Returns:
The flavour. May be null.

getAnnotations

public ArooaAnnotations getAnnotations()
Description copied from interface: ArooaBeanDescriptor
Provide annotation information about methods. Used to allow life cycle methods, and any other custom annotation methods to defined separately from the class.

Specified by:
getAnnotations in interface ArooaBeanDescriptor
Returns:
The annotations.