org.oddjob.designer.elements
Class MultiLineTextDE
java.lang.Object
java.util.Observable
org.oddjob.designer.model.DesignAdult
org.oddjob.designer.model.DesignElementType
org.oddjob.designer.model.DesignElementAttribute
org.oddjob.designer.elements.MultiLineBaseDE
org.oddjob.designer.elements.MultiLineTextDE
- All Implemented Interfaces:
- DesignAttribute, DesignElement
- public class MultiLineTextDE
- extends MultiLineBaseDE
The type is used to define an attribute of some type which can contain
multiline text. The incoming XML could be of the form.
1. The text attribute of a type.
<sometype text="Some text"/>
2. inlined like this.
<sometype>
<text value="Some text"/>
</sometype>
3. Or like this.
<sometype>
<text>Some text"</text>
</sometype>
This class will read in all the above but when returning
the XML it will always inline if the text contains a \n
and will alway return 1 instead of 2.
|
Method Summary |
java.lang.String |
getValue()
|
| 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 |
MultiLineTextDE
public MultiLineTextDE()
getValue
public java.lang.String getValue()
- Overrides:
getValue in class MultiLineBaseDE