com.jguild.jrpm.io.constant
Class RPMSignatureTag

java.lang.Object
  extended bycom.jguild.jrpm.io.constant.RPMSignatureTag
All Implemented Interfaces:
EnumIf

public final class RPMSignatureTag
extends java.lang.Object
implements EnumIf

Constants for signature tags.

Version:
$Id: RPMSignatureTag.java,v 1.4 2004/05/06 20:59:24 mkuss Exp $

Field Summary
static int _BADSHA1_1
           
static int _BADSHA1_2
           
static int _DSA
           
static int _GPG
           
static int _HEADERSIGNATURES
           
static int _LEMD5_1
           
static int _LEMD5_2
           
static int _MD5
           
static int _PAYLOADSIZE
           
static int _PGP
           
static int _PGP5
           
static int _RSA
           
static int _SHA1
           
static int _SIZE
           
static RPMSignatureTag BADSHA1_1
           
static RPMSignatureTag BADSHA1_2
           
static RPMSignatureTag DSA
           
static RPMSignatureTag GPG
           
static RPMSignatureTag HEADERSIGNATURES
           
static RPMSignatureTag LEMD5_1
           
static RPMSignatureTag LEMD5_2
           
static RPMSignatureTag MD5
           
static RPMSignatureTag PAYLOADSIZE
           
static RPMSignatureTag PGP
           
static RPMSignatureTag PGP5
           
static RPMSignatureTag RSA
           
static RPMSignatureTag SHA1
           
static RPMSignatureTag SIZE
           
static RPMSignatureTag UNKNOWN
           
 
Fields inherited from interface com.jguild.jrpm.io.constant.EnumIf
_UNKNOWN
 
Method Summary
static boolean containsEnumId(java.lang.Long id)
          Check if this enum class contains a enum of a specified id
static EnumIf getEnumById(long id)
          Get a enum by id
static EnumIf getEnumByName(java.lang.String name)
          Get a enum by name
static java.lang.String[] getEnumNames()
          Get all defined enums of this class
 long getId()
          Get the id of this enum object
 java.lang.String getName()
          Get the name of this enum object
static RPMSignatureTag getRPMSignatureTag(int signature)
          Get a enum of this class by id
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN

public static final RPMSignatureTag UNKNOWN

_HEADERSIGNATURES

public static final int _HEADERSIGNATURES
See Also:
Constant Field Values

HEADERSIGNATURES

public static final RPMSignatureTag HEADERSIGNATURES

_BADSHA1_1

public static final int _BADSHA1_1
See Also:
Constant Field Values

BADSHA1_1

public static final RPMSignatureTag BADSHA1_1

_BADSHA1_2

public static final int _BADSHA1_2
See Also:
Constant Field Values

BADSHA1_2

public static final RPMSignatureTag BADSHA1_2

_DSA

public static final int _DSA
See Also:
Constant Field Values

DSA

public static final RPMSignatureTag DSA

_RSA

public static final int _RSA
See Also:
Constant Field Values

RSA

public static final RPMSignatureTag RSA

_SHA1

public static final int _SHA1
See Also:
Constant Field Values

SHA1

public static final RPMSignatureTag SHA1

_SIZE

public static final int _SIZE
See Also:
Constant Field Values

SIZE

public static final RPMSignatureTag SIZE

_LEMD5_1

public static final int _LEMD5_1
See Also:
Constant Field Values

LEMD5_1

public static final RPMSignatureTag LEMD5_1

_PGP

public static final int _PGP
See Also:
Constant Field Values

PGP

public static final RPMSignatureTag PGP

_LEMD5_2

public static final int _LEMD5_2
See Also:
Constant Field Values

LEMD5_2

public static final RPMSignatureTag LEMD5_2

_MD5

public static final int _MD5
See Also:
Constant Field Values

MD5

public static final RPMSignatureTag MD5

_GPG

public static final int _GPG
See Also:
Constant Field Values

GPG

public static final RPMSignatureTag GPG

_PGP5

public static final int _PGP5
See Also:
Constant Field Values

PGP5

public static final RPMSignatureTag PGP5

_PAYLOADSIZE

public static final int _PAYLOADSIZE
See Also:
Constant Field Values

PAYLOADSIZE

public static final RPMSignatureTag PAYLOADSIZE
Method Detail

getEnumById

public static EnumIf getEnumById(long id)
Get a enum by id

Parameters:
id - The id of the enum
Returns:
The enum object

getEnumByName

public static EnumIf getEnumByName(java.lang.String name)
Get a enum by name

Parameters:
name - The name of the enum
Returns:
The enum object

getEnumNames

public static java.lang.String[] getEnumNames()
Get all defined enums of this class

Returns:
An array of all defined enum objects

getRPMSignatureTag

public static RPMSignatureTag getRPMSignatureTag(int signature)
Get a enum of this class by id

Parameters:
signature - The id
Returns:
The enum object

containsEnumId

public static boolean containsEnumId(java.lang.Long id)
Check if this enum class contains a enum of a specified id

Parameters:
id - The id of the enum
Returns:
TRUE if the enum is defined in this class

getId

public long getId()
Description copied from interface: EnumIf
Get the id of this enum object

Specified by:
getId in interface EnumIf
Returns:
The id

getName

public java.lang.String getName()
Description copied from interface: EnumIf
Get the name of this enum object

Specified by:
getName in interface EnumIf
Returns:
The name

toString

public java.lang.String toString()


Copyright © 2002-2005 Sourceforge. All Rights Reserved.