| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| Person |
|
| 1.0;1 |
| 1 | package org.jtheque.primary.od.able; | |
| 2 | ||
| 3 | import org.jtheque.primary.od.impl.temp.PersonTemporaryContext; | |
| 4 | ||
| 5 | /** | |
| 6 | * A person specification. | |
| 7 | * | |
| 8 | * @author Baptiste Wicht | |
| 9 | */ | |
| 10 | public interface Person extends Data, Notable { | |
| 11 | /** | |
| 12 | * Sets the name of the person. | |
| 13 | * | |
| 14 | * @param name The name of the person | |
| 15 | */ | |
| 16 | void setName(String name); | |
| 17 | ||
| 18 | /** | |
| 19 | * Sets the first name of the person. | |
| 20 | * | |
| 21 | * @param firstName The first name of the person | |
| 22 | */ | |
| 23 | void setFirstName(String firstName); | |
| 24 | ||
| 25 | /** | |
| 26 | * Set the country of the object. | |
| 27 | * | |
| 28 | * @param country The new country of the data | |
| 29 | */ | |
| 30 | void setTheCountry(SimpleData country); | |
| 31 | ||
| 32 | /** | |
| 33 | * Return the country of the person. | |
| 34 | * | |
| 35 | * @return The country | |
| 36 | */ | |
| 37 | SimpleData getTheCountry(); | |
| 38 | ||
| 39 | /** | |
| 40 | * Return the name of the person. | |
| 41 | * | |
| 42 | * @return The name of the person. | |
| 43 | */ | |
| 44 | String getName(); | |
| 45 | ||
| 46 | /** | |
| 47 | * Return the first name of the person. | |
| 48 | * | |
| 49 | * @return The first name of the person. | |
| 50 | */ | |
| 51 | String getFirstName(); | |
| 52 | ||
| 53 | /** | |
| 54 | * Set the email of the person. | |
| 55 | * | |
| 56 | * @param email The email of the person. | |
| 57 | */ | |
| 58 | void setEmail(String email); | |
| 59 | ||
| 60 | /** | |
| 61 | * Return the email of the person. | |
| 62 | * | |
| 63 | * @return The email of the person. | |
| 64 | */ | |
| 65 | String getEmail(); | |
| 66 | ||
| 67 | /** | |
| 68 | * Set the type of the person. For example, it could be Author of Realizer. | |
| 69 | * | |
| 70 | * @param type The type of the person. | |
| 71 | */ | |
| 72 | void setType(String type); | |
| 73 | ||
| 74 | /** | |
| 75 | * Return the type of the person. | |
| 76 | * | |
| 77 | * @return The type of the person. | |
| 78 | */ | |
| 79 | String getType(); | |
| 80 | ||
| 81 | @Override | |
| 82 | PersonTemporaryContext getTemporaryContext(); | |
| 83 | ||
| 84 | /** | |
| 85 | * Indicate if the person has a country or not. | |
| 86 | * | |
| 87 | * @return <code>true</code> if the person has a country else <code>false</code>. | |
| 88 | */ | |
| 89 | boolean hasCountry(); | |
| 90 | } |