org.rhq.core.domain.content
Enum PackageCategory

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

public enum PackageCategory
extends Enum<PackageCategory>

Represents the major supported categories for packages.


Enum Constant Summary
CONFIGURATION
          Represents configuration data for a managed resource
DEPLOYABLE
          Represents a deployable to the parent resource that can be pushed as arbitrary content
EXECUTABLE_BINARY
          Executables that are able to natively run on a platform
EXECUTABLE_SCRIPT
          Executable scripts that may be edited prior to execution.
LOG
          A log file
 
Method Summary
 String getName()
           
 String toString()
           
static PackageCategory valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PackageCategory[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EXECUTABLE_SCRIPT

public static final PackageCategory EXECUTABLE_SCRIPT
Executable scripts that may be edited prior to execution.


EXECUTABLE_BINARY

public static final PackageCategory EXECUTABLE_BINARY
Executables that are able to natively run on a platform


DEPLOYABLE

public static final PackageCategory DEPLOYABLE
Represents a deployable to the parent resource that can be pushed as arbitrary content


CONFIGURATION

public static final PackageCategory CONFIGURATION
Represents configuration data for a managed resource


LOG

public static final PackageCategory LOG
A log file

Method Detail

values

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

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

valueOf

public static PackageCategory 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

getName

public String getName()

toString

public String toString()
Overrides:
toString in class Enum<PackageCategory>


Copyright © 2008-2009 RHQ Project Advisory Board (Red Hat, Inc.). All Rights Reserved.