org.lsst.ccs.shell
Class ShellCommand

java.lang.Object
  extended by org.lsst.ccs.shell.ShellCommand
Direct Known Subclasses:
LocalShellCommand

public abstract class ShellCommand
extends Object

Command table entry


Constructor Summary
ShellCommand(String prefix, String name)
           
 
Method Summary
 boolean canBeDenotedBy(String commandName)
           
 String getAbbreviation()
           
 int getArity()
           
 String getDescription()
           
 String getHeader()
           
 String getName()
           
 Class[] getParameterTypes()
           
 ShellCommandParamSpec[] getParamSpecs()
           
 String getPrefix()
           
abstract  Object invoke(Object[] parameters)
           
 boolean isVarArgs()
           
 void setAbbreviation(String abbreviation)
           
 void setDescription(String description)
           
 void setHeader(String header)
           
 void setParamSpecs(ShellCommandParamSpec[] paramSpecs)
           
 boolean startsWith(String prefix)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShellCommand

public ShellCommand(String prefix,
                    String name)
Method Detail

isVarArgs

public boolean isVarArgs()

invoke

public abstract Object invoke(Object[] parameters)
                       throws CLIException
Throws:
CLIException

canBeDenotedBy

public boolean canBeDenotedBy(String commandName)

getArity

public int getArity()

getDescription

public String getDescription()

getPrefix

public String getPrefix()

getName

public String getName()

getAbbreviation

public String getAbbreviation()

setAbbreviation

public void setAbbreviation(String abbreviation)

setDescription

public void setDescription(String description)

setHeader

public void setHeader(String header)

startsWith

public boolean startsWith(String prefix)

toString

public String toString()
Overrides:
toString in class Object

getHeader

public String getHeader()

getParamSpecs

public ShellCommandParamSpec[] getParamSpecs()

getParameterTypes

public Class[] getParameterTypes()

setParamSpecs

public void setParamSpecs(ShellCommandParamSpec[] paramSpecs)


Copyright © 2013 LSST. All Rights Reserved.