Enum Class SiteContextType

java.lang.Object
java.lang.Enum<SiteContextType>
org.ametys.web.frontoffice.search.instance.model.SiteContextType
All Implemented Interfaces:
Serializable, Comparable<SiteContextType>, java.lang.constant.Constable

public enum SiteContextType extends Enum<SiteContextType>
A site context type
  • Enum Constant Details

  • Method Details

    • values

      public static SiteContextType[] 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 SiteContextType 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
    • clientSideName

      Gets the client side name of the type of site context
      Returns:
      the client side name of the type of site context
    • fromClientSideName

      public static SiteContextType fromClientSideName(String clientSideName)
      Gets a SiteContextType from its client-side name
      Parameters:
      clientSideName - the client-side name
      Returns:
      the SiteContextType