org.oddjob.arooa.design
Interface DesignInstance

All Known Subinterfaces:
DesignComponent, DynamicDesignInstance, ParsableDesignInstance
All Known Implementing Classes:
BaseDC, DesignComponentBase, DesignValueBase, EmptyDC, MappedDesignProperty.InstanceWrapper, ParentSchedule, UnknownComponent, UnknownInstance

public interface DesignInstance

A Design for an component or value instance in a configuration.

Author:
rob

Method Summary
 Form detail()
          The method is overridden by sub classes which have a detailed definition for their configuration.
 ArooaElement element()
          Required for producing the XML.
 ArooaContext getArooaContext()
          Get the ArooaContext associated with this instance.
 

Method Detail

element

ArooaElement element()
Required for producing the XML.

Returns:
The element.

detail

Form detail()
The method is overridden by sub classes which have a detailed definition for their configuration. For DesignElement which hasn't got detail this method should never be called, and as such it should throw a RuntimeException if it is.

Returns:
The DesignDefinition for their configuration. Never null.

getArooaContext

ArooaContext getArooaContext()
Get the ArooaContext associated with this instance.

Returns:
The context. Never null.