org.oddjob.arooa
Interface ElementMappings

All Known Implementing Classes:
BaseElementMappings, ClassMappingsList, LinkedClassMapping, MappingsSwitch

public interface ElementMappings

Encapsulate the relationship between a set of XML elements and their Java Object counterparts.

Author:
rob

Method Summary
 DesignFactory designFor(ArooaElement element, InstantiationContext context)
          Provide a mapping from an element to the name of a java class that is a DesignFactory for the element.
 ArooaElement[] elementsFor(InstantiationContext context)
          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 context)
          Provide a mapping from an element to the name of a java class.
 

Method Detail

mappingFor

ArooaClass mappingFor(ArooaElement element,
                      InstantiationContext context)
Provide a mapping from an element to the name of a java class.

Parameters:
element - The element.
context - The InstantiationContext.
Returns:
The ArooaClass. Null if no mappings exists.

designFor

DesignFactory designFor(ArooaElement element,
                        InstantiationContext context)
Provide a mapping from an element to the name of a java class that is a DesignFactory for the element.

Parameters:
element - The element.
context - The InstantiationContext.
Returns:
The DesignFactory. May be null.

elementsFor

ArooaElement[] elementsFor(InstantiationContext context)
Provide a list of all elements in this mapping that support the given context.

Returns:
The elements. May be null.

getBeanDoc

MappingsContents getBeanDoc(ArooaType arooaType)
Get the BeanDoc for this mapping.

Parameters:
arooaType - The type of Mapping.
Returns:
The BeanDoc. May be null.