1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package javax.faces.component.html;
20
21 import javax.faces.el.ValueBinding;
22 import javax.el.ValueExpression;
23 import javax.faces.context.FacesContext;
24 import javax.faces.component.UIComponent;
25 import javax.faces.convert.Converter;
26
27
28
29
30
31
32 public class HtmlDoctype extends javax.faces.component.UIOutput
33 {
34
35 static public final String COMPONENT_FAMILY =
36 "javax.faces.Output";
37 static public final String COMPONENT_TYPE =
38 "javax.faces.OutputDoctype";
39
40
41 public HtmlDoctype()
42 {
43 setRendererType("javax.faces.Doctype");
44 }
45
46 @Override
47 public String getFamily()
48 {
49 return COMPONENT_FAMILY;
50 }
51
52
53
54
55
56
57 public String getPublic()
58 {
59 return (String) getStateHelper().eval(PropertyKeys.publicVal);
60 }
61
62 public void setPublic(String publicParam)
63 {
64 getStateHelper().put(PropertyKeys.publicVal, publicParam );
65 }
66
67
68 public String getRootElement()
69 {
70 return (String) getStateHelper().eval(PropertyKeys.rootElement);
71 }
72
73 public void setRootElement(String rootElement)
74 {
75 getStateHelper().put(PropertyKeys.rootElement, rootElement );
76 }
77
78
79 public String getSystem()
80 {
81 return (String) getStateHelper().eval(PropertyKeys.system);
82 }
83
84 public void setSystem(String system)
85 {
86 getStateHelper().put(PropertyKeys.system, system );
87 }
88
89
90 protected enum PropertyKeys
91 {
92 publicVal("public")
93 , rootElement
94 , system
95 ;
96 String c;
97
98 PropertyKeys()
99 {
100 }
101
102
103 PropertyKeys(String c)
104 {
105 this.c = c;
106 }
107
108 public String toString()
109 {
110 return ((this.c != null) ? this.c : super.toString());
111 }
112 }
113
114 }