public class CupLsArgumentTranslator extends CupArgumentTranslator
| Modifier and Type | Field and Description |
|---|---|
protected String |
FLAG_ALL
String representing the allattrs.
|
protected String |
FLAG_LONG_FORMAT
String representing the long format.
|
protected String |
FLAG_NAMES_ONLY
String representing the names only.
|
protected String |
FLAG_SOME
String representing the some attrs.
|
FLAG_CLASS, FLAG_ID, FLAG_PATH, FLAG_SYSTEMACL, FLAG_USER, FLAG_VALUEDEFAULT, PARAMETER_FLAGKEY, PARAMETER_FLAGVALUE, PARAMETER_POSITIONALCMDKEY| Constructor and Description |
|---|
CupLsArgumentTranslator() |
| Modifier and Type | Method and Description |
|---|---|
protected LibraryObject[] |
expandFolders(LibraryObject[] los) |
protected int[] |
getPotentialArgs()
Gets the argument type a particular flag is expecting.
|
protected String[] |
getPotentialFlags()
Gets the potentails flags that the
object might be expecting.
|
protected void |
handleFlag(String flagKey,
String flagValue,
CommandContext state,
Hashtable tstate)
Handles a flags and arguments in the command line.
|
protected void |
initialize(CommandContext state,
Object invoker,
Hashtable tState)
Initialize
|
protected void |
postParse(CommandContext state,
Object invoker,
Hashtable tState)
gets the object associated with the path
|
handlePositional, resolveObjectparse, translateprotected final String FLAG_ALL
protected final String FLAG_SOME
protected final String FLAG_NAMES_ONLY
protected final String FLAG_LONG_FORMAT
protected String[] getPotentialFlags()
getPotentialFlags in class CupArgumentTranslatorprotected int[] getPotentialArgs()
getPotentialArgs in class CupArgumentTranslatorprotected void handleFlag(String flagKey, String flagValue, CommandContext state, Hashtable tstate) throws IfsException
handleFlag in class CupArgumentTranslatorflagKey - key used to identify the flag in the command lineflagValue - value of the flagstate - instance of CommandContext objecttstate - hashtable which stores parametersIfsException - if the operation failsprotected void initialize(CommandContext state, Object invoker, Hashtable tState) throws IfsException
initialize in class CupArgumentTranslatorstate - instance of CommandContextinvoker - invoker of this command; usually CupServerChanneltState - hashtable used to store flagsIfsException - if the operation failsprotected void postParse(CommandContext state, Object invoker, Hashtable tState) throws IfsException
postParse in class CommandlineArgumentTranslatorIfsExceptionprotected LibraryObject[] expandFolders(LibraryObject[] los) throws IfsException
IfsExceptionCopyright © 2025. All rights reserved.