Class Religion
java.lang.Object
org.episteme.social.sociology.Religion
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named
Represents a religion, faith tradition, or spiritual system.
Implements ComprehensiveIdentification to support dynamic traits and consistent identity.
Support for clergy members and holy sites added.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new religion with the specified name.Religion(String name, ReligionType type) Creates a new religion with name and type. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidaddClergyMember(Person person) voidaddHoliday(String holiday) voidaddHolySite(Place place) voidaddPractice(String practice) booleanlongintgetId()Returns the unique identifier of this entity.Returns the traits map for this entity.getType()Returns the religious category.inthashCode()voidsetFollowers(long followers) voidsetFoundedYear(int foundedYear) voidsetFounder(String founder) voidsetHolyText(String holyText) voidsetOriginRegion(String originRegion) voidsetType(ReligionType type) Sets the religious category.toString()Methods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, setName, setTrait
-
Field Details
-
id
-
traits
-
BUDDHISM
-
-
Constructor Details
-
Religion
Creates a new religion with the specified name.- Parameters:
name- the unique name of the religion- Throws:
NullPointerException- if name is nullIllegalArgumentException- if name is empty
-
Religion
Creates a new religion with name and type.- Parameters:
name- the nametype- the theological type
-
-
Method Details
-
getId
Description copied from interface:IdentifiedReturns the unique identifier of this entity.- Specified by:
getIdin interfaceIdentified<Identification>- Returns:
- the identifier
-
getTraits
Description copied from interface:ComprehensiveIdentificationReturns the traits map for this entity.- Specified by:
getTraitsin interfaceCommented- Specified by:
getTraitsin interfaceComprehensiveIdentification- Returns:
- the traits map
-
getType
-
setType
Sets the religious category.- Parameters:
type- the type to set
-
getFollowers
public long getFollowers() -
setFollowers
public void setFollowers(long followers) -
getFounder
-
setFounder
-
getFoundedYear
public int getFoundedYear() -
setFoundedYear
public void setFoundedYear(int foundedYear) -
getOriginRegion
-
setOriginRegion
-
getHolyText
-
setHolyText
-
addBelief
-
addBelief
-
getCoreBeliefs
-
getBeliefs
-
addPractice
-
getPractices
-
addHoliday
-
getHolidays
-
addClergyMember
-
getClergy
-
addHolySite
-
getHolySites
-
equals
-
hashCode
-
toString
-