org.oddjob.arooa.design
Class MappedDesignProperty.InstanceWrapper

java.lang.Object
  extended by org.oddjob.arooa.design.MappedDesignProperty.InstanceWrapper
All Implemented Interfaces:
DesignInstance
Enclosing class:
MappedDesignProperty

public static class MappedDesignProperty.InstanceWrapper
extends Object
implements DesignInstance


Constructor Summary
MappedDesignProperty.InstanceWrapper(DesignInstance wrapping, String key)
           
 
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.
 DesignInstance getWrapping()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MappedDesignProperty.InstanceWrapper

public MappedDesignProperty.InstanceWrapper(DesignInstance wrapping,
                                            String key)
Method Detail

detail

public Form detail()
Description copied from interface: DesignInstance
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.

Specified by:
detail in interface DesignInstance
Returns:
The DesignDefinition for their configuration. Never null.

element

public ArooaElement element()
Description copied from interface: DesignInstance
Required for producing the XML.

Specified by:
element in interface DesignInstance
Returns:
The element.

getArooaContext

public ArooaContext getArooaContext()
Description copied from interface: DesignInstance
Get the ArooaContext associated with this instance.

Specified by:
getArooaContext in interface DesignInstance
Returns:
The context. Never null.

getWrapping

public DesignInstance getWrapping()

toString

public String toString()
Overrides:
toString in class Object