de.crowdcode.kissmda.testapp.Person Maven / Gradle / Ivy
/**
* Generated by KissMDA - Simple Java Cartridge - kissmda-cartridges-simple-java.
* KissMDA: http://kissmda.org
*
* DO NOT EDIT this file manually! All changes will be overwritten by next generation!
*
* Generation date: Tue May 20 17:15:11 CEST 2014.
*/
package de.crowdcode.kissmda.testapp;
import de.crowdcode.kissmda.testapp.components.Company;
import java.util.Collection;
import java.util.Date;
import java.util.Set;
/**
*
*
* This is the Person entity. We save each person in a database.
*
*
*
*
*
*
*
*
* @author Lofi Dewanto
*
*
*
* @version 1.0.0
*
*
*
* @since 1.0.0
*
*
*
*
*/
public interface Person {
/**
*
* Calculate the age of this person.
*/
Integer calculateAge();
Date[] run(byte[] content);
void changeLastAddress(Address address, Boolean isLastOne);
Collection calculateOldCompanies();
/**
*
*
*
* Name of the person.
*
*
*
*
*/
String getName();
/**
*
*
*
* Name of the person.
*
*
*
*
*/
void setName(String name);
Collection getAddresses();
void addAddress(Address address);
Company getCompany();
void setCompany(Company company);
Set getNewAddresses();
void addNewAddress(Address newAddress);
/**
* Nickname will be "calculated" from name.
*/
String getNickname();
Collection getHiddenCompanies();
Boolean isInRetirement();
Collection getOldCompanies();
}