com.opera.core.systems.scope
Enum PrefsCommand

java.lang.Object
  extended by java.lang.Enum<PrefsCommand>
      extended by com.opera.core.systems.scope.PrefsCommand
All Implemented Interfaces:
ICommand, java.io.Serializable, java.lang.Comparable<PrefsCommand>

public enum PrefsCommand
extends java.lang.Enum<PrefsCommand>
implements ICommand


Enum Constant Summary
DEFAULT
           
GET_PREF
           
LIST_PREFS
           
SET_PREF
           
 
Method Summary
static PrefsCommand get(int code)
           
 int getCommandID()
          Get command id to execute on host, service definitions are available on Scope Interface
 java.lang.String getServiceName()
          Associates a command id with a service name
static PrefsCommand valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PrefsCommand[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GET_PREF

public static final PrefsCommand GET_PREF

LIST_PREFS

public static final PrefsCommand LIST_PREFS

SET_PREF

public static final PrefsCommand SET_PREF

DEFAULT

public static final PrefsCommand DEFAULT
Method Detail

values

public static PrefsCommand[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PrefsCommand c : PrefsCommand.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PrefsCommand valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getCommandID

public int getCommandID()
Description copied from interface: ICommand
Get command id to execute on host, service definitions are available on Scope Interface

Specified by:
getCommandID in interface ICommand
Returns:
The id associated with the command

getServiceName

public java.lang.String getServiceName()
Description copied from interface: ICommand
Associates a command id with a service name

Specified by:
getServiceName in interface ICommand
Returns:
Name of the service the command belongs to

get

public static PrefsCommand get(int code)


Copyright © 2011. All Rights Reserved.