1 20 package org.apache.cactus.integration.ant.deployment.webapp; 21 22 29 public final class WebXmlTag 30 { 31 32 34 37 public static final WebXmlTag ICON = 38 new WebXmlTag("icon", false); 39 40 43 public static final WebXmlTag DISPLAY_NAME = 44 new WebXmlTag("display-name", false); 45 46 49 public static final WebXmlTag DESCRIPTION = 50 new WebXmlTag("description", false); 51 52 55 public static final WebXmlTag DISTRIBUTABLE = 56 new WebXmlTag("distributable", false); 57 58 61 public static final WebXmlTag CONTEXT_PARAM = 62 new WebXmlTag("context-param"); 63 64 67 public static final WebXmlTag PARAM_NAME = 68 new WebXmlTag("param-name"); 69 70 73 public static final WebXmlTag PARAM_VALUE = 74 new WebXmlTag("param-value"); 75 76 79 public static final WebXmlTag FILTER = 80 new WebXmlTag("filter"); 81 82 85 public static final WebXmlTag FILTER_NAME = 86 new WebXmlTag("filter-name"); 87 88 91 public static final WebXmlTag FILTER_CLASS = 92 new WebXmlTag("filter-class"); 93 94 97 public static final WebXmlTag FILTER_MAPPING = 98 new WebXmlTag("filter-mapping"); 99 100 103 public static final WebXmlTag INIT_PARAM = 104 new WebXmlTag("init-param"); 105 106 109 public static final WebXmlTag LISTENER = 110 new WebXmlTag("listener"); 111 112 115 public static final WebXmlTag SERVLET = 116 new WebXmlTag("servlet"); 117 118 121 public static final WebXmlTag SERVLET_NAME = 122 new WebXmlTag("servlet-name"); 123 124 127 public static final WebXmlTag JSP_FILE = 128 new WebXmlTag("jsp-file"); 129 130 133 public static final WebXmlTag SERVLET_CLASS = 134 new WebXmlTag("servlet-class"); 135 136 139 public static final WebXmlTag LOAD_ON_STARTUP = 140 new WebXmlTag("load-on-startup"); 141 142 145 public static final WebXmlTag SERVLET_MAPPING = 146 new WebXmlTag("servlet-mapping"); 147 148 151 public static final WebXmlTag URL_PATTERN = 152 new WebXmlTag("url-pattern"); 153 154 157 public static final WebXmlTag SESSION_CONFIG = 158 new WebXmlTag("session-config", false); 159 160 163 public static final WebXmlTag MIME_MAPPING = 164 new WebXmlTag("mime-mapping"); 165 166 169 public static final WebXmlTag WELCOME_FILE_LIST = 170 new WebXmlTag("welcome-file-list", false); 171 172 175 public static final WebXmlTag ERROR_PAGE = 176 new WebXmlTag("error-page"); 177 178 181 public static final WebXmlTag TAGLIB = 182 new WebXmlTag("taglib"); 183 184 187 public static final WebXmlTag RESOURCE_ENV_REF = 188 new WebXmlTag("resource-env-ref"); 189 190 193 public static final WebXmlTag RESOURCE_REF = 194 new WebXmlTag("resource-ref"); 195 196 199 public static final WebXmlTag SECURITY_CONSTRAINT = 200 new WebXmlTag("security-constraint"); 201 202 205 public static final WebXmlTag WEB_RESOURCE_COLLECTION = 206 new WebXmlTag("web-resource-collection"); 207 208 211 public static final WebXmlTag WEB_RESOURCE_NAME = 212 new WebXmlTag("web-resource-name"); 213 214 217 public static final WebXmlTag AUTH_CONSTRAINT = 218 new WebXmlTag("auth-constraint"); 219 220 223 public static final WebXmlTag LOGIN_CONFIG = 224 new WebXmlTag("login-config", false); 225 226 229 public static final WebXmlTag AUTH_METHOD = 230 new WebXmlTag("auth-method"); 231 232 235 public static final WebXmlTag REALM_NAME = 236 new WebXmlTag("realm-name"); 237 238 241 public static final WebXmlTag SECURITY_ROLE = 242 new WebXmlTag("security-role"); 243 244 247 public static final WebXmlTag ROLE_NAME = 248 new WebXmlTag("role-name"); 249 250 253 public static final WebXmlTag ENV_ENTRY = 254 new WebXmlTag("env-entry"); 255 256 259 public static final WebXmlTag EJB_REF = 260 new WebXmlTag("ejb-ref"); 261 262 265 public static final WebXmlTag EJB_LOCAL_REF = 266 new WebXmlTag("ejb-local-ref"); 267 268 270 273 private String tagName; 274 275 278 private boolean multipleAllowed; 279 280 282 289 private WebXmlTag(String theTagName, boolean isMultipleAllowed) 290 { 291 this.tagName = theTagName; 292 this.multipleAllowed = isMultipleAllowed; 293 } 294 295 300 private WebXmlTag(String theTagName) 301 { 302 this(theTagName, true); 303 } 304 305 307 310 public boolean equals(Object theOther) 311 { 312 return super.equals(theOther); 313 } 314 315 318 public int hashCode() 319 { 320 return super.hashCode(); 321 } 322 323 328 public String getTagName() 329 { 330 return this.tagName; 331 } 332 333 338 public boolean isMultipleAllowed() 339 { 340 return this.multipleAllowed; 341 } 342 343 346 public String toString() 347 { 348 return getTagName(); 349 } 350 351 } 352 | Popular Tags |