org.oddjob.arooa.design.etc
Class UnknownInstance

java.lang.Object
  extended by org.oddjob.arooa.design.etc.UnknownInstance
All Implemented Interfaces:
DesignInstance, Unknown
Direct Known Subclasses:
UnknownComponent

public class UnknownInstance
extends Object
implements DesignInstance, Unknown


Constructor Summary
UnknownInstance(ArooaElement element, ArooaContext parentContext)
           
 
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.
 String getXml()
           
 void setXml(String xml)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnknownInstance

public UnknownInstance(ArooaElement element,
                       ArooaContext parentContext)
Method Detail

element

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

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

toString

public String toString()
Overrides:
toString in class Object

setXml

public void setXml(String xml)
Specified by:
setXml in interface Unknown

getXml

public String getXml()
Specified by:
getXml in interface Unknown

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.

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.