2011/08/05 - Jakarta Cactus has been retired.

For more information, please explore the Attic.

Clover coverage report - Cactus 1.8dev for J2EE API 1.3
Coverage timestamp: Sun Mar 26 2006 18:50:18 BRT
file stats: LOC: 138   Methods: 5
NCLOC: 41   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
ApplicationXmlTag.java - 40% 40% 40%
coverage coverage
 1   
 /* 
 2   
  * ========================================================================
 3   
  * 
 4   
  * Copyright 2003-2005 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 239141 2005-02-15 10:31:44Z vmassol $
 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   
     /**
 77   
      * Element name 'security-role',
 78   
      */
 79   
     public static final ApplicationXmlTag SECURITY_ROLE =
 80   
         new ApplicationXmlTag("security-role");
 81   
     
 82   
     // Instance Variables ------------------------------------------------------
 83   
     
 84   
     /**
 85   
      * The tag name,
 86   
      */
 87   
     private String tagName;
 88   
     
 89   
     // Constructors ------------------------------------------------------------
 90   
     
 91   
     /**
 92   
      * Constructor.
 93   
      * 
 94   
      * @param theTagName The tag name of the element
 95   
      */
 96  32
     private ApplicationXmlTag(String theTagName)
 97   
     {
 98  32
         this.tagName = theTagName;
 99   
     }
 100   
 
 101   
     // Public Methods ----------------------------------------------------------
 102   
     
 103   
     /**
 104   
      * @see java.lang.Object#toString
 105   
      */
 106  0
     public boolean equals(Object theOther)
 107   
     {
 108  0
         return super.equals(theOther);
 109   
     }
 110   
     
 111   
     /**
 112   
      * @see java.lang.Object#hashCode
 113   
      */
 114  0
     public int hashCode()
 115   
     {
 116  0
         return super.hashCode();
 117   
     }
 118   
     
 119   
     /**
 120   
      * Returns the tag name.
 121   
      * 
 122   
      * @return The tag name
 123   
      */
 124  54
     public String getTagName()
 125   
     {
 126  54
         return this.tagName;
 127   
     }
 128   
     
 129   
     /**
 130   
      * @see java.lang.Object#toString
 131   
      */
 132  0
     public String toString()
 133   
     {
 134  0
         return getTagName();
 135   
     }
 136   
     
 137   
 }
 138