hudson.plugins.pmd.util.model
Enum AnnotationContainer.Hierarchy

java.lang.Object
  extended by java.lang.Enum<AnnotationContainer.Hierarchy>
      extended by hudson.plugins.pmd.util.model.AnnotationContainer.Hierarchy
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<AnnotationContainer.Hierarchy>
Enclosing class:
AnnotationContainer

public static enum AnnotationContainer.Hierarchy
extends java.lang.Enum<AnnotationContainer.Hierarchy>

The hierarchy of a container.


Enum Constant Summary
FILE
          File level.
MODULE
          Module level.
PACKAGE
          Package level.
PROJECT
          Project level.
 
Method Summary
static AnnotationContainer.Hierarchy valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AnnotationContainer.Hierarchy[] 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 AnnotationContainer.Hierarchy PROJECT
Project level.


MODULE

public static final AnnotationContainer.Hierarchy MODULE
Module level.


PACKAGE

public static final AnnotationContainer.Hierarchy PACKAGE
Package level.


FILE

public static final AnnotationContainer.Hierarchy FILE
File level.

Method Detail

values

public static AnnotationContainer.Hierarchy[] 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 (AnnotationContainer.Hierarchy c : AnnotationContainer.Hierarchy.values())
    System.out.println(c);

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

valueOf

public static AnnotationContainer.Hierarchy 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


Copyright © 2008. All Rights Reserved.