public class CupLoginArgumentTranslator extends CommandlineArgumentTranslator
| Modifier and Type | Field and Description |
|---|---|
static String |
COUNTRY_FLAG |
static String |
LANGUAGE_FLAG |
CMDKEY| Constructor and Description |
|---|
CupLoginArgumentTranslator() |
| Modifier and Type | Method and Description |
|---|---|
protected int[] |
getPotentialArgs()
Gets the argument type a particular flag is expecting
as defined by
oracle.ifs.utils.commandline.CommandlineArguments
|
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 LANGUAGE_FLAG and COUNTRY_FLAG occurences.
|
protected void |
handlePositional(int pos,
String positional,
CommandContext state,
Hashtable tState)
Handles the positionals that cup uses during the LoginCommand.
|
protected void |
initialize(CommandContext state,
Object invoker,
Hashtable tState)
Base implemtation does nothing
|
protected void |
postParse(CommandContext state,
Object invoker,
Hashtable tState)
Adds an existing LibrarySession to the ExecutionArgs if
one exists.
|
parse, translatepublic static final String LANGUAGE_FLAG
public static final String COUNTRY_FLAG
protected void initialize(CommandContext state, Object invoker, Hashtable tState) throws IfsException
initialize in class CommandlineArgumentTranslatorIfsExceptionprotected void postParse(CommandContext state, Object invoker, Hashtable tState) throws IfsException
postParse in class CommandlineArgumentTranslatorIfsExceptionprotected void handlePositional(int pos,
String positional,
CommandContext state,
Hashtable tState)
throws IfsException
handlePositional in class CommandlineArgumentTranslatorIfsExceptionprotected 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 CommandlineArgumentTranslatorIfsExceptionCopyright © 2025. All rights reserved.