org.oddjob.designer.model
Interface DesignAttribute

All Superinterfaces:
DesignElement
All Known Implementing Classes:
DesignElementAttribute, SimpleAttribute

public interface DesignAttribute
extends DesignElement

A DesignAttribute can provide attribute information in a DesignDefintion. Simple attributes will only ever represent attribute information - these provide a null detail in the inherited DesignElement detail method. Those that do not provide a null detail can also provide the definition as inline elements instead of an attribute.

Author:
Rob Gordon.

Method Summary
 java.lang.String attribute()
          Get the attribute text.
 void attribute(java.lang.String attribute)
          Set the attribute text.
 
Methods inherited from interface org.oddjob.designer.model.DesignElement
clear, detail, hasDetail
 

Method Detail

attribute

public java.lang.String attribute()
Get the attribute text.

Returns:
The attribute text. Can be null.

attribute

public void attribute(java.lang.String attribute)
Set the attribute text.

Parameters:
attribute - The attribute. May be null.