net.ponder2
Enum ShellInstance.Commands

java.lang.Object
  extended by java.lang.Enum<ShellInstance.Commands>
      extended by net.ponder2.ShellInstance.Commands
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ShellInstance.Commands>
Enclosing class:
ShellInstance

protected static enum ShellInstance.Commands
extends java.lang.Enum<ShellInstance.Commands>

the internal commands recognised by the shell


Enum Constant Summary
ap
           
apply
           
cd
           
event
           
help
           
ln
           
lp
           
ls
           
md
           
mkdir
           
mkdom
           
mkpolicy
           
mv
           
policy
           
rd
           
read
           
rm
           
rmdir
           
rmdom
           
 
Method Summary
static ShellInstance.Commands valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ShellInstance.Commands[] 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

help

public static final ShellInstance.Commands help

read

public static final ShellInstance.Commands read

ls

public static final ShellInstance.Commands ls

cd

public static final ShellInstance.Commands cd

mkdom

public static final ShellInstance.Commands mkdom

mkdir

public static final ShellInstance.Commands mkdir

md

public static final ShellInstance.Commands md

rm

public static final ShellInstance.Commands rm

rmdom

public static final ShellInstance.Commands rmdom

rmdir

public static final ShellInstance.Commands rmdir

rd

public static final ShellInstance.Commands rd

mkpolicy

public static final ShellInstance.Commands mkpolicy

mv

public static final ShellInstance.Commands mv

ln

public static final ShellInstance.Commands ln

lp

public static final ShellInstance.Commands lp

apply

public static final ShellInstance.Commands apply

ap

public static final ShellInstance.Commands ap

policy

public static final ShellInstance.Commands policy

event

public static final ShellInstance.Commands event
Method Detail

values

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

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

valueOf

public static ShellInstance.Commands 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


Copyright © 2008 Imperial College. All Rights Reserved.