|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ericsson.tic.vi.Parser
public class Parser
Handles all parsing and encoding.
| Constructor Summary | |
|---|---|
Parser()
|
|
| Method Summary | |
|---|---|
private static void |
chat(String s)
Prints a message to all ConsolePanels. |
private static void |
d(String s)
Prints a message to all ConsolePanels. |
private static void |
dbrec(String s)
Prints a message to all ConsolePanels. |
private static void |
def(String s)
Prints a message to all ConsolePanels. |
private static void |
help()
Prints a help text message to all ConsolePanels. |
static void |
parseMessageInput(String s)
This method parses messages from the master system. |
static void |
parseUserInput(String s)
Parse user input. |
static void |
printArr(String[] s)
Prints an array of strings. |
private static void |
udpsent(String s)
Prints a message to all ConsolePanels. |
private static void |
user(String s)
Prints a message to all ConsolePanels. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Parser()
| Method Detail |
|---|
public static void parseMessageInput(String s)
strategy 0: (nodes)
dataParseName host value
token[0] token[1] token[2]
strategy 1: (nodes)
dataParseName host category value
token[0] token[1] token[2] token[3]
strategy 2: (nodes)
dataParseName host category value1 value2 ... valueN
token[0] token[1] token[2] token[3] token[4] ... token[N+2]
strategy 3: (relations)
dataParseName host_host value
token[0] token[1] token[2]
parsing of token[1]: (split by "_")
host1 host2
token[0] token[1]
strategy 4: (relations)
dataParseName host_host value1 value2
token[0] token[1] token[2] token[3]
parsing of token[1]: (split by "_")
host1 host2
token[0] token[1]
s - The server input message which needs to be parsed.private static void dbrec(String s)
s - The messageprivate static void udpsent(String s)
s - The messageprivate static void chat(String s)
s - The messageprivate static void def(String s)
s - The messageprivate static void d(String s)
s - The messageprivate static void user(String s)
s - The messagepublic static void printArr(String[] s)
s - The messageprivate static void help()
public static void parseUserInput(String s)
s - The message which is to be parsed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||