public enum ScopeMessage extends Enum<ScopeMessage> implements Message
| Enum Constant and Description |
|---|
CONNECT |
DEFAULT |
DISABLE |
DISCONNECT |
ENABLE |
HOST_INFO |
INFO |
MESSAGE_INFO |
QUIT |
| Modifier and Type | Method and Description |
|---|---|
static ScopeMessage |
get(int code) |
int |
getID()
Get command id to execute on host, service definitions are available on Scope Interface
|
String |
getServiceName()
Associates a command id with a service name
|
static ScopeMessage |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScopeMessage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScopeMessage CONNECT
public static final ScopeMessage DISCONNECT
public static final ScopeMessage ENABLE
public static final ScopeMessage DISABLE
public static final ScopeMessage INFO
public static final ScopeMessage QUIT
public static final ScopeMessage HOST_INFO
public static final ScopeMessage MESSAGE_INFO
public static final ScopeMessage DEFAULT
public static ScopeMessage[] values()
for (ScopeMessage c : ScopeMessage.values()) System.out.println(c);
public static ScopeMessage valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic int getID()
Messagepublic String getServiceName()
MessagegetServiceName in interface Messagepublic static ScopeMessage get(int code)
Copyright © 2012. All Rights Reserved.