public class CupGetAttrArgumentTranslator 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_POSITIONAL
CMDKEY
Constructor and Description |
---|
CupGetAttrArgumentTranslator() |
Modifier and Type | Method and Description |
---|---|
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, resolveObject
parse, translate
protected 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 CupArgumentTranslator
protected int[] getPotentialArgs()
getPotentialArgs
in class CupArgumentTranslator
protected void handleFlag(String flagKey, String flagValue, CommandContext state, Hashtable tstate) throws IfsException
handleFlag
in class CupArgumentTranslator
flagKey
- 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 CupArgumentTranslator
state
- 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 CommandlineArgumentTranslator
IfsException
Copyright © 2023. All rights reserved.