View Javadoc

1   /*
2    * This file is part of NetPisteur.
3    * 
4    * Copyright 2001-2002 : Olivier CORNEC, David BOUANCHEAU, Loic LOPEZ,
5    *                       Gaetan BOUDARD, Mael LE LANNOU, Julien ROBINEAU
6    * 
7    * Copyright 2002-2003 : Olivier BRIENS, Simon DEZE, Florence FRIGOULT,
8    *                       Olivier JOURNEAULT, Francois MARTINIER, Damien RAUDE-MORVAN
9    * 
10   * Copyright 2004-2007 : Damien RAUDE-MORVAN
11   * 
12   * NetPisteur is free software; you can redistribute it and/or modify
13   * it under the terms of the GNU General Public License as published by
14   * the Free Software Foundation; either version 2 of the License, or
15   * (at your option) any later version.
16   *
17   * NetPisteur is distributed in the hope that it will be useful,
18   * but WITHOUT ANY WARRANTY; without even the implied warranty of
19   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20   * GNU General Public License for more details.
21   *
22   * You should have received a copy of the GNU General Public License
23   * along with NetPisteur; if not, write to the Free Software
24   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
25   *
26   */
27  package com.drazzib.netpisteur.configuration;
28  
29  /**
30   * <P>
31   * <STRONG>Description</STRONG>
32   * <P>
33   * Represents a Person
34   * 
35   * 
36   * @since 2002/03/18
37   * @author Netpisteur Team
38   */
39  
40  public class Personne {
41  
42  	// /////////////////////////////////////
43  	// attributes
44  
45  	/**
46  	 * Represents the name of a person
47  	 */
48  	private String nom;
49  
50  	/**
51  	 * Represents the firstname of a person
52  	 */
53  	private String prenom;
54  
55  	// /////////////////////////////////////
56  	// constructors
57  
58  	/**
59  	 * Personne()
60  	 */
61  	public Personne() {
62  
63  		this.nom = "";
64  		this.prenom = "";
65  
66  	} // ----------Personne()
67  
68  	/**
69  	 * Personne(String unNom, String unPrenom) : 2nd constructor
70  	 * 
71  	 * @param unNom
72  	 *            name of the person
73  	 * @param unPrenom
74  	 *            firstname of the person
75  	 */
76  	public Personne(String unNom, String unPrenom) {
77  
78  		this.nom = unNom;
79  		this.prenom = unPrenom;
80  
81  	} // ----------Personne()
82  
83  	// /////////////////////////////////////
84  	// modification methods
85  
86  	/**
87  	 * setNom(String unNom) : return the name
88  	 * 
89  	 * @param unNom
90  	 *            a name
91  	 */
92  	public void setNom(String unNom) {
93  
94  		this.nom = unNom;
95  
96  	} // ----------setNom()
97  
98  	/**
99  	 * setPrenom(String unPrenom) : return the firstname
100 	 * 
101 	 * @param unPrenom
102 	 *            a firstname
103 	 */
104 	public void setPrenom(String unPrenom) {
105 
106 		this.prenom = unPrenom;
107 
108 	} // ----------setPrenom()
109 
110 	// /////////////////////////////////////
111 	// access methods for attributes
112 
113 	/**
114 	 * getNom() : return the name
115 	 * 
116 	 * @return the name
117 	 */
118 	public String getNom() {
119 
120 		return this.nom;
121 
122 	} // ----------getNom()
123 
124 	/**
125 	 * getPrenom() : return the firstname
126 	 * 
127 	 * @return the firstname
128 	 */
129 	public String getPrenom() {
130 
131 		return this.prenom;
132 
133 	} // ----------getPrenom()
134 
135 }