com.jguild.jrpm.io.constant

Class RPMIndexType

public final class RPMIndexType extends Object implements EnumIf

Constants for index type.

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

Field Summary
static RPMIndexTypeBIN
static RPMIndexTypeCHAR
static RPMIndexTypeI18NSTRING
static RPMIndexTypeINT16
static RPMIndexTypeINT32
static RPMIndexTypeINT64
static RPMIndexTypeINT8
static RPMIndexTypeNULL
static RPMIndexTypeSTRING
static RPMIndexTypeSTRING_ARRAY
static RPMIndexTypeUNKNOWN
static int_BIN
static int_CHAR
static int_I18NSTRING
static int_INT16
static int_INT32
static int_INT64
static int_INT8
static int_NULL
static int_STRING
static int_STRING_ARRAY
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()
StringgetName()
static RPMIndexTypegetRPMIndexType(long type)
Get a enum of this class by id
intgetSize()
Get the size of this enum in byte
StringtoString()

Field Detail

BIN

public static final RPMIndexType BIN

CHAR

public static final RPMIndexType CHAR

I18NSTRING

public static final RPMIndexType I18NSTRING

INT16

public static final RPMIndexType INT16

INT32

public static final RPMIndexType INT32

INT64

public static final RPMIndexType INT64

INT8

public static final RPMIndexType INT8

NULL

public static final RPMIndexType NULL

STRING

public static final RPMIndexType STRING

STRING_ARRAY

public static final RPMIndexType STRING_ARRAY

UNKNOWN

public static final RPMIndexType UNKNOWN

_BIN

public static final int _BIN

_CHAR

public static final int _CHAR

_I18NSTRING

public static final int _I18NSTRING

_INT16

public static final int _INT16

_INT32

public static final int _INT32

_INT64

public static final int _INT64

_INT8

public static final int _INT8

_NULL

public static final int _NULL

_STRING

public static final int _STRING

_STRING_ARRAY

public static final int _STRING_ARRAY

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()

getName

public String getName()

getRPMIndexType

public static RPMIndexType getRPMIndexType(long type)
Get a enum of this class by id

Parameters: type The id

Returns: The enum object

getSize

public int getSize()
Get the size of this enum in byte

Returns: The size in byte

toString

public String toString()