org.oddjob.designer.elements
Class ValueDE

java.lang.Object
  extended byjava.util.Observable
      extended byorg.oddjob.designer.model.DesignAdult
          extended byorg.oddjob.designer.model.DesignElementType
              extended byorg.oddjob.designer.model.DesignElementAttribute
                  extended byorg.oddjob.designer.elements.MultiLineBaseDE
                      extended byorg.oddjob.designer.elements.ValueDE
All Implemented Interfaces:
DesignAttribute, DesignElement

public class ValueDE
extends MultiLineBaseDE

The value type is most commonly used in varables and lists. It can be used like this.

1. To define a value with some nested text.

 <value>Some Text</value>
 
2. To define a value with a value attribute.
 <value value="Some Text"/>
 
This class will read in all the above but when returning the XML it will always inline (1) if the text contains a \n and as a value attribute (2) if it doesn't.


Field Summary
 
Fields inherited from class org.oddjob.designer.model.DesignElementType
detailObserver
 
Fields inherited from class org.oddjob.designer.model.DesignAdult
parent
 
Constructor Summary
ValueDE()
           
 
Method Summary
 java.lang.String attribute()
          Get the attribute text.
 
Methods inherited from class org.oddjob.designer.elements.MultiLineBaseDE
addText, attribute, clear, detail, getValue, hasDetail, setValue, text
 
Methods inherited from class org.oddjob.designer.model.DesignElementType
getName, setName, type, type
 
Methods inherited from class org.oddjob.designer.model.DesignAdult
addChild, childCount, childElements, children, children, clearChildren, createType, insertChild, parent, removeChild, supportedTypes, supportedTypes
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueDE

public ValueDE()
Method Detail

attribute

public java.lang.String attribute()
Description copied from interface: DesignAttribute
Get the attribute text.

Specified by:
attribute in interface DesignAttribute
Overrides:
attribute in class MultiLineBaseDE