com.jguild.jrpm.io.constant
Class RPMIndexType

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

public final class RPMIndexType
extends java.lang.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 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
           
static RPMIndexType BIN
           
static RPMIndexType CHAR
           
static RPMIndexType I18NSTRING
           
static RPMIndexType INT16
           
static RPMIndexType INT32
           
static RPMIndexType INT64
           
static RPMIndexType INT8
           
static RPMIndexType NULL
           
static RPMIndexType STRING
           
static RPMIndexType STRING_ARRAY
           
static RPMIndexType 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
 java.lang.String getName()
          Get the name of this enum object
static RPMIndexType getRPMIndexType(long type)
          Get a enum of this class by id
 int getSize()
          Get the size of this enum in byte
 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 RPMIndexType UNKNOWN

_NULL

public static final int _NULL
See Also:
Constant Field Values

NULL

public static final RPMIndexType NULL

_CHAR

public static final int _CHAR
See Also:
Constant Field Values

CHAR

public static final RPMIndexType CHAR

_INT8

public static final int _INT8
See Also:
Constant Field Values

INT8

public static final RPMIndexType INT8

_INT16

public static final int _INT16
See Also:
Constant Field Values

INT16

public static final RPMIndexType INT16

_INT32

public static final int _INT32
See Also:
Constant Field Values

INT32

public static final RPMIndexType INT32

_INT64

public static final int _INT64
See Also:
Constant Field Values

INT64

public static final RPMIndexType INT64

_STRING

public static final int _STRING
See Also:
Constant Field Values

STRING

public static final RPMIndexType STRING

_BIN

public static final int _BIN
See Also:
Constant Field Values

BIN

public static final RPMIndexType BIN

_STRING_ARRAY

public static final int _STRING_ARRAY
See Also:
Constant Field Values

STRING_ARRAY

public static final RPMIndexType STRING_ARRAY

_I18NSTRING

public static final int _I18NSTRING
See Also:
Constant Field Values

I18NSTRING

public static final RPMIndexType I18NSTRING
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

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

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.