| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Protocol.DocumentKeyword>
net.sourceforge.obby4j.Protocol.DocumentKeyword
public static enum Protocol.DocumentKeyword
A list of all subcommand keywords of the obby_document
 command known to this implementation of the obby protocol.
 
 Parameters given here are appended behind the obby_document
 keyword, the document ID and the document keyword itself, i.e.
 obby_document:1 1:subscribe:2 would only have the "2"
 listed here as parameter.
Keyword.obby_document| Enum Constant Summary | |
|---|---|
record
Parameters by client: local opcount, remote opcount, "ins"|"del", contents  | 
|
subscribe
Parameters: user ID (TODO what is the client supposed to send here?)  | 
|
sync_init
Parameters: number of lines to be synced  | 
|
sync_line
Parameters: line contents, (start index, author user ID)+  | 
|
unsubscribe
Parameters: user ID (TODO what is the client supposed to send here?)  | 
|
| Method Summary | |
|---|---|
static Protocol.DocumentKeyword | 
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.  | 
static Protocol.DocumentKeyword[] | 
values()
Returns an array containing the constants of this enum type, in the order they're declared.  | 
| Methods inherited from class java.lang.Enum | 
|---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf | 
| Methods inherited from class java.lang.Object | 
|---|
getClass, notify, notifyAll, wait, wait, wait | 
| Enum Constant Detail | 
|---|
public static final Protocol.DocumentKeyword record
Parameters by client: local opcount, remote opcount, "ins"|"del", contents
Parameters by server: remote opcount, local opcount, "ins"|"del", contents
Send by both client and server. Note the reversed local/remote opcounts.
public static final Protocol.DocumentKeyword subscribe
Sent by both client and server.
public static final Protocol.DocumentKeyword sync_init
Sent by server only.
public static final Protocol.DocumentKeyword sync_line
Send by server only.
public static final Protocol.DocumentKeyword unsubscribe
Sent by both client and server.
| Method Detail | 
|---|
public static Protocol.DocumentKeyword valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namepublic static final Protocol.DocumentKeyword[] values()
for(Protocol.DocumentKeyword c : Protocol.DocumentKeyword.values())
        System.out.println(c);
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||