@Entity public class Deity extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Deity.Gender |
Constructor and Description |
---|
Deity(String name,
Deity.Gender gender) |
Modifier and Type | Method and Description |
---|---|
Set<Deity> |
getChildren() |
Deity |
getFather() |
Deity.Gender |
getGender() |
Deity |
getMother() |
String |
getName() |
Deity |
giveBirth(String childName,
Deity childFather,
Deity.Gender gender)
She's having a baby...
|
void |
setChildren(Set<Deity> children) |
void |
setFather(Deity father) |
void |
setGender(Deity.Gender gender) |
void |
setMother(Deity mother) |
void |
setName(String name) |
public Deity(String name, Deity.Gender gender)
public Deity giveBirth(String childName, Deity childFather, Deity.Gender gender)
childName
- the baby nameIllegalArgumentException
- if the person is not a woman, or
if the person is unmarried (illegitimate
children are not yet supported)public void setName(String name)
public String getName()
public void setGender(Deity.Gender gender)
public Deity.Gender getGender()
public void setMother(Deity mother)
public Deity getMother()
public void setFather(Deity father)
public Deity getFather()
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.