Class ListDirectoryCommand
- java.lang.Object
-
- jadex.platform.service.cli.ACliCommand
-
- jadex.platform.service.cli.commands.ListDirectoryCommand
-
- All Implemented Interfaces:
ICliCommand
public class ListDirectoryCommand extends ACliCommand
List the file contents of a directory.
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Comparator<FileData>
FILE_COMPARATOR
Comparator for filenodes.
-
Constructor Summary
Constructors Constructor Description ListDirectoryCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArgumentInfo[]
getArgumentInfos(CliContext context)
Get the argument infos.java.lang.String
getDescription()
Get the command description.java.lang.String
getExampleUsage()
Get example usage(s).java.lang.String[]
getNames()
Get the command names (name including alias').ResultInfo
getResultInfo(CliContext clicontext, java.util.Map<java.lang.String,java.lang.Object> args)
Get the result info.java.lang.Object
invokeCommand(CliContext context, java.util.Map<java.lang.String,java.lang.Object> args)
Invoke the command.-
Methods inherited from class jadex.platform.service.cli.ACliCommand
invokeCommand
-
-
-
-
Field Detail
-
FILE_COMPARATOR
public static final java.util.Comparator<FileData> FILE_COMPARATOR
Comparator for filenodes.
-
-
Method Detail
-
getNames
public java.lang.String[] getNames()
Get the command names (name including alias').- Specified by:
getNames
in interfaceICliCommand
- Specified by:
getNames
in classACliCommand
- Returns:
- A string array of the command name and optional further alias names.
-
getDescription
public java.lang.String getDescription()
Get the command description.- Specified by:
getDescription
in interfaceICliCommand
- Overrides:
getDescription
in classACliCommand
- Returns:
- The command description.
-
getExampleUsage
public java.lang.String getExampleUsage()
Get example usage(s).- Specified by:
getExampleUsage
in interfaceICliCommand
- Overrides:
getExampleUsage
in classACliCommand
- Returns:
- Example usages.
-
invokeCommand
public java.lang.Object invokeCommand(CliContext context, java.util.Map<java.lang.String,java.lang.Object> args)
Invoke the command.- Specified by:
invokeCommand
in interfaceICliCommand
- Specified by:
invokeCommand
in classACliCommand
- Parameters:
context
- The context.args
- The arguments.
-
getArgumentInfos
public ArgumentInfo[] getArgumentInfos(CliContext context)
Get the argument infos.- Specified by:
getArgumentInfos
in interfaceICliCommand
- Overrides:
getArgumentInfos
in classACliCommand
- Parameters:
context
- The context.- Returns:
- The argument infos.
-
getResultInfo
public ResultInfo getResultInfo(CliContext clicontext, java.util.Map<java.lang.String,java.lang.Object> args)
Get the result info.- Specified by:
getResultInfo
in interfaceICliCommand
- Overrides:
getResultInfo
in classACliCommand
- Parameters:
context
- The context.- Returns:
- The result info.
-
-