org.pm4j.core.pm
Enum PmCommand.CmdKind

java.lang.Object
  extended by java.lang.Enum<PmCommand.CmdKind>
      extended by org.pm4j.core.pm.PmCommand.CmdKind
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PmCommand.CmdKind>
Enclosing interface:
PmCommand

public static enum PmCommand.CmdKind
extends java.lang.Enum<PmCommand.CmdKind>


Enum Constant Summary
COMMAND
          Commands that are in general executeable.
GROUP
          A pure organizational structure of commands.
SEPARATOR
          A separator between command sections of a command list.
 
Method Summary
static PmCommand.CmdKind valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PmCommand.CmdKind[] 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

COMMAND

public static final PmCommand.CmdKind COMMAND
Commands that are in general executeable.

An executeable command may also have subcommands provided by (PmCommand#getSubCommandList()). This way an executeable command may also act as command group.


GROUP

public static final PmCommand.CmdKind GROUP
A pure organizational structure of commands.


SEPARATOR

public static final PmCommand.CmdKind SEPARATOR
A separator between command sections of a command list.

Method Detail

values

public static PmCommand.CmdKind[] 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 (PmCommand.CmdKind c : PmCommand.CmdKind.values())
    System.out.println(c);

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

valueOf

public static PmCommand.CmdKind 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