KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > jelly > tags > core > CoreTagLibrary


1 /*
2  * Copyright 2002,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.commons.jelly.tags.core;
17
18 import org.apache.commons.jelly.TagLibrary;
19
20 /**
21   * This is the core tag library for jelly and contains commonly
22   * used tags.
23   * This class could be generated by XDoclet
24   *
25   * @author <a HREF="mailto:jstrachan@apache.org">James Strachan</a>
26   * @version $Revision: 155420 $
27   */

28 public class CoreTagLibrary extends TagLibrary {
29
30     public CoreTagLibrary() {
31         registerTag("jelly", JellyTag.class);
32
33         // core tags
34
registerTag("out", ExprTag.class);
35         registerTag("catch", CatchTag.class);
36         registerTag("forEach", ForEachTag.class);
37         registerTag("set", SetTag.class);
38         registerTag("remove", RemoveTag.class);
39         registerTag("while", WhileTag.class);
40
41         // conditional tags
42
registerTag("if", IfTag.class);
43         registerTag("choose", ChooseTag.class);
44         registerTag("when", WhenTag.class);
45         registerTag("otherwise", OtherwiseTag.class);
46         registerTag("switch", SwitchTag.class);
47         registerTag("case", CaseTag.class);
48         registerTag("default", DefaultTag.class);
49
50         // other tags
51
registerTag("include", IncludeTag.class);
52         registerTag("import", ImportTag.class);
53         registerTag("mute", MuteTag.class);
54
55         // extensions to JSTL
56
registerTag("arg", ArgTag.class);
57         registerTag("break", BreakTag.class);
58         registerTag("expr", ExprTag.class);
59         registerTag("file", FileTag.class);
60         registerTag("getStatic", GetStaticTag.class);
61         registerTag("invoke", InvokeTag.class);
62         registerTag("invokeStatic", InvokeStaticTag.class);
63         registerTag("new", NewTag.class);
64         registerTag("parse", ParseTag.class);
65         registerTag("scope", ScopeTag.class);
66         registerTag("setProperties", SetPropertiesTag.class);
67         registerTag("thread", ThreadTag.class);
68         registerTag("useBean", UseBeanTag.class);
69         registerTag("useList", UseListTag.class);
70         registerTag("whitespace", WhitespaceTag.class);
71     }
72
73 }
74
Popular Tags