Ignore:
Timestamp:
Sep 20, 2010, 8:51:41 PM (14 years ago)
Author:
mlg
Message:

Translation of the comments
French -> English

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/dao/TagDao.java

    r6972 r6980  
    1212import fr.mael.jiwigo.om.Tag;
    1313import fr.mael.jiwigo.transverse.enumeration.MethodsEnum;
     14import fr.mael.jiwigo.transverse.enumeration.TagEnum;
    1415import fr.mael.jiwigo.transverse.util.Outil;
    1516
     
    5051    public static final org.apache.commons.logging.Log LOG = org.apache.commons.logging.LogFactory.getLog(Main.class);
    5152    /**
    52      * Instance, afin d'utiliser un singleton
     53     * Instance, to use a singleton
    5354     */
    5455    private static TagDao instance;
    5556
    5657    /**
    57      * Constructeur privé, afin que seule l'instance soit accessible
     58     * private constructor to use a singleton
    5859     */
    5960    private TagDao() {
     
    6263
    6364    /**
    64      * @return l'instance
     65     * @return the instance
    6566     */
    6667    public static TagDao getInstance() {
     
    7273
    7374    /**
    74      * Lister les tag
    75      * @return la liste des tags
     75     * lists the tags
     76     * @return the list of tags
    7677     * @throws IOException
    7778     */
     
    9293        List<Element> listElement = (List<Element>) element.getChildren("tag");
    9394        ArrayList<Tag> tags = new ArrayList<Tag>();
    94         for (Element t : listElement) {
    95             Tag tag = new Tag(t);
     95        for (Element tagElement : listElement) {
     96            Tag tag = new Tag();
     97            tag.setId(Integer.valueOf(tagElement.getAttributeValue(TagEnum.ID.getLabel())));
     98            tag.setNom(tagElement.getAttributeValue(TagEnum.NAME.getLabel()));
    9699            tags.add(tag);
    97100        }
     
    101104
    102105    /**
    103      * Création d'un tag
    104      * @param tag le tag à créer
    105      * @return true si le tag a bien été créé
     106     * Creation of a tag
     107     * @param tag the tag to create
     108     * @return true if the tag as been successfully created
    106109     */
    107110    public boolean creer(Tag tag) {
Note: See TracChangeset for help on using the changeset viewer.