Package src.database

Enum Class ModelType

Object
Enum<ModelType>
ModelType
All Implemented Interfaces:
Serializable, Comparable<ModelType>, Constable

public enum ModelType extends Enum<ModelType>
Enumeration class for handling conversion from database file to HashMap
Version:
1.0
Author:
Lee Juin
  • Enum Constant Details

    • CINEPLEX

      public static final ModelType CINEPLEX
      Cineplex enum and its file name
    • CINEMA

      public static final ModelType CINEMA
      Cinema enum and its file name
    • SEAT

      public static final ModelType SEAT
      Seat enum and its file name
    • MOVIE_SCHEDULE

      public static final ModelType MOVIE_SCHEDULE
      MovieSchedule enum and its file name
    • BOOKING_HISTORY

      public static final ModelType BOOKING_HISTORY
      BookingHistory enum and its file name
    • MOVIE_GOER

      public static final ModelType MOVIE_GOER
      MovieGoer enum and its file name
    • MOVIE

      public static final ModelType MOVIE
      Movie enum and its file name
    • MOVIE_REVIEW

      public static final ModelType MOVIE_REVIEW
      MovieReview enum and its file name
    • CINEMA_STAFF

      public static final ModelType CINEMA_STAFF
      CinemaStaff enum and its file name
    • HOLIDAY

      public static final ModelType HOLIDAY
      Holiday enum and its file name
    • PRICES

      public static final ModelType PRICES
      Prices enum and its file name
    • MOVIE_TICKET

      public static final ModelType MOVIE_TICKET
      MovieTicket enum and its file name
    • PAYMENT

      public static final ModelType PAYMENT
      Payment enum and its file name
    • PERMISSION

      public static final ModelType PERMISSION
      Permission enum and its file name
  • Method Details

    • values

      public static ModelType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ModelType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getFileName

      public String getFileName()
      Gets the file name of the model
      Returns:
      The file name of the model