KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > oddjob > designer > elements > MultiLineTextDE


1 /*
2  * (c) Rob Gordon 2005
3  */

4 package org.oddjob.designer.elements;
5
6 /**
7  * The type is used to define an attribute of some type which can contain
8  * multiline text. The incoming XML could be of the form.
9  * <p>
10  * 1. The text attribute of a type.
11  * <pre>
12  * &lt;sometype text="Some text"/&gt;
13  * </pre>
14  * 2. inlined like this.
15  * <pre>
16  * &lt;sometype&gt;
17  * &lt;text value="Some text"/&gt;
18  * &lt;/sometype&gt;
19  * </pre>
20  * 3. Or like this.
21  * <pre>
22  * &lt;sometype&gt;
23  * &lt;text&gt;Some text"&lt;/text&gt;
24  * &lt;/sometype&gt;
25  * </pre>
26  *
27  * This class will read in all the above but when returning
28  * the XML it will always inline if the text contains a \n
29  * and will alway return 1 instead of 2.
30  *
31  */

32 public class MultiLineTextDE extends MultiLineBaseDE {
33
34     public String JavaDoc getValue() {
35         return null;
36     }
37 }
38
Popular Tags