01: /*
02: * SalomeTMF is a Test Management Framework
03: * Copyright (C) 2005 France Telecom R&D
04: *
05: * This library is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU Lesser General Public
07: * License as published by the Free Software Foundation; either
08: * version 2 of the License, or (at your option) any later version.
09: *
10: * This library is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13: * Lesser General Public License for more details.
14: *
15: * You should have received a copy of the GNU Lesser General Public
16: * License along with this library; if not, write to the Free Software
17: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18: *
19: * @author Fayçal SOUGRATI, Vincent Pautret, Marche Mikael
20: *
21: * Contact: mikael.marche@rd.francetelecom.com
22: */
23:
24: package org.objectweb.salome_tmf.data;
25:
26: import java.io.Serializable;
27:
28: /**
29: * Représentant une donnée quelconque manipulée par SalomeTMF
30: */
31: public class Element implements Serializable {
32:
33: /**
34: * le verrou
35: */
36: private Lock lock;
37:
38: /**
39: * Description de l'élément
40: */
41: String description;
42:
43: /**
44: * Le nom de l'élément
45: */
46: String name;
47:
48: /**
49: * Retourne le verrou
50: * @return le verrou
51: */
52: public Lock getLock() {
53: return lock;
54: } // Fin de la méthode getLock/0
55:
56: /**
57: * Mutateur du verrou
58: * @param lock un verrou
59: */
60: public void setLock(Lock newLock) {
61: this .lock = newLock;
62: } // Fin de la méthode setLock/1
63:
64: /**
65: * @return
66: */
67: public String getName() {
68: return name;
69: }
70:
71: /**
72: * @param string
73: */
74: public void setName(String string) {
75: name = string;
76: }
77:
78: /**
79: * @return
80: */
81: public String getDescription() {
82: return description;
83: }
84:
85: /**
86: * @param string
87: */
88: public void setDescription(String string) {
89: description = string;
90: }
91:
92: } // Fin de la classe Element
|