org.gjt.universe
Class DBType

java.lang.Object
  |
  +--org.gjt.universe.DBType
All Implemented Interfaces:
java.io.Serializable

public final class DBType
extends java.lang.Object
implements java.io.Serializable

Enumerated type for the DBItem class.

See Also:
Index, DBItem, Serialized Form

Field Summary
static DBType Civ
           
static DBType Cost
           
static DBType Fleet
           
static DBType Galaxy
           
private  java.lang.String id
           
static DBType Knowledge
           
static DBType Module
           
static DBType ModuleDesign
           
static DBType Planet
           
static DBType Ship
           
static DBType ShipDesign
           
static DBType Station
           
static DBType System
           
static DBType Tech
           
static DBType Undefined
           
 
Constructor Summary
private DBType(java.lang.String inID)
           
 
Method Summary
static DBType getType(Index idx)
          Get the DBType corresponding to an Index object.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

private java.lang.String id

Undefined

public static final DBType Undefined

Cost

public static final DBType Cost

Fleet

public static final DBType Fleet

Galaxy

public static final DBType Galaxy

Knowledge

public static final DBType Knowledge

ModuleDesign

public static final DBType ModuleDesign

Module

public static final DBType Module

Planet

public static final DBType Planet

Civ

public static final DBType Civ

ShipDesign

public static final DBType ShipDesign

Ship

public static final DBType Ship

Station

public static final DBType Station

System

public static final DBType System

Tech

public static final DBType Tech
Constructor Detail

DBType

private DBType(java.lang.String inID)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getType

public static DBType getType(Index idx)
Get the DBType corresponding to an Index object.

Parameters:
idx - the Index to find the type for
Returns:
the corresponding DBType, or null if it is unknown


Copyright © 2001 Universe Dev Team All Rights Reserved.