|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.version.SystemType
Defines system types. A system type tells the user in which mode (test, debug, production, develop, ...) the application runs.
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 |
private static final long serialVersionUID
public static final SystemType SYSTYPE_NONE
public static final SystemType SYSTYPE_PRODUCTION
public static final SystemType SYSTYPE_TEST
public static final SystemType SYSTYPE_DEBUG
public static final SystemType SYSTYPE_DEVELOP
public static final SystemType SYSTYPE_DEMO
private java.lang.String code
private java.lang.String name
private static final SystemType[] ALL
Constructor Detail |
private SystemType(java.lang.String code, java.lang.String name)
code
- The code or keyname
- The display valueMethod Detail |
public java.lang.String getNiceName()
public boolean isTestSystem()
public boolean isProductionSystem()
public static SystemType parse(java.lang.String code)
code
- String to parse
public java.lang.String getCode()
public boolean equals(java.lang.Object obj)
obj
- The object to compare this SystemType
object against.
true
if the internal types are equal;
false
otherwise.public int hashCode()
Object.hashCode()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |