com.jguild.jrpm.io.constant
Class LeadSignature

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

public class LeadSignature
extends java.lang.Object
implements EnumIf

Constants for signature type.

Version:
$Id: LeadSignature.java,v 1.3 2003/10/20 16:32:12 mkuss Exp $

Field Summary
static int _MD5
           
static int _PGP
           
static int _SIZE
           
static LeadSignature MD5
           
static LeadSignature PGP
           
static LeadSignature SIZE
           
static LeadSignature 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
static LeadSignature getLeadSignature(int signature)
          Get a enum of this class by id
 java.lang.String getName()
          Get the name of this enum object
 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 LeadSignature UNKNOWN

_SIZE

public static final int _SIZE
See Also:
Constant Field Values

SIZE

public static final LeadSignature SIZE

_MD5

public static final int _MD5
See Also:
Constant Field Values

MD5

public static final LeadSignature MD5

_PGP

public static final int _PGP
See Also:
Constant Field Values

PGP

public static final LeadSignature PGP
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

getLeadSignature

public static LeadSignature getLeadSignature(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.