cct.cprocessor
Enum CommandObject

java.lang.Object
  extended by java.lang.Enum<CommandObject>
      extended by cct.cprocessor.CommandObject
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CommandObject>

public enum CommandObject
extends java.lang.Enum<CommandObject>

Title: Molecular Structure Viewer/Editor

Description: Computational Chemistry Toolkit

Copyright: Copyright (c) 2007

Company: ANU


Enum Constant Summary
ATOMS
           
BONDS
           
 
Method Summary
 CommandObject getCommandObject(java.lang.String command)
           
 boolean isValidCommandObject(java.lang.String command)
           
static CommandObject valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CommandObject[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ATOMS

public static final CommandObject ATOMS

BONDS

public static final CommandObject BONDS
Method Detail

values

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

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

valueOf

public static CommandObject 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

isValidCommandObject

public boolean isValidCommandObject(java.lang.String command)

getCommandObject

public CommandObject getCommandObject(java.lang.String command)