com.jguild.jrpm.io.constant
Class LeadType

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

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

Constants for Lead type.

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

Field Summary
static int _BINARY
           
static int _SOURCE
           
static LeadType BINARY
           
static LeadType SOURCE
           
static LeadType 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 LeadType getLeadType(int type)
          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 LeadType UNKNOWN

_BINARY

public static final int _BINARY
See Also:
Constant Field Values

BINARY

public static final LeadType BINARY

_SOURCE

public static final int _SOURCE
See Also:
Constant Field Values

SOURCE

public static final LeadType SOURCE
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

getLeadType

public static LeadType getLeadType(int type)
Get a enum of this class by id

Parameters:
type - 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.