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, translate
public 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 CommandlineArgumentTranslator
IfsException
protected void postParse(CommandContext state, Object invoker, Hashtable tState) throws IfsException
postParse
in class CommandlineArgumentTranslator
IfsException
protected void handlePositional(int pos, String positional, CommandContext state, Hashtable tState) throws IfsException
handlePositional
in class CommandlineArgumentTranslator
IfsException
protected String[] getPotentialFlags()
getPotentialFlags
in class CommandlineArgumentTranslator
protected int[] getPotentialArgs()
getPotentialArgs
in class CommandlineArgumentTranslator
protected void handleFlag(String flagKey, String flagValue, CommandContext state, Hashtable tState) throws IfsException
handleFlag
in class CommandlineArgumentTranslator
IfsException
Copyright © 2023. All rights reserved.