ikbs.server.utils
Class Command

java.lang.Object
  extended by ikbs.server.utils.Command

public class Command
extends java.lang.Object

Classe permettant de représenter un objet commande, i.e. une référence à une action et une liste de paramètres

Author:
D. Grosser& T. Nirlo

Field Summary
static int CLOSE
           
static int CREATE_CASE
           
static java.lang.String ID
           
static int INIT
           
static int LOAD_BASE
           
static int LOAD_CASE
           
static int LOAD_MODEL
           
static java.lang.String NAME
          mode = "0"; mode de navigation par défaut (idem pas de paramètre) mode = "1"; mode de navigation complet symbolic="false"; pas d'affichage des symboliques numeric="false"; pas d'affichage des numeric taxonomique="false"; pas d'affichage des taxonomique text="false"; pas d'affichage des text idRub=identificateur de rubrique
 int numCmd
           
 java.util.Map params
           
static java.lang.String PATH
           
static int SELECT_CASES
           
static int SEND_CASE
           
static int SETVALUE
           
static java.lang.String VALUE
           
static int WRONG
           
static int XML
           
static int XML_RESPONSE
           
 
Constructor Summary
Command(java.lang.String cmd)
           
 
Method Summary
 int getNumCmd()
           
 java.lang.String getParam(java.lang.String key)
           
 java.util.Map getParams()
           
 void init(java.lang.String cmd)
          Analyse et initialisation de la commande textuelle
 java.lang.String intToString()
           
 java.lang.String intToString(int i)
          Correspondance entre une commande exprimée sous la forme d'une référence et la chaîne
 void setNumCmd(int numCmd)
           
 void setParams(java.util.Map params)
           
 int stringToInt(java.lang.String sc)
          Correspondance entre une commande exprimée sous la forme d'une chaîne et sa référence
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

WRONG

public static final int WRONG
See Also:
Constant Field Values

INIT

public static final int INIT
See Also:
Constant Field Values

LOAD_MODEL

public static final int LOAD_MODEL
See Also:
Constant Field Values

LOAD_BASE

public static final int LOAD_BASE
See Also:
Constant Field Values

LOAD_CASE

public static final int LOAD_CASE
See Also:
Constant Field Values

CREATE_CASE

public static final int CREATE_CASE
See Also:
Constant Field Values

SELECT_CASES

public static final int SELECT_CASES
See Also:
Constant Field Values

SEND_CASE

public static final int SEND_CASE
See Also:
Constant Field Values

CLOSE

public static final int CLOSE
See Also:
Constant Field Values

XML_RESPONSE

public static final int XML_RESPONSE
See Also:
Constant Field Values

SETVALUE

public static final int SETVALUE
See Also:
Constant Field Values

XML

public static final int XML
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
mode = "0"; mode de navigation par défaut (idem pas de paramètre) mode = "1"; mode de navigation complet symbolic="false"; pas d'affichage des symboliques numeric="false"; pas d'affichage des numeric taxonomique="false"; pas d'affichage des taxonomique text="false"; pas d'affichage des text idRub=identificateur de rubrique

See Also:
Constant Field Values

PATH

public static final java.lang.String PATH
See Also:
Constant Field Values

ID

public static final java.lang.String ID
See Also:
Constant Field Values

VALUE

public static final java.lang.String VALUE
See Also:
Constant Field Values

numCmd

public int numCmd

params

public java.util.Map params
Constructor Detail

Command

public Command(java.lang.String cmd)
Method Detail

getNumCmd

public int getNumCmd()

setNumCmd

public void setNumCmd(int numCmd)

getParams

public java.util.Map getParams()

setParams

public void setParams(java.util.Map params)

getParam

public java.lang.String getParam(java.lang.String key)

init

public void init(java.lang.String cmd)
Analyse et initialisation de la commande textuelle

Parameters:
cmd - : la chaîne

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

stringToInt

public int stringToInt(java.lang.String sc)
Correspondance entre une commande exprimée sous la forme d'une chaîne et sa référence

Parameters:
c - : la chaîne
Returns:
la référence

intToString

public java.lang.String intToString(int i)
Correspondance entre une commande exprimée sous la forme d'une référence et la chaîne

Parameters:
c - : la chaîne
Returns:
la référence

intToString

public java.lang.String intToString()
Returns:
le nom de la commande courante