controleurs
Class ControleurTools

java.lang.Object
  extended by controleurs.ControleurTools

public class ControleurTools
extends java.lang.Object

Clase comportant des outils utilises dans les controleurs

Author:
erik helsens

Constructor Summary
ControleurTools()
           
 
Method Summary
static org.w3c.dom.Element createContactElement(ContactFull c, org.w3c.dom.Document document)
          Cree un element (dom) contact a partir d'un objet ContactFull
static org.w3c.dom.Element createEvenementElement(Evenement c, org.w3c.dom.Document document)
          Cree un element (dom) contact a partir d'un objet Evenement
static org.w3c.dom.Node getContact(org.w3c.dom.Document document, java.lang.String id)
          Retourne le noeud du document de type contact et ayant l'id id
static org.w3c.dom.Node getEvenement(org.w3c.dom.Document document, java.lang.String id)
          Retourne le noeud du document de type evenement et ayant l'id id
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControleurTools

public ControleurTools()
Method Detail

createContactElement

public static org.w3c.dom.Element createContactElement(ContactFull c,
                                                       org.w3c.dom.Document document)
Cree un element (dom) contact a partir d'un objet ContactFull

Parameters:
c - l'objet a transformer
document - le document (dom) de reference
Returns:
un Element (DOM)

getContact

public static org.w3c.dom.Node getContact(org.w3c.dom.Document document,
                                          java.lang.String id)
Retourne le noeud du document de type contact et ayant l'id id

Parameters:
document - le document DOM ou l'on va chercher
id - l'id du contact a trouver
Returns:
le noeud correspondant au contact que l'on cherche

createEvenementElement

public static org.w3c.dom.Element createEvenementElement(Evenement c,
                                                         org.w3c.dom.Document document)
Cree un element (dom) contact a partir d'un objet Evenement

Parameters:
c - l'objet a transformer
document - le document (dom) de reference
Returns:
un Element (DOM)

getEvenement

public static org.w3c.dom.Node getEvenement(org.w3c.dom.Document document,
                                            java.lang.String id)
Retourne le noeud du document de type evenement et ayant l'id id

Parameters:
document - le document DOM ou l'on va chercher
id - l'id du contact a trouver
Returns:
le noeud correspondant a l'evenement que l'on cherche