com.jguild.jrpm.io.constant

Class LeadType

public final class LeadType extends 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 LeadTypeBINARY
static LeadTypeSOURCE
static LeadTypeUNKNOWN
static int_BINARY
static int_SOURCE
Method Summary
static booleancontainsEnumId(Long id)
Check if this enum class contains a enum of a specified id
static EnumIfgetEnumById(long id)
Get a enum by id
static EnumIfgetEnumByName(String name)
Get a enum by name
static String[]getEnumNames()
Get all defined enums of this class
longgetId()
static LeadTypegetLeadType(int type)
Get a enum of this class by id
StringgetName()
StringtoString()

Field Detail

BINARY

public static final LeadType BINARY

SOURCE

public static final LeadType SOURCE

UNKNOWN

public static final LeadType UNKNOWN

_BINARY

public static final int _BINARY

_SOURCE

public static final int _SOURCE

Method Detail

containsEnumId

public static boolean containsEnumId(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

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(String name)
Get a enum by name

Parameters: name The name of the enum

Returns: The enum object

getEnumNames

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

Returns: An array of all defined enum objects

getId

public long getId()

getLeadType

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

Parameters: type The id

Returns: The enum object

getName

public String getName()

toString

public String toString()