2009/05/20 - Apache Shale has been retired.
For more information, please explore the Attic.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.apache.shale.clay.parser.builder;
22
23 import org.apache.shale.clay.parser.Node;
24
25
26 /***
27 * <p>
28 * This is a {@link Builder} that will create a void {@link ElementBean}.
29 * The element bean will be an empty placeholder. The HTML element will
30 * contain nothing.</p>
31 */
32 public class VoidBuilder extends Builder {
33
34 /***
35 * <p>
36 * Returns the <code>jsfid</code> for the target {@link ElementBean}.
37 * </p>
38 *
39 * @param node markup
40 * @return jsfid
41 */
42 protected String getJsfid(Node node) {
43 return "void";
44 }
45
46 /***
47 * <p>
48 * Returns a JSF component type of <code>javax.faces.HtmlOutputText</code>.
49 * </p>
50 *
51 * @param node markup
52 * @return component type
53 */
54 protected String getComponentType(Node node) {
55 return "javax.faces.HtmlOutputText";
56 }
57
58
59 }