com.sun.pkg.client
Enum DependAction.Type

java.lang.Object
  extended by java.lang.Enum<DependAction.Type>
      extended by com.sun.pkg.client.DependAction.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DependAction.Type>
Enclosing class:
DependAction

public static enum DependAction.Type
extends java.lang.Enum<DependAction.Type>

Type of dependency.


Enum Constant Summary
EXCLUDE
          Package non-functional if dependent package is present (unimplemented)
INCORPORATE
          Optional freeze at specified version.
OPTIONAL
          Dependency if present activates additional functionality, but is not needed.
REQUIRED
          Dependency is needed for correct function.
TRANSFER
          Dependency on minimum version of other package that donated components to this package at earlier version.
 
Method Summary
static DependAction.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DependAction.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

REQUIRED

public static final DependAction.Type REQUIRED
Dependency is needed for correct function.


OPTIONAL

public static final DependAction.Type OPTIONAL
Dependency if present activates additional functionality, but is not needed.


TRANSFER

public static final DependAction.Type TRANSFER
Dependency on minimum version of other package that donated components to this package at earlier version. Other package need not be installed, but if it is, it must be at the specified version. Effect is the same as optional, but semantics are different.


INCORPORATE

public static final DependAction.Type INCORPORATE
Optional freeze at specified version.


EXCLUDE

public static final DependAction.Type EXCLUDE
Package non-functional if dependent package is present (unimplemented)

Method Detail

values

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

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

valueOf

public static DependAction.Type 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