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