org.rhq.core.domain.drift
Enum DriftChangeSetCategory

java.lang.Object
  extended by java.lang.Enum<DriftChangeSetCategory>
      extended by org.rhq.core.domain.drift.DriftChangeSetCategory
All Implemented Interfaces:
Serializable, Comparable<DriftChangeSetCategory>

public enum DriftChangeSetCategory
extends Enum<DriftChangeSetCategory>

Type of change set report. There are two types of change sets, coverage and drift. A coverage change set is in effect a snapshot of the files that are being monitored for drift detection. A drift change set on the hand, represents a delta between one or more files on disk and their versions in the previous change set.

A DriftChangeSetCategory has a single representation which is suitable for persisting in a database.


Enum Constant Summary
COVERAGE
          A coverage change set is a snapshot of the files that are being monitored for drift detection.
DRIFT
          A drift change set represents a change between one or more files and their versions in the previous change set.
 
Method Summary
 String code()
           
static DriftChangeSetCategory fromCode(String code)
          Parses the single character code into a DriftChangeSetCategory object.
static DriftChangeSetCategory valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DriftChangeSetCategory[] 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

COVERAGE

public static final DriftChangeSetCategory COVERAGE
A coverage change set is a snapshot of the files that are being monitored for drift detection.


DRIFT

public static final DriftChangeSetCategory DRIFT
A drift change set represents a change between one or more files and their versions in the previous change set.

Method Detail

values

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

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

valueOf

public static DriftChangeSetCategory valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

code

public String code()
Returns:
The single character code

fromCode

public static DriftChangeSetCategory fromCode(String code)
Parses the single character code into a DriftChangeSetCategory object.

Parameters:
code - A single character code
Returns:
The corresponding DriftChangeSetCategory
Throws:
IllegalArgumentException - if the code is not recognized


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.