001    /*--------------------------------------------------------------------------+
002    $Id: EHTMLAttribute.java 26283 2010-02-18 11:18:57Z juergens $
003    |                                                                          |
004    | Copyright 2005-2010 Technische Universitaet Muenchen                     |
005    |                                                                          |
006    | Licensed under the Apache License, Version 2.0 (the "License");          |
007    | you may not use this file except in compliance with the License.         |
008    | You may obtain a copy of the License at                                  |
009    |                                                                          |
010    |    http://www.apache.org/licenses/LICENSE-2.0                            |
011    |                                                                          |
012    | Unless required by applicable law or agreed to in writing, software      |
013    | distributed under the License is distributed on an "AS IS" BASIS,        |
014    | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
015    | See the License for the specific language governing permissions and      |
016    | limitations under the License.                                           |
017    +--------------------------------------------------------------------------*/
018    package edu.tum.cs.commons.html;
019    
020    /**
021     * Enumeration of all HTML attributes.
022     * <p>
023     * Part of this file was generated from the <a
024     * href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">XHTML FrameSet DTD</a>
025     * using the "dtd2enum.pl" perl script in this directory.
026     * 
027     * @author hummelb
028     * @author $Author: juergens $
029     * @version $Rev: 26283 $
030     * @levd.rating GREEN Hash: A64DB380DA98AEBE14887718AC8AAC78
031     */
032    public enum EHTMLAttribute {
033            /** The {@linkplain #TR} attribute. */
034            TR("tr"),
035    
036            /** The {@linkplain #STRIKE} attribute. */
037            STRIKE("strike"),
038    
039            /** The {@linkplain #HTTP_EQUIV} attribute. */
040            HTTP_EQUIV("http-equiv"),
041    
042            /** The {@linkplain #FORM} attribute. */
043            FORM("form"),
044    
045            /** The {@linkplain #NOHREF} attribute. */
046            NOHREF("nohref"),
047    
048            /** The {@linkplain #ONKEYDOWN} attribute. */
049            ONKEYDOWN("onkeydown"),
050    
051            /** The {@linkplain #TARGET} attribute. */
052            TARGET("target"),
053    
054            /** The {@linkplain #ONKEYUP} attribute. */
055            ONKEYUP("onkeyup"),
056    
057            /** The {@linkplain #ONRESET} attribute. */
058            ONRESET("onreset"),
059    
060            /** The {@linkplain #CODE} attribute. */
061            CODE("code"),
062    
063            /** The {@linkplain #ACRONYM} attribute. */
064            ACRONYM("acronym"),
065    
066            /** The {@linkplain #BR} attribute. */
067            BR("br"),
068    
069            /** The {@linkplain #VALIGN} attribute. */
070            VALIGN("valign"),
071    
072            /** The {@linkplain #NAME} attribute. */
073            NAME("name"),
074    
075            /** The {@linkplain #CHARSET} attribute. */
076            CHARSET("charset"),
077    
078            /** The {@linkplain #H4} attribute. */
079            H4("h4"),
080    
081            /** The {@linkplain #PROMPT} attribute. */
082            PROMPT("prompt"),
083    
084            /** The {@linkplain #ACCEPT_CHARSET} attribute. */
085            ACCEPT_CHARSET("accept-charset"),
086    
087            /** The {@linkplain #EM} attribute. */
088            EM("em"),
089    
090            /** The {@linkplain #REV} attribute. */
091            REV("rev"),
092    
093            /** The {@linkplain #TITLE} attribute. */
094            TITLE("title"),
095    
096            /** The {@linkplain #START} attribute. */
097            START("start"),
098    
099            /** The {@linkplain #SMALL} attribute. */
100            SMALL("small"),
101    
102            /** The {@linkplain #ENCTYPE} attribute. */
103            ENCTYPE("enctype"),
104    
105            /** The {@linkplain #USEMAP} attribute. */
106            USEMAP("usemap"),
107    
108            /** The {@linkplain #NOWRAP} attribute. */
109            NOWRAP("nowrap"),
110    
111            /** The {@linkplain #AREA} attribute. */
112            AREA("area"),
113    
114            /** The {@linkplain #COORDS} attribute. */
115            COORDS("coords"),
116    
117            /** The {@linkplain #ONBLUR} attribute. */
118            ONBLUR("onblur"),
119    
120            /** The {@linkplain #DATETIME} attribute. */
121            DATETIME("datetime"),
122    
123            /** The {@linkplain #DIR} attribute. */
124            DIR("dir"),
125    
126            /** The {@linkplain #COLOR} attribute. */
127            COLOR("color"),
128    
129            /** The {@linkplain #VSPACE} attribute. */
130            VSPACE("vspace"),
131    
132            /** The {@linkplain #UL} attribute. */
133            UL("ul"),
134    
135            /** The {@linkplain #BACKGROUND} attribute. */
136            BACKGROUND("background"),
137    
138            /** The {@linkplain #HEIGHT} attribute. */
139            HEIGHT("height"),
140    
141            /** The {@linkplain #DFN} attribute. */
142            DFN("dfn"),
143    
144            /** The {@linkplain #IFRAME} attribute. */
145            IFRAME("iframe"),
146    
147            /** The {@linkplain #CHAR} attribute. */
148            CHAR("char"),
149    
150            /** The {@linkplain #CODEBASE} attribute. */
151            CODEBASE("codebase"),
152    
153            /** The {@linkplain #PROFILE} attribute. */
154            PROFILE("profile"),
155    
156            /** The {@linkplain #REL} attribute. */
157            REL("rel"),
158    
159            /** The {@linkplain #ONSUBMIT} attribute. */
160            ONSUBMIT("onsubmit"),
161    
162            /** The {@linkplain #A} attribute. */
163            A("a"),
164    
165            /** The {@linkplain #IMG} attribute. */
166            IMG("img"),
167    
168            /** The {@linkplain #MARGINWIDTH} attribute. */
169            MARGINWIDTH("marginwidth"),
170    
171            /** The {@linkplain #NOFRAMES} attribute. */
172            NOFRAMES("noframes"),
173    
174            /** The {@linkplain #ONCHANGE} attribute. */
175            ONCHANGE("onchange"),
176    
177            /** The {@linkplain #U} attribute. */
178            U("u"),
179    
180            /** The {@linkplain #ABBR} attribute. */
181            ABBR("abbr"),
182    
183            /** The {@linkplain #HREF} attribute. */
184            HREF("href"),
185    
186            /** The {@linkplain #SUP} attribute. */
187            SUP("sup"),
188    
189            /** The {@linkplain #ADDRESS} attribute. */
190            ADDRESS("address"),
191    
192            /** The {@linkplain #ID} attribute. */
193            ID("id"),
194    
195            /** The {@linkplain #BASEFONT} attribute. */
196            BASEFONT("basefont"),
197    
198            /** The {@linkplain #H1} attribute. */
199            H1("h1"),
200    
201            /** The {@linkplain #HEAD} attribute. */
202            HEAD("head"),
203    
204            /** The {@linkplain #TBODY} attribute. */
205            TBODY("tbody"),
206    
207            /** The {@linkplain #VALUE} attribute. */
208            VALUE("value"),
209    
210            /** The {@linkplain #DATA} attribute. */
211            DATA("data"),
212    
213            /** The {@linkplain #DD} attribute. */
214            DD("dd"),
215    
216            /** The {@linkplain #S} attribute. */
217            S("s"),
218    
219            /** The {@linkplain #DECLARE} attribute. */
220            DECLARE("declare"),
221    
222            /** The {@linkplain #LI} attribute. */
223            LI("li"),
224    
225            /** The {@linkplain #TD} attribute. */
226            TD("td"),
227    
228            /** The {@linkplain #TYPE} attribute. */
229            TYPE("type"),
230    
231            /** The {@linkplain #HEADERS} attribute. */
232            HEADERS("headers"),
233    
234            /** The {@linkplain #OBJECT} attribute. */
235            OBJECT("object"),
236    
237            /** The {@linkplain #DIV} attribute. */
238            DIV("div"),
239    
240            /** The {@linkplain #NORESIZE} attribute. */
241            NORESIZE("noresize"),
242    
243            /** The {@linkplain #ROWSPAN} attribute. */
244            ROWSPAN("rowspan"),
245    
246            /** The {@linkplain #DEFER} attribute. */
247            DEFER("defer"),
248    
249            /** The {@linkplain #CELLSPACING} attribute. */
250            CELLSPACING("cellspacing"),
251    
252            /** The {@linkplain #OPTION} attribute. */
253            OPTION("option"),
254    
255            /** The {@linkplain #CHAROFF} attribute. */
256            CHAROFF("charoff"),
257    
258            /** The {@linkplain #SELECT} attribute. */
259            SELECT("select"),
260    
261            /** The {@linkplain #I} attribute. */
262            I("i"),
263    
264            /** The {@linkplain #ACCEPT} attribute. */
265            ACCEPT("accept"),
266    
267            /** The {@linkplain #ALT} attribute. */
268            ALT("alt"),
269    
270            /** The {@linkplain #ONMOUSEOUT} attribute. */
271            ONMOUSEOUT("onmouseout"),
272    
273            /** The {@linkplain #BORDER} attribute. */
274            BORDER("border"),
275    
276            /** The {@linkplain #ONUNLOAD} attribute. */
277            ONUNLOAD("onunload"),
278    
279            /** The {@linkplain #FIELDSET} attribute. */
280            FIELDSET("fieldset"),
281    
282            /** The {@linkplain #BIG} attribute. */
283            BIG("big"),
284    
285            /** The {@linkplain #CELLPADDING} attribute. */
286            CELLPADDING("cellpadding"),
287    
288            /** The {@linkplain #BUTTON} attribute. */
289            BUTTON("button"),
290    
291            /** The {@linkplain #VALUETYPE} attribute. */
292            VALUETYPE("valuetype"),
293    
294            /** The {@linkplain #NOSCRIPT} attribute. */
295            NOSCRIPT("noscript"),
296    
297            /** The {@linkplain #INPUT} attribute. */
298            INPUT("input"),
299    
300            /** The {@linkplain #TABLE} attribute. */
301            TABLE("table"),
302    
303            /** The {@linkplain #CONTENT} attribute. */
304            CONTENT("content"),
305    
306            /** The {@linkplain #CLEAR} attribute. */
307            CLEAR("clear"),
308    
309            /** The {@linkplain #H5} attribute. */
310            H5("h5"),
311    
312            /** The {@linkplain #META} attribute. */
313            META("meta"),
314    
315            /** The {@linkplain #ISINDEX} attribute. */
316            ISINDEX("isindex"),
317    
318            /** The {@linkplain #MAP} attribute. */
319            MAP("map"),
320    
321            /** The {@linkplain #TFOOT} attribute. */
322            TFOOT("tfoot"),
323    
324            /** The {@linkplain #CAPTION} attribute. */
325            CAPTION("caption"),
326    
327            /** The {@linkplain #ONMOUSEUP} attribute. */
328            ONMOUSEUP("onmouseup"),
329    
330            /** The {@linkplain #SCOPE} attribute. */
331            SCOPE("scope"),
332    
333            /** The {@linkplain #BASE} attribute. */
334            BASE("base"),
335    
336            /** The {@linkplain #ONMOUSEOVER} attribute. */
337            ONMOUSEOVER("onmouseover"),
338    
339            /** The {@linkplain #LANG} attribute. */
340            LANG("lang"),
341    
342            /** The {@linkplain #ALIGN} attribute. */
343            ALIGN("align"),
344    
345            /** The {@linkplain #STRONG} attribute. */
346            STRONG("strong"),
347    
348            /** The {@linkplain #SCHEME} attribute. */
349            SCHEME("scheme"),
350    
351            /** The {@linkplain #FRAMEBORDER} attribute. */
352            FRAMEBORDER("frameborder"),
353    
354            /** The {@linkplain #ONMOUSEDOWN} attribute. */
355            ONMOUSEDOWN("onmousedown"),
356    
357            /** The {@linkplain #Q} attribute. */
358            Q("q"),
359    
360            /** The {@linkplain #B} attribute. */
361            B("b"),
362    
363            /** The {@linkplain #APPLET} attribute. */
364            APPLET("applet"),
365    
366            /** The {@linkplain #ONCLICK} attribute. */
367            ONCLICK("onclick"),
368    
369            /** The {@linkplain #SPAN} attribute. */
370            SPAN("span"),
371    
372            /** The {@linkplain #WIDTH} attribute. */
373            WIDTH("width"),
374    
375            /** The {@linkplain #VLINK} attribute. */
376            VLINK("vlink"),
377    
378            /** The {@linkplain #ISMAP} attribute. */
379            ISMAP("ismap"),
380    
381            /** The {@linkplain #FRAME} attribute. */
382            FRAME("frame"),
383    
384            /** The {@linkplain #SIZE} attribute. */
385            SIZE("size"),
386    
387            /** The {@linkplain #BODY} attribute. */
388            BODY("body"),
389    
390            /** The {@linkplain #FACE} attribute. */
391            FACE("face"),
392    
393            /** The {@linkplain #OL} attribute. */
394            OL("ol"),
395    
396            /** The {@linkplain #SUMMARY} attribute. */
397            SUMMARY("summary"),
398    
399            /** The {@linkplain #HTML} attribute. */
400            HTML("html"),
401    
402            /** The {@linkplain #BGCOLOR} attribute. */
403            BGCOLOR("bgcolor"),
404    
405            /** The {@linkplain #TEXT} attribute. */
406            TEXT("text"),
407    
408            /** The {@linkplain #VAR} attribute. */
409            VAR("var"),
410    
411            /** The {@linkplain #METHOD} attribute. */
412            METHOD("method"),
413    
414            /** The {@linkplain #STANDBY} attribute. */
415            STANDBY("standby"),
416    
417            /** The {@linkplain #LANGUAGE} attribute. */
418            LANGUAGE("language"),
419    
420            /** The {@linkplain #DEL} attribute. */
421            DEL("del"),
422    
423            /** The {@linkplain #TABINDEX} attribute. */
424            TABINDEX("tabindex"),
425    
426            /** The {@linkplain #BLOCKQUOTE} attribute. */
427            BLOCKQUOTE("blockquote"),
428    
429            /** The {@linkplain #ONMOUSEMOVE} attribute. */
430            ONMOUSEMOVE("onmousemove"),
431    
432            /** The {@linkplain #STYLE} attribute. */
433            STYLE("style"),
434    
435            /** The {@linkplain #CODETYPE} attribute. */
436            CODETYPE("codetype"),
437    
438            /** The {@linkplain #MULTIPLE} attribute. */
439            MULTIPLE("multiple"),
440    
441            /** The {@linkplain #H3} attribute. */
442            H3("h3"),
443    
444            /** The {@linkplain #TEXTAREA} attribute. */
445            TEXTAREA("textarea"),
446    
447            /** The {@linkplain #XMLNS} attribute. */
448            XMLNS("xmlns"),
449    
450            /** The {@linkplain #ONDBLCLICK} attribute. */
451            ONDBLCLICK("ondblclick"),
452    
453            /** The {@linkplain #AXIS} attribute. */
454            AXIS("axis"),
455    
456            /** The {@linkplain #FONT} attribute. */
457            FONT("font"),
458    
459            /** The {@linkplain #TT} attribute. */
460            TT("tt"),
461    
462            /** The {@linkplain #COLS} attribute. */
463            COLS("cols"),
464    
465            /** The {@linkplain #THEAD} attribute. */
466            THEAD("thead"),
467    
468            /** The {@linkplain #READONLY} attribute. */
469            READONLY("readonly"),
470    
471            /** The {@linkplain #MEDIA} attribute. */
472            MEDIA("media"),
473    
474            /** The {@linkplain #H6} attribute. */
475            H6("h6"),
476    
477            /** The {@linkplain #PARAM} attribute. */
478            PARAM("param"),
479    
480            /** The {@linkplain #TH} attribute. */
481            TH("th"),
482    
483            /** The {@linkplain #COMPACT} attribute. */
484            COMPACT("compact"),
485    
486            /** The {@linkplain #FOR} attribute. */
487            FOR("for"),
488    
489            /** The {@linkplain #SRC} attribute. */
490            SRC("src"),
491    
492            /** The {@linkplain #LEGEND} attribute. */
493            LEGEND("legend"),
494    
495            /** The {@linkplain #XML_SPACE} attribute. */
496            XML_SPACE("xml:space"),
497    
498            /** The {@linkplain #HREFLANG} attribute. */
499            HREFLANG("hreflang"),
500    
501            /** The {@linkplain #CHECKED} attribute. */
502            CHECKED("checked"),
503    
504            /** The {@linkplain #HR} attribute. */
505            HR("hr"),
506    
507            /** The {@linkplain #ONKEYPRESS} attribute. */
508            ONKEYPRESS("onkeypress"),
509    
510            /** The {@linkplain #LABEL} attribute. */
511            LABEL("label"),
512    
513            /** The {@linkplain #CLASS} attribute. */
514            CLASS("class"),
515    
516            /** The {@linkplain #SHAPE} attribute. */
517            SHAPE("shape"),
518    
519            /** The {@linkplain #DL} attribute. */
520            DL("dl"),
521    
522            /** The {@linkplain #KBD} attribute. */
523            KBD("kbd"),
524    
525            /** The {@linkplain #ACCESSKEY} attribute. */
526            ACCESSKEY("accesskey"),
527    
528            /** The {@linkplain #DISABLED} attribute. */
529            DISABLED("disabled"),
530    
531            /** The {@linkplain #SCROLLING} attribute. */
532            SCROLLING("scrolling"),
533    
534            /** The {@linkplain #DT} attribute. */
535            DT("dt"),
536    
537            /** The {@linkplain #PRE} attribute. */
538            PRE("pre"),
539    
540            /** The {@linkplain #RULES} attribute. */
541            RULES("rules"),
542    
543            /** The {@linkplain #ROWS} attribute. */
544            ROWS("rows"),
545    
546            /** The {@linkplain #CENTER} attribute. */
547            CENTER("center"),
548    
549            /** The {@linkplain #ALINK} attribute. */
550            ALINK("alink"),
551    
552            /** The {@linkplain #ONFOCUS} attribute. */
553            ONFOCUS("onfocus"),
554    
555            /** The {@linkplain #COLSPAN} attribute. */
556            COLSPAN("colspan"),
557    
558            /** The {@linkplain #SAMP} attribute. */
559            SAMP("samp"),
560    
561            /** The {@linkplain #COL} attribute. */
562            COL("col"),
563    
564            /** The {@linkplain #CITE} attribute. */
565            CITE("cite"),
566    
567            /** The {@linkplain #MARGINHEIGHT} attribute. */
568            MARGINHEIGHT("marginheight"),
569    
570            /** The {@linkplain #MAXLENGTH} attribute. */
571            MAXLENGTH("maxlength"),
572    
573            /** The {@linkplain #LINK} attribute. */
574            LINK("link"),
575    
576            /** The {@linkplain #ONSELECT} attribute. */
577            ONSELECT("onselect"),
578    
579            /** The {@linkplain #SCRIPT} attribute. */
580            SCRIPT("script"),
581    
582            /** The {@linkplain #ARCHIVE} attribute. */
583            ARCHIVE("archive"),
584    
585            /** The {@linkplain #BDO} attribute. */
586            BDO("bdo"),
587    
588            /** The {@linkplain #CLASSID} attribute. */
589            CLASSID("classid"),
590    
591            /** The {@linkplain #LONGDESC} attribute. */
592            LONGDESC("longdesc"),
593    
594            /** The {@linkplain #MENU} attribute. */
595            MENU("menu"),
596    
597            /** The {@linkplain #COLGROUP} attribute. */
598            COLGROUP("colgroup"),
599    
600            /** The {@linkplain #XML_LANG} attribute. */
601            XML_LANG("xml:lang"),
602    
603            /** The {@linkplain #H2} attribute. */
604            H2("h2"),
605    
606            /** The {@linkplain #NOSHADE} attribute. */
607            NOSHADE("noshade"),
608    
609            /** The {@linkplain #INS} attribute. */
610            INS("ins"),
611    
612            /** The {@linkplain #P} attribute. */
613            P("p"),
614    
615            /** The {@linkplain #HSPACE} attribute. */
616            HSPACE("hspace"),
617    
618            /** The {@linkplain #SUB} attribute. */
619            SUB("sub"),
620    
621            /** The {@linkplain #ACTION} attribute. */
622            ACTION("action"),
623    
624            /** The {@linkplain #ONLOAD} attribute. */
625            ONLOAD("onload"),
626    
627            /** The {@linkplain #FRAMESET} attribute. */
628            FRAMESET("frameset"),
629    
630            /** The {@linkplain #SELECTED} attribute. */
631            SELECTED("selected"),
632    
633            /** The {@linkplain #OPTGROUP} attribute. */
634            OPTGROUP("optgroup");
635    
636            /** The "real" name of the attribute. */
637            private final String name;
638    
639            /** Constructor. */
640            private EHTMLAttribute(String name) {
641                    this.name = name;
642            }
643    
644            /** Returns the name as used in the HTML output. */
645            public String getName() {
646                    return name;
647            }
648    
649            /** {@inheritDoc} */
650            @Override
651            public String toString() {
652                    return name;
653            }
654    }