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

Quick Search    Search Deep

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

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
           
private  EnumIf delegate
           
static RPMIndexType I18NSTRING
           
static RPMIndexType INT16
           
static RPMIndexType INT32
           
static RPMIndexType INT64
           
static RPMIndexType INT8
           
static RPMIndexType NULL
           
private  int size
           
static RPMIndexType STRING
           
static RPMIndexType STRING_ARRAY
           
static RPMIndexType UNKNOWN
           
 
Fields inherited from interface com.jguild.jrpm.io.constant.EnumIf
_UNKNOWN
 
Constructor Summary
private RPMIndexType(int type, java.lang.String name, int size)
           
 
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()
          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 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

delegate

private EnumIf delegate

size

private int size
Constructor Detail

RPMIndexType

private RPMIndexType(int type,
                     java.lang.String name,
                     int size)
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


getRPMIndexType

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


getSize

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


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