public class CupFindArgumentTranslator extends CommandlineArgumentTranslator
| Modifier and Type | Field and Description | 
|---|---|
protected String | 
FLAG_LIST_ATTRALL
String representing the all attribute listing flag. 
 | 
protected String | 
FLAG_LIST_ATTRNAME
String representing the attribute name based lisiting flag. 
 | 
protected String | 
FLAG_LIST_LONG
String representing the long format lisiting flag. 
 | 
CMDKEY| Constructor and Description | 
|---|
CupFindArgumentTranslator()  | 
| 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 | 
handlePositional(int pos,
                String positional,
                CommandContext state,
                Hashtable tState)
Handles the positional arguments that cup uses during the FIND command. 
 | 
protected void | 
initialize(CommandContext state,
          Object invoker,
          Hashtable tstate)
Initialize the argument translator. 
 | 
protected void | 
postParse(CommandContext state,
         Object invoker,
         Hashtable tstate)
Sets up the InvokeSelectorAndListOutputContext with parameters required 
 | 
parse, translateprotected final String FLAG_LIST_LONG
protected final String FLAG_LIST_ATTRNAME
protected final String FLAG_LIST_ATTRALL
protected void initialize(CommandContext state, Object invoker, Hashtable tstate) throws IfsException
initialize in class CommandlineArgumentTranslatorstate - 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 CommandlineArgumentTranslatorstate - instance of CommandContextinvoker - invoker of this command; usually CupServerChanneltstate - hashtable used to store flagsIfsException - if the operation failsprotected String[] getPotentialFlags()
getPotentialFlags in class CommandlineArgumentTranslatorprotected int[] getPotentialArgs()
getPotentialArgs in class CommandlineArgumentTranslatorprotected void handleFlag(String flagKey, String flagValue, CommandContext state, Hashtable tstate) throws IfsException
handleFlag in class CommandlineArgumentTranslatorflagKey - 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 handlePositional(int pos,
                                String positional,
                                CommandContext state,
                                Hashtable tState)
                         throws IfsException
handlePositional in class CommandlineArgumentTranslatorpos - position of the argumentpositional - string corresponding to the positionstate - instance of CommandContextIfsException - if the operation fails.Copyright © 2025. All rights reserved.