Enum OEmbedResponse.Type
- java.lang.Object
-
- java.lang.Enum<OEmbedResponse.Type>
-
- com.adobe.cq.wcm.core.components.services.embed.OEmbedResponse.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<OEmbedResponse.Type>
- Enclosing interface:
- OEmbedResponse
public static enum OEmbedResponse.Type extends java.lang.Enum<OEmbedResponse.Type>
Enumeration of oEmbed response types.- Since:
- com.adobe.cq.wcm.core.components.models.embed 1.0.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LINK
oEmbed type for generic embed data (such as title or author name), does not provide url or html parameters.PHOTO
oEmbed type for photos.RICH
oEmbed type for rich HTML content that does not fall under any other type.VIDEO
oEmbed type for video players.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OEmbedResponse.Type
fromString(java.lang.String value)
java.lang.String
getValue()
static OEmbedResponse.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static OEmbedResponse.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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
-
LINK
public static final OEmbedResponse.Type LINK
oEmbed type for generic embed data (such as title or author name), does not provide url or html parameters.- 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 Detail
-
values
public static OEmbedResponse.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (OEmbedResponse.Type c : OEmbedResponse.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OEmbedResponse.Type valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
fromString
public static OEmbedResponse.Type fromString(java.lang.String value)
-
getValue
public java.lang.String getValue()
-
-