Constructor and Description |
---|
AbstractProgram() |
Modifier and Type | Method and Description |
---|---|
protected String |
getArg(String[] args,
int pos,
String errMsg)
Get the argument from the specified position.
|
protected org.entityfs.el.AbsoluteLocation |
getParentLocation(File f)
Get the absolute location of the file's parent directory.
|
protected boolean |
isFlagArgument(String arg)
Is the argument a flag argument, i.e.
|
protected String getArg(String[] args, int pos, String errMsg) throws CommandErrorException
CommandErrorException
having the supplied error message.args
- The argument array.pos
- The position in the array of the argument.errMsg
- The error message to use for the exception if the position
is beyond the end of the array.CommandErrorException
- If the position is beyond the end of the
array.protected boolean isFlagArgument(String arg)
-
?arg
- The argument.true
if the argument is a flag argument.protected org.entityfs.el.AbsoluteLocation getParentLocation(File f)
f
- The file