|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.beasys.commerce.util.CommandLineArgumentHelper
CommandLineArgumentHelper
public class CommandLineArgumentHelper
Convenience helper for handling command line arguments.
Field Summary | |
---|---|
protected static String |
LINE_FEED
Deprecated |
static Object |
REGULAR_ARGS
Deprecated |
Constructor Summary | |
---|---|
CommandLineArgumentHelper()
Deprecated |
Method Summary | |
---|---|
protected static CommandLineArgument |
getArgument(String aFlag,
List args)
Deprecated Get argument. |
protected static String |
getUsageText(boolean isRequired,
List arguments)
Deprecated Get usage text. |
protected static boolean |
isRequired(String aFlag,
List args)
Deprecated Is required. |
static Map |
mapArguments(String[] args,
List arguments)
Deprecated Map the arguments. |
protected static boolean |
requiresFlagValue(String aFlag,
List args)
Deprecated Requires flag value. |
static String |
usage(Class aClass,
List arguments)
Deprecated Usage. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String LINE_FEED
public static final Object REGULAR_ARGS
Constructor Detail |
---|
public CommandLineArgumentHelper()
Method Detail |
---|
public static String usage(Class aClass, List arguments)
aClass
- arguments
-
String
protected static String getUsageText(boolean isRequired, List arguments)
isRequired
- arguments
-
String
protected static CommandLineArgument getArgument(String aFlag, List args)
aFlag
- args
-
CommandLineArgument
protected static boolean requiresFlagValue(String aFlag, List args)
aFlag
- args
-
boolean
protected static boolean isRequired(String aFlag, List args)
aFlag
- args
-
boolean
public static Map mapArguments(String[] args, List arguments)
args
- args fromarguments
- list of CommandLineArgument(s).
Map
the key is the CommandLineArgument, the value is
a List of values for the CommandLineArgument.
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |