org.oddjob.arooa.deploy
Class ListDescriptor

java.lang.Object
  extended by org.oddjob.arooa.deploy.ListDescriptor
All Implemented Interfaces:
ArooaDescriptor, BeanDescriptorProvider

public class ListDescriptor
extends Object
implements ArooaDescriptor

A collection of descriptors.

See Also:
ListDescriptorBean
Author:
rob

Constructor Summary
ListDescriptor()
           
ListDescriptor(ArooaDescriptor[] descriptors)
           
 
Method Summary
 void addDescriptor(ArooaDescriptor descriptor)
           
 ArooaBeanDescriptor getBeanDescriptor(ArooaClass classIdentifier, PropertyAccessor accessor)
           
 ClassResolver getClassResolver()
          Provide a ClassResolver.
 ConversionProvider getConvertletProvider()
          Provide type conversions.
 ElementMappings getElementMappings()
          Provide element to class name mappings for components.
 String getPrefixFor(URI namespace)
          Provide the default prefix for a URI.
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListDescriptor

public ListDescriptor()

ListDescriptor

public ListDescriptor(ArooaDescriptor[] descriptors)
Method Detail

addDescriptor

public void addDescriptor(ArooaDescriptor descriptor)

size

public int size()

getConvertletProvider

public ConversionProvider getConvertletProvider()
Description copied from interface: ArooaDescriptor
Provide type conversions.

Specified by:
getConvertletProvider in interface ArooaDescriptor
Returns:
A ConvertletProvider. May be null.

getBeanDescriptor

public ArooaBeanDescriptor getBeanDescriptor(ArooaClass classIdentifier,
                                             PropertyAccessor accessor)
Specified by:
getBeanDescriptor in interface BeanDescriptorProvider
Parameters:
classIdentifier - The class.
accessor - Used to access the bean properties for default types.
Returns:
The bean descriptor, null if this provider isn't capable of providing it.

getElementMappings

public ElementMappings getElementMappings()
Description copied from interface: ArooaDescriptor
Provide element to class name mappings for components.

Specified by:
getElementMappings in interface ArooaDescriptor
Returns:
ElementMappings. Must not be null.

getPrefixFor

public String getPrefixFor(URI namespace)
Description copied from interface: ArooaDescriptor
Provide the default prefix for a URI. This is required when building an ArooaConfiguration using a ArooaDesigner so that the correct XML namespace mappings can defined.

Specified by:
getPrefixFor in interface ArooaDescriptor
Parameters:
namespace - The namespace.
Returns:
The prefix.

getClassResolver

public ClassResolver getClassResolver()
Description copied from interface: ArooaDescriptor
Provide a ClassResolver. The resolver will typically be able to resolve classes returned from the ElementMappings provided by this descriptor.

Specified by:
getClassResolver in interface ArooaDescriptor
Returns:
A ClassResolver. Must not be null.