View Javadoc
1   package generated.model.de.fhdw.partner;
2   
3   import de.fhdw.wtf.context.model.Int;
4   import de.fhdw.wtf.persistence.meta.UserObject;
5   
6   /**
7    * Represents a phone number.
8    */
9   public class Telefon extends Kommunikationskanal {
10  	
11  	/**
12  	 * The underlying phone number.
13  	 */
14  	private Int nr;
15  	
16  	/**
17  	 * Creates a Telefon object.
18  	 * 
19  	 * @param nr
20  	 *            The underlying phone number.
21  	 */
22  	public Telefon(final Int nr) {
23  		super();
24  		this.nr = nr;
25  	}
26  	
27  	/**
28  	 * Loads object from database.
29  	 * 
30  	 * @param userObject
31  	 *            The underlying user object.
32  	 */
33  	public Telefon(final UserObject userObject) {
34  		super(userObject);
35  	}
36  	
37  	/**
38  	 * Returns the underlying phone number.
39  	 * 
40  	 * @return The underlying phone number.
41  	 */
42  	public Int getNr() {
43  		return this.nr;
44  	}
45  	
46  	@Override
47  	public String toString() {
48  		return this.nr.toString();
49  	}
50  }