org.globus.cog.gridshell.commands
Class CommandProperties

java.lang.Object
  extended byorg.globus.cog.gridshell.model.ScopeableProperties
      extended byorg.globus.cog.gridshell.commands.CommandProperties

public class CommandProperties
extends ScopeableProperties

A class used to create commands from a properties file

Example configuration file:

# some inherited files
gridshell.command.inherited.1=${this.path.string}/inherited-1.properties
gridshell.command.inherited.2=${this.path.string}/inherited-2.properties
# some commands
gridshell.command.id.1.org.globus.cog.gridshell.command.gsh.clear=my clear command
gridshell.command.id.2.org.globus.cog.gridshell.command.gsh.clear=clear
gridshell.command.id.1.org.globus.cog.gridshell.command.gsh.echo=echo
# <file-name> should be a value that can be passed to new File(<file-name>)
gridshell.command.inherit.1=<file-name> gridshell.command.inherit.2=<file-name>


Nested Class Summary
 
Nested classes inherited from class org.globus.cog.gridshell.model.ScopeableProperties
ScopeableProperties.KeyComparator
 
Field Summary
static String PREFIX_COMMAND
           
static String PREFIX_INHERIT
           
static String PREFIX_MAN
           
 
Constructor Summary
CommandProperties(File file)
           
 
Method Summary
 Collection getClasses()
           
 Scope getCommands()
           
 String getCommandValue(String id)
           
 Scope getManPages()
           
 
Methods inherited from class org.globus.cog.gridshell.model.ScopeableProperties
createList, getFile, getProperty, getProperty, getScope, getSubScope, initScope, keySet, keySet, load, loadFromFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFIX_INHERIT

public static final String PREFIX_INHERIT
See Also:
Constant Field Values

PREFIX_COMMAND

public static final String PREFIX_COMMAND
See Also:
Constant Field Values

PREFIX_MAN

public static final String PREFIX_MAN
See Also:
Constant Field Values
Constructor Detail

CommandProperties

public CommandProperties(File file)
                  throws IOException,
                         ScopeException
Method Detail

getCommandValue

public String getCommandValue(String id)

getManPages

public Scope getManPages()

getCommands

public Scope getCommands()

getClasses

public Collection getClasses()