Package com.podio.embed
Enum EmbedType
- java.lang.Object
-
- java.lang.Enum<EmbedType>
-
- com.podio.embed.EmbedType
-
- All Implemented Interfaces:
Serializable,Comparable<EmbedType>
public enum EmbedType extends Enum<EmbedType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IMAGEA direct link to a public imageLINKA link to a plain web pageRICHA link to a service provider that can be displayed inline, but is not video (such as SlideShare)UNRESOLVEDAn invalid or inaccessible linkVIDEOA link to a video service provider such as YouTube
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EmbedTypegetByName(String value)StringtoString()static EmbedTypevalueOf(String name)Returns the enum constant of this type with the specified name.static EmbedType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IMAGE
public static final EmbedType IMAGE
A direct link to a public image
-
VIDEO
public static final EmbedType VIDEO
A link to a video service provider such as YouTube
-
RICH
public static final EmbedType RICH
A link to a service provider that can be displayed inline, but is not video (such as SlideShare)
-
LINK
public static final EmbedType LINK
A link to a plain web page
-
UNRESOLVED
public static final EmbedType UNRESOLVED
An invalid or inaccessible link
-
-
Method Detail
-
values
public static EmbedType[] 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 (EmbedType c : EmbedType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EmbedType 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 nameNullPointerException- if the argument is null
-
-