public enum RichMediaTypes extends Enum<RichMediaTypes> implements RichMediaType
Enum Constant and Description |
---|
MICROSOFT_STREAM
Microsoft Stream videos
|
VIMEO
vimeo videos
|
YOUTUBE
YouTube videos
|
Modifier and Type | Method and Description |
---|---|
RichMediaDescription |
extractRichMediaDescription(String link)
Checks the link and extracts the ID if the link is of the right source
|
Collection<Pattern> |
getPatterns() |
String |
getTypeId() |
static RichMediaTypes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RichMediaTypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RichMediaTypes YOUTUBE
public static final RichMediaTypes VIMEO
public static final RichMediaTypes MICROSOFT_STREAM
public static RichMediaTypes[] values()
for (RichMediaTypes c : RichMediaTypes.values()) System.out.println(c);
public static RichMediaTypes valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic RichMediaDescription extractRichMediaDescription(String link)
extractRichMediaDescription
in interface RichMediaType
link
- The link to extract from.null
public Collection<Pattern> getPatterns()
public String getTypeId()
getTypeId
in interface RichMediaType
Copyright © 2019 Communote team. All rights reserved.