KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cactus > integration > ant > deployment > application > ApplicationXmlTag


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

20 package org.apache.cactus.integration.ant.deployment.application;
21
22 /**
23  * Represents the various top-level tags in a enterprise application deployment
24  * descriptor as a typesafe enumeration.
25  *
26  * @since Cactus 1.5
27  * @version $Id: ApplicationXmlTag.java,v 1.1 2004/05/31 20:05:24 vmassol Exp $
28  */

29 public final class ApplicationXmlTag
30 {
31     
32     // Public Constants --------------------------------------------------------
33

34     /**
35      * Element name 'icon'.
36      */

37     public static final ApplicationXmlTag ICON =
38         new ApplicationXmlTag("icon");
39     
40     /**
41      * Element name 'display-name'.
42      */

43     public static final ApplicationXmlTag DISPLAY_NAME =
44         new ApplicationXmlTag("display-name");
45     
46     /**
47      * Element name 'description'.
48      */

49     public static final ApplicationXmlTag DESCRIPTION =
50         new ApplicationXmlTag("description");
51     
52     /**
53      * Element name 'module'.
54      */

55     public static final ApplicationXmlTag MODULE =
56         new ApplicationXmlTag("module");
57     
58     /**
59      * Element name 'web',
60      */

61     public static final ApplicationXmlTag WEB =
62         new ApplicationXmlTag("web");
63     
64     /**
65      * Element name 'web-uri',
66      */

67     public static final ApplicationXmlTag WEB_URI =
68         new ApplicationXmlTag("web-uri");
69     
70     /**
71      * Element name 'context-root',
72      */

73     public static final ApplicationXmlTag CONTEXT_ROOT =
74         new ApplicationXmlTag("context-root");
75     
76     // Instance Variables ------------------------------------------------------
77

78     /**
79      * The tag name,
80      */

81     private String JavaDoc tagName;
82     
83     // Constructors ------------------------------------------------------------
84

85     /**
86      * Constructor.
87      *
88      * @param theTagName The tag name of the element
89      */

90     private ApplicationXmlTag(String JavaDoc theTagName)
91     {
92         this.tagName = theTagName;
93     }
94
95     // Public Methods ----------------------------------------------------------
96

97     /**
98      * @see java.lang.Object#toString
99      */

100     public boolean equals(Object JavaDoc theOther)
101     {
102         return super.equals(theOther);
103     }
104     
105     /**
106      * @see java.lang.Object#hashCode
107      */

108     public int hashCode()
109     {
110         return super.hashCode();
111     }
112     
113     /**
114      * Returns the tag name.
115      *
116      * @return The tag name
117      */

118     public String JavaDoc getTagName()
119     {
120         return this.tagName;
121     }
122     
123     /**
124      * @see java.lang.Object#toString
125      */

126     public String JavaDoc toString()
127     {
128         return getTagName();
129     }
130     
131 }
132
Popular Tags