org.oddjob.designer.model
Interface DesignElement

All Known Subinterfaces:
DesignAttribute
All Known Implementing Classes:
DesignElementAttribute, DesignElementType, SimpleAttribute

public interface DesignElement

A DesignElement is an element of a component which generally means it's an element in the uderlying XML.


Method Summary
 void clear()
          Clear the DesignElement of Data.
 DesignDefinition detail()
          The method is overridden by sub classes which have a detailed definition for their configuration.
 boolean hasDetail()
          Has the the element got detail, i.e more than just an attribute.
 

Method Detail

hasDetail

public boolean hasDetail()
Has the the element got detail, i.e more than just an attribute.

Returns:
true if it has, false otherwise.

detail

public DesignDefinition 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.

clear

public void clear()
Clear the DesignElement of Data. This method will be called when a selection changes.