KickJava   Java API By Example, From Geeks To Geeks.

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


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

4 package org.oddjob.designer.elements;
5
6
7
8 /**
9  * The value type is most commonly used in varables
10  * and lists. It can be used like this.
11  * <p>
12  * 1. To define a value with some nested text.
13  * <pre>
14  * &lt;value&gt;Some Text&lt;/value&gt;
15  * </pre>
16  * 2. To define a value with a value attribute.
17  * <pre>
18  * &lt;value value="Some Text"/&gt;
19  * </pre>
20  *
21  * This class will read in all the above but when returning
22  * the XML it will always inline (1) if the text contains a \n
23  * and as a value attribute (2) if it doesn't.
24  */

25 public class ValueDE extends MultiLineBaseDE {
26     
27     
28     /* (non-Javadoc)
29      * @see org.oddjob.designer.model.DesignElement#attribute()
30      */

31     public String JavaDoc attribute() {
32         return null;
33     }
34
35 }
36
Popular Tags