Package jade
Class BootHelper
- java.lang.Object
-
- jade.BootHelper
-
public class BootHelper extends Object
This class provides a number of methods that help in parsing the command line. It is also used by the StartNewAgent class of the RMA.- Version:
- $Date$ $Revision$
-
-
Constructor Summary
Constructors Constructor Description BootHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetAgentArgument(String arg, List as)EnumerationgetCommandLineAgentSpecifiers(Vector args)parse an array of Strings and return an Iterator ofSpecifierThis method is declared public because it is currently used byjade.tools.rma.StartNewAgentActionVectorT2(String s1, boolean keepquote)Reads the passed String and decompose it into a vector of Strings.
-
-
-
Method Detail
-
T2
public Vector T2(String s1, boolean keepquote)
Reads the passed String and decompose it into a vector of Strings. Each String is a token of type agentName: or className( or argument This method is declared public because it is currently used byjade.tools.rma.StartNewAgentAction- Parameters:
s1- The source string.keepquote- when true no char is removed, apart from blanks between tokens. when false, quote chars are removed and also escaped quotes become just quotes.- Returns:
- The vector of strings.
-
getCommandLineAgentSpecifiers
public Enumeration getCommandLineAgentSpecifiers(Vector args)
parse an array of Strings and return an Iterator ofSpecifierThis method is declared public because it is currently used byjade.tools.rma.StartNewAgentAction- Parameters:
args- is an array of string of agent specifiers of the type "name:class(arguments)"- Returns:
- an Iterator over a List of
Specifier
-
-