com.threerings.jpkg.debian
Enum MaintainerScript.Type

java.lang.Object
  extended by java.lang.Enum<MaintainerScript.Type>
      extended by com.threerings.jpkg.debian.MaintainerScript.Type
All Implemented Interfaces:
Serializable, Comparable<MaintainerScript.Type>
Enclosing interface:
MaintainerScript

public static enum MaintainerScript.Type
extends Enum<MaintainerScript.Type>

The types of Debian maintainer scripts and the file names they should have.


Enum Constant Summary
POSTINST
          The postinst maintainer script.
POSTRM
          The postrm maintainer script.
PREINST
          The preinst maintainer script.
PRERM
          The prerm maintainer script.
 
Method Summary
 String getFilename()
          Returns the filename used for this maintainer script in the control tar file.
static MaintainerScript.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MaintainerScript.Type[] 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

PREINST

public static final MaintainerScript.Type PREINST
The preinst maintainer script.


POSTINST

public static final MaintainerScript.Type POSTINST
The postinst maintainer script.


PRERM

public static final MaintainerScript.Type PRERM
The prerm maintainer script.


POSTRM

public static final MaintainerScript.Type POSTRM
The postrm maintainer script.

Method Detail

values

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

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

valueOf

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

getFilename

public String getFilename()
Returns the filename used for this maintainer script in the control tar file.



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