Enum OEmbedResponse.Type

java.lang.Object
java.lang.Enum<OEmbedResponse.Type>
com.adobe.cq.wcm.core.components.services.embed.OEmbedResponse.Type
All Implemented Interfaces:
Serializable, Comparable<OEmbedResponse.Type>, java.lang.constant.Constable
Enclosing interface:
OEmbedResponse

public static enum OEmbedResponse.Type extends Enum<OEmbedResponse.Type>
Enumeration of oEmbed response types.
Since:
com.adobe.cq.wcm.core.components.models.embed 1.0.0
  • Enum Constant Details

    • PHOTO

      public static final OEmbedResponse.Type PHOTO
      oEmbed type for photos.
      Since:
      com.adobe.cq.wcm.core.components.models.embed 1.0.0
    • VIDEO

      public static final OEmbedResponse.Type VIDEO
      oEmbed type for video players.
      Since:
      com.adobe.cq.wcm.core.components.models.embed 1.0.0
    • RICH

      public static final OEmbedResponse.Type RICH
      oEmbed type for rich HTML content that does not fall under any other type.
      Since:
      com.adobe.cq.wcm.core.components.models.embed 1.0.0
  • Method Details

    • values

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

      public static OEmbedResponse.Type valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • fromString

      public static OEmbedResponse.Type fromString(String value)
    • getValue

      public String getValue()