com.threerings.jpkg.debian
Enum PackagePriority

java.lang.Object
  extended by java.lang.Enum<PackagePriority>
      extended by com.threerings.jpkg.debian.PackagePriority
All Implemented Interfaces:
ControlFileData, Serializable, Comparable<PackagePriority>

public enum PackagePriority
extends Enum<PackagePriority>
implements ControlFileData

Holds the valid Debian package priorities. Descriptions for the fields come from the Debian Policy Manual.

See Also:
Debian Policy Manual

Enum Constant Summary
EXTRA
          "This contains all packages that conflict with others with required, important, standard or optional priorities, or are only likely to be useful if you already know what they are or have specialized requirements."
IMPORTANT
          "Important programs, including those which one would expect to find on any Unix-like system."
OPTIONAL
          "This is all the software that you might reasonably want to install if you didn't know what it was and don't have specialized requirements."
REQUIRED
          "Packages which are necessary for the proper functioning of the system (usually, this means that dpkg functionality depends on these packages)."
STANDARD
          "These packages provide a reasonably small but not too limited character-mode system."
 
Method Summary
 String getField()
          Returns the field of the Debian control file this data belongs in.
 String getFieldValue()
          Returns the data in this class formatted for the Debian control file.
static PackagePriority valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PackagePriority[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

REQUIRED

public static final PackagePriority REQUIRED
"Packages which are necessary for the proper functioning of the system (usually, this means that dpkg functionality depends on these packages)."


IMPORTANT

public static final PackagePriority IMPORTANT
"Important programs, including those which one would expect to find on any Unix-like system."


STANDARD

public static final PackagePriority STANDARD
"These packages provide a reasonably small but not too limited character-mode system."


OPTIONAL

public static final PackagePriority OPTIONAL
"This is all the software that you might reasonably want to install if you didn't know what it was and don't have specialized requirements."


EXTRA

public static final PackagePriority EXTRA
"This contains all packages that conflict with others with required, important, standard or optional priorities, or are only likely to be useful if you already know what they are or have specialized requirements."

Method Detail

values

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

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

valueOf

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

getField

public String getField()
Description copied from interface: ControlFileData
Returns the field of the Debian control file this data belongs in.

Specified by:
getField in interface ControlFileData

getFieldValue

public String getFieldValue()
Description copied from interface: ControlFileData
Returns the data in this class formatted for the Debian control file.

Specified by:
getFieldValue in interface ControlFileData


Copyright © 2007-2008 Three Rings Design, Inc. All Rights Reserved. Released under a BSD license.