hudson.plugins.cobertura.targets
Enum CoverageElement

java.lang.Object
  extended by java.lang.Enum<CoverageElement>
      extended by hudson.plugins.cobertura.targets.CoverageElement
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CoverageElement>

public enum CoverageElement
extends java.lang.Enum<CoverageElement>

Type of program construct being covered.

Since:
22-Aug-2007 18:36:01
Author:
Stephen Connolly

Enum Constant Summary
JAVA_CLASS
           
JAVA_FILE
           
JAVA_METHOD
           
JAVA_PACKAGE
           
PROJECT
           
 
Method Summary
 java.lang.String getDisplayName()
          Getter for property 'displayName'.
 CoverageElement getParent()
          Getter for property 'parent'.
static CoverageElement valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CoverageElement[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PROJECT

public static final CoverageElement PROJECT

JAVA_PACKAGE

public static final CoverageElement JAVA_PACKAGE

JAVA_FILE

public static final CoverageElement JAVA_FILE

JAVA_CLASS

public static final CoverageElement JAVA_CLASS

JAVA_METHOD

public static final CoverageElement JAVA_METHOD
Method Detail

values

public static CoverageElement[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (CoverageElement c : CoverageElement.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CoverageElement valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getParent

public CoverageElement getParent()
Getter for property 'parent'.

Returns:
Value for property 'parent'.

getDisplayName

public java.lang.String getDisplayName()
Getter for property 'displayName'.

Returns:
Value for property 'displayName'.


Copyright © 2010. All Rights Reserved.