public class CupAddRefArgumentTranslator extends CupArgumentTranslator
FLAG_CLASS, FLAG_ID, FLAG_PATH, FLAG_SYSTEMACL, FLAG_USER, FLAG_VALUEDEFAULT, PARAMETER_FLAGKEY, PARAMETER_FLAGVALUE, PARAMETER_POSITIONAL
CMDKEY
Constructor and Description |
---|
CupAddRefArgumentTranslator() |
Modifier and Type | Method and Description |
---|---|
protected void |
handlePositional(int pos,
String positional,
CommandContext state,
Hashtable tState)
Handles the positional arguments that cup uses during the AddRef command.
|
protected void |
initialize(CommandContext state,
Object invoker,
Hashtable tState)
Base implemtation does nothing
|
protected void |
postParse(CommandContext state,
Object invoker,
Hashtable tState)
Converts the source and destination paths provided in arguments
to object instances.
|
getPotentialArgs, getPotentialFlags, handleFlag, resolveObject
parse, translate
protected void initialize(CommandContext state, Object invoker, Hashtable tState) throws IfsException
initialize
in class CupArgumentTranslator
state
- instance of command contextinvoker
- invoker of the command; Generally a subclass of IfsServerChanneltState
- hashtable used to store flagsIfsException
- if the operation failsprotected void postParse(CommandContext state, Object invoker, Hashtable tState) throws IfsException
postParse
in class CommandlineArgumentTranslator
state
- instance of command contextinvoker
- invoker of the command; Generally a subclass of IfsServerChannel.IfsException
- if the operation fails.protected void handlePositional(int pos, String positional, CommandContext state, Hashtable tState) throws IfsException
handlePositional
in class CupArgumentTranslator
pos
- position of the argumentpositional
- string corresponding to the positionstate
- instance of CommandContexttState
- hashtable used to store flagsIfsException
- if the operation fails.Copyright © 2023. All rights reserved.