Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.jguild.jrpm.io.constant
Class LeadSignature  view LeadSignature download LeadSignature.java

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
           
private  EnumIf delegate
           
static LeadSignature MD5
           
static LeadSignature PGP
           
static LeadSignature SIZE
           
static LeadSignature UNKNOWN
           
 
Fields inherited from interface com.jguild.jrpm.io.constant.EnumIf
_UNKNOWN
 
Constructor Summary
private LeadSignature(int signature, java.lang.String name)
           
 
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()
          Convert this Object to a human-readable String.
 
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

delegate

private EnumIf delegate
Constructor Detail

LeadSignature

private LeadSignature(int signature,
                      java.lang.String name)
Method Detail

getEnumById

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


getEnumByName

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


getEnumNames

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


getLeadSignature

public static LeadSignature getLeadSignature(int signature)
Get a enum of this class by id


containsEnumId

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


getId

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

Specified by:
getId in interface EnumIf

getName

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

Specified by:
getName in interface EnumIf

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).