com.cc.framework.version
Class SystemType

java.lang.Object
  extended bycom.cc.framework.version.SystemType
All Implemented Interfaces:
java.io.Serializable, SimpleEnumType

public final class SystemType
extends java.lang.Object
implements SimpleEnumType, java.io.Serializable

Defines system types. A system type tells the user in which mode (test, debug, production, develop, ...) the application runs.

Since:
1.0
Version:
$Revision: 1.16 $
Author:
Harald Schulz
See Also:
Serialized Form

Field Summary
private static SystemType[] ALL
          Collection of all kind of types
private  java.lang.String code
          Code or internal key
private  java.lang.String name
          Display value
private static long serialVersionUID
          Serial Version UID
static SystemType SYSTYPE_DEBUG
          system type: SYSTYPE_DEBUG
static SystemType SYSTYPE_DEMO
          system type: Field SYSTYPE_DEMO
static SystemType SYSTYPE_DEVELOP
          system type: Field SYSTYPE_DEVELOP
static SystemType SYSTYPE_NONE
          system type: Field SYSTYPE_NONE
static SystemType SYSTYPE_PRODUCTION
          system type: SYSTYPE_PRODUCTION
static SystemType SYSTYPE_TEST
          system type: SYSTYPE_TEST
 
Constructor Summary
private SystemType(java.lang.String code, java.lang.String name)
          Constructor for SystemType
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares this type to the specified object.
 java.lang.String getCode()
          Returns the code
 java.lang.String getNiceName()
          Returns the display value
 int hashCode()
           
 boolean isProductionSystem()
          Returns true for a production system
 boolean isTestSystem()
          Returns true for a test system
static SystemType parse(java.lang.String code)
          Creates for the argument an Object of type SystemType
 java.lang.String toString()
          Returns the name as a string representation for the object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

SYSTYPE_NONE

public static final SystemType SYSTYPE_NONE
system type: Field SYSTYPE_NONE


SYSTYPE_PRODUCTION

public static final SystemType SYSTYPE_PRODUCTION
system type: SYSTYPE_PRODUCTION


SYSTYPE_TEST

public static final SystemType SYSTYPE_TEST
system type: SYSTYPE_TEST


SYSTYPE_DEBUG

public static final SystemType SYSTYPE_DEBUG
system type: SYSTYPE_DEBUG


SYSTYPE_DEVELOP

public static final SystemType SYSTYPE_DEVELOP
system type: Field SYSTYPE_DEVELOP


SYSTYPE_DEMO

public static final SystemType SYSTYPE_DEMO
system type: Field SYSTYPE_DEMO


code

private java.lang.String code
Code or internal key


name

private java.lang.String name
Display value


ALL

private static final SystemType[] ALL
Collection of all kind of types

Constructor Detail

SystemType

private SystemType(java.lang.String code,
                   java.lang.String name)
Constructor for SystemType

Parameters:
code - The code or key
name - The display value
Method Detail

getNiceName

public java.lang.String getNiceName()
Returns the display value

Returns:
String

isTestSystem

public boolean isTestSystem()
Returns true for a test system

Returns:
boolean

isProductionSystem

public boolean isProductionSystem()
Returns true for a production system

Returns:
boolean

parse

public static SystemType parse(java.lang.String code)
Creates for the argument an Object of type SystemType

Parameters:
code - String to parse
Returns:
SystemType

getCode

public java.lang.String getCode()
Returns the code

Returns:
String

equals

public boolean equals(java.lang.Object obj)
Compares this type to the specified object.

Parameters:
obj - The object to compare this SystemType object against.
Returns:
true if the internal types are equal; false otherwise.

hashCode

public int hashCode()
See Also:
Object.hashCode()

toString

public java.lang.String toString()
Returns the name as a string representation for the object

Returns:
String


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.