|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object biz.chitec.quarterback.gjsa.ChatSymbolHolder
Symbol holder class. For speed reasons, chat symbols should be represented as integer numbers in a program. For convenience and error preventing reasons, chat symbols should be represented as strings in a programm. To allow both representation schemes, ChatSymbolHolder objects can be used to hold the objects as constant values (allowing switch-case-constructs in the program) and access them also in string form.
Normally, a real chat symbol holder is built on top of this small abstract class through the SymbolToJava programm, which acts as a kind of preprocessor.
biz.chitec.qapp.symboltojava.SymbolToJava
Constructor Summary | |
ChatSymbolHolder()
|
Method Summary | |
int |
anyToNumeric(java.lang.Object x)
Returns the integer representation of the symbol which has been referenced by any means. |
boolean |
equals(java.lang.Object o)
Checks equality based on the classes only. |
int[] |
getAllSymbols()
Return an array with all numeric symbol values. |
QuickIntArray |
getAllSymbolsQIA()
Returns a QuickIntArray with all numeric symbol values. |
abstract java.lang.String |
getSymbolSetName()
Return the name of the symbol set. |
abstract int[] |
getSymbolSetVersion()
Version of the symbol set in version-subversion-patchlevel type. |
java.util.List |
getSymbolSetVersionV()
Return the version number as a list. |
abstract java.lang.String |
numericToSymbol(int numeric)
Return the string-based representation of the symbol. |
abstract int |
symbolToNumeric(java.lang.String symbol)
Return the numeric equivalent to a symbol given as String. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ChatSymbolHolder()
Method Detail |
public abstract int symbolToNumeric(java.lang.String symbol)
symbol
- Value of the symbol as String
public abstract java.lang.String numericToSymbol(int numeric)
numeric
- The symbol's integer value.
public abstract java.lang.String getSymbolSetName()
public abstract int[] getSymbolSetVersion()
public java.util.List getSymbolSetVersionV()
public int anyToNumeric(java.lang.Object x)
x
- An object somehow representing a symbol.
public boolean equals(java.lang.Object o)
public int[] getAllSymbols()
java.lang.UnsupportedOperationException
- If the method has not been defined in the subclass.public QuickIntArray getAllSymbolsQIA()
java.lang.UnsupportedOperationException
- If getAllSymbols() has not been defined in the subclass.
|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |