org.oddjob.arooa.deploy
Class ClassMappingsList

java.lang.Object
  extended by org.oddjob.arooa.deploy.ClassMappingsList
All Implemented Interfaces:
ElementMappings

public class ClassMappingsList
extends Object
implements ElementMappings

Amalgamate ElementMappings. Used by ListDescriptor

Author:
rob

Constructor Summary
ClassMappingsList()
           
 
Method Summary
 void addMappings(ElementMappings mappings)
           
 DesignFactory designFor(ArooaElement element, InstantiationContext parentContext)
          Provide a mapping from an element to the name of a java class that is a DesignFactory for the element.
 ArooaElement[] elementsFor(InstantiationContext propertyContext)
          Provide a list of all elements in this mapping that support the given context.
 MappingsContents getBeanDoc(ArooaType arooaType)
          Get the BeanDoc for this mapping.
 ArooaClass mappingFor(ArooaElement element, InstantiationContext parentContext)
          Provide a mapping from an element to the name of a java class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassMappingsList

public ClassMappingsList()
Method Detail

addMappings

public void addMappings(ElementMappings mappings)

mappingFor

public ArooaClass mappingFor(ArooaElement element,
                             InstantiationContext parentContext)
Description copied from interface: ElementMappings
Provide a mapping from an element to the name of a java class.

Specified by:
mappingFor in interface ElementMappings
Parameters:
element - The element.
parentContext - The InstantiationContext.
Returns:
The ArooaClass. Null if no mappings exists.

designFor

public DesignFactory designFor(ArooaElement element,
                               InstantiationContext parentContext)
Description copied from interface: ElementMappings
Provide a mapping from an element to the name of a java class that is a DesignFactory for the element.

Specified by:
designFor in interface ElementMappings
Parameters:
element - The element.
parentContext - The InstantiationContext.
Returns:
The DesignFactory. May be null.

elementsFor

public ArooaElement[] elementsFor(InstantiationContext propertyContext)
Description copied from interface: ElementMappings
Provide a list of all elements in this mapping that support the given context.

Specified by:
elementsFor in interface ElementMappings
Returns:
The elements. May be null.

getBeanDoc

public MappingsContents getBeanDoc(ArooaType arooaType)
Description copied from interface: ElementMappings
Get the BeanDoc for this mapping.

Specified by:
getBeanDoc in interface ElementMappings
Parameters:
arooaType - The type of Mapping.
Returns:
The BeanDoc. May be null.