Class CampDetails

All Implemented Interfaces:
IFilterableByAttendee<Camp>, IFilterableByCampCommittee<Camp>, IFilterableByDateRange<Camp>, IFilterableByID<Camp>, IFilterableBySchool<Camp>, IFilterableByStudent<Camp>, IFilterableByVisibility<Camp>, ISerializable, ISortableByEndDate<Camp>, ISortableByID<Camp>, ISortableByLocation<Camp>, ISortableByName<Camp>, ISortableByRegistrationCloseDate<Camp>, ISortableByStartingDate<Camp>, ITaggedItem, Iterable<Camp>
Direct Known Subclasses:
Camp

public class CampDetails extends CampList implements ITaggedItem
Represents the details of a camp, including its ID, name, description, visibility, start and end dates, registration closure date, school, location, and the total number of slots. This class implements the ITaggedItem interface.
  • Field Details

    • ID

      protected String ID
    • name

      protected String name
    • description

      protected String description
    • visibility

      protected Boolean visibility
    • startDate

      protected Date startDate
    • endDate

      protected Date endDate
    • closeRegistrationDate

      protected Date closeRegistrationDate
    • school

      protected String school
    • location

      protected String location
    • totalSlots

      protected Integer totalSlots
    • totalCommitteeSlots

      protected Integer totalCommitteeSlots
  • Constructor Details

    • CampDetails

      public CampDetails(String ID, String name, String description, boolean visibility, Date startDate, Date endDate, Date closeRegistrationDate, String school, String location, Integer totalSlots, Integer totalCommitteeSlots)
      Constructs a new CampDetails object with specified details.
      Parameters:
      ID - The unique identifier of the camp.
      name - The name of the camp.
      description - A description of the camp.
      visibility - The visibility status of the camp.
      startDate - The start date of the camp.
      endDate - The end date of the camp.
      closeRegistrationDate - The last date to register for the camp.
      school - The school associated with the camp.
      location - The location of the camp.
      totalSlots - The total number of slots available in the camp.
      totalCommitteeSlots - The total number of committee slots available in the camp.
    • CampDetails

      public CampDetails()
      Constructs a new CampDetails object with default values.
  • Method Details

    • getID

      public String getID()
      Returns the ID of the camp.
      Specified by:
      getID in interface ITaggedItem
      Returns:
      The camp's unique identifier.
    • getName

      public String getName()
      Returns the name of the camp.
      Returns:
      The camp's name.
    • getDescription

      public String getDescription()
      Returns the description of the camp.
      Returns:
      The camp's description.
    • isVisible

      public Boolean isVisible()
      Returns the visibility status of the camp.
      Returns:
      The camp's visibility status.
    • getStartDate

      public Date getStartDate()
      Returns the start date of the camp.
      Returns:
      The camp's start date.
    • getEndDate

      public Date getEndDate()
      Returns the end date of the camp.
      Returns:
      The camp's end date.
    • getCloseRegistrationDate

      public Date getCloseRegistrationDate()
      Returns the registration closure date of the camp.
      Returns:
      The camp's registration closure date.
    • getSchool

      public String getSchool()
      Returns the school associated with the camp.
      Returns:
      The camp's associated school.
    • getLocation

      public String getLocation()
      Returns the location of the camp.
      Returns:
      The camp's location.
    • getTotalSlots

      public Integer getTotalSlots()
      Returns the total number of slots available in the camp.
      Returns:
      The camp's total number of slots.
    • getTotalCommitteeSlots

      public Integer getTotalCommitteeSlots()
      Returns the total number of committee slots available in the camp.
      Returns:
      The camp's total number of committee slots.
    • setTotalCommitteeSlots

      public void setTotalCommitteeSlots(int slots)
      Set the total number of committee slots available in the camp.
      Parameters:
      slots - The camp's total number of committee slots.
    • setID

      public void setID(String ID)
      Sets the ID of the camp.
      Specified by:
      setID in interface ITaggedItem
      Parameters:
      ID - The camp's unique identifier.
    • setName

      public void setName(String name)
      Sets the name of the camp.
      Parameters:
      name - The camp's name.
    • setDescription

      public void setDescription(String description)
      Sets the description of the camp.
      Parameters:
      description - The camp's description.
    • setVisibility

      public void setVisibility(boolean visibility)
      Sets the visibility status of the camp.
      Parameters:
      visibility - The camp's visibility status.
    • setStartDate

      public void setStartDate(Date startDate)
      Sets the start date of the camp.
      Parameters:
      startDate - The camp's start date.
    • setEndDate

      public void setEndDate(Date endDate)
      Sets the end date of the camp.
      Parameters:
      endDate - The camp's end date.
    • setCloseRegistrationDate

      public void setCloseRegistrationDate(Date closeRegistrationDate)
      Sets the registration closure date of the camp.
      Parameters:
      closeRegistrationDate - The camp's registration closure date.
    • setSchool

      public void setSchool(String school)
      Sets the school associated with the camp.
      Parameters:
      school - The camp's associated school.
    • setLocation

      public void setLocation(String location)
      Sets the location of the camp.
      Parameters:
      location - The camp's location.
    • setTotalSlots

      public void setTotalSlots(int totalSlots)
      Sets the total number of slots available in the camp.
      Parameters:
      totalSlots - The camp's total number of slots.