Class Religion

java.lang.Object
org.episteme.social.sociology.Religion
All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named

public class Religion extends Object implements ComprehensiveIdentification
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 Details

  • Constructor Details

    • Religion

      public Religion(String name)
      Creates a new religion with the specified name.
      Parameters:
      name - the unique name of the religion
      Throws:
      NullPointerException - if name is null
      IllegalArgumentException - if name is empty
    • Religion

      public Religion(String name, ReligionType type)
      Creates a new religion with name and type.
      Parameters:
      name - the name
      type - the theological type
  • Method Details

    • getId

      public Identification getId()
      Description copied from interface: Identified
      Returns the unique identifier of this entity.
      Specified by:
      getId in interface Identified<Identification>
      Returns:
      the identifier
    • getTraits

      public Map<String,Object> getTraits()
      Description copied from interface: ComprehensiveIdentification
      Returns the traits map for this entity.
      Specified by:
      getTraits in interface Commented
      Specified by:
      getTraits in interface ComprehensiveIdentification
      Returns:
      the traits map
    • getType

      public ReligionType getType()
      Returns the religious category.
      Returns:
      the type
    • setType

      public void setType(ReligionType type)
      Sets the religious category.
      Parameters:
      type - the type to set
    • getFollowers

      public long getFollowers()
    • setFollowers

      public void setFollowers(long followers)
    • getFounder

      public String getFounder()
    • setFounder

      public void setFounder(String founder)
    • getFoundedYear

      public int getFoundedYear()
    • setFoundedYear

      public void setFoundedYear(int foundedYear)
    • getOriginRegion

      public String getOriginRegion()
    • setOriginRegion

      public void setOriginRegion(String originRegion)
    • getHolyText

      public String getHolyText()
    • setHolyText

      public void setHolyText(String holyText)
    • addBelief

      public void addBelief(String belief)
    • addBelief

      public void addBelief(Belief belief)
    • getCoreBeliefs

      public List<Belief> getCoreBeliefs()
    • getBeliefs

      public List<String> getBeliefs()
    • addPractice

      public void addPractice(String practice)
    • getPractices

      public List<String> getPractices()
    • addHoliday

      public void addHoliday(String holiday)
    • getHolidays

      public List<String> getHolidays()
    • addClergyMember

      public void addClergyMember(Person person)
    • getClergy

      public Set<Person> getClergy()
    • addHolySite

      public void addHolySite(Place place)
    • getHolySites

      public Set<Place> getHolySites()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object