|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<MediaType>
com.silverpeas.gallery.constant.MediaType
public enum MediaType
Enum Constant Summary | |
---|---|
Photo
|
|
Sound
|
|
Streaming
|
|
Unknown
|
|
Video
|
Method Summary | ||
---|---|---|
static MediaType |
from(String type)
Gets the enum instance according to the specified type. |
|
String |
getMediaWebUriPart()
Gets the media Web Uri part. |
|
String |
getName()
|
|
String |
getTechnicalFolder()
Gets the prefix folder name of a media on Silverpeas workspace. |
|
boolean |
isPhoto()
Indicates if current type is the photo one. |
|
boolean |
isSound()
Indicates if current type is the sound one. |
|
boolean |
isStreaming()
Indicates if current type is the streaming one. |
|
boolean |
isVideo()
Indicates if current type is the video one. |
|
|
newInstance()
Instantiates a new model instance according to the media type. |
|
static MediaType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
|
static MediaType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final MediaType Unknown
public static final MediaType Photo
public static final MediaType Video
public static final MediaType Sound
public static final MediaType Streaming
Method Detail |
---|
public static MediaType[] values()
for (MediaType c : MediaType.values()) System.out.println(c);
public static MediaType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static MediaType from(String type)
type
-
public String getName()
public <MEDIA extends Media> MEDIA newInstance()
MEDIA
-
public boolean isPhoto()
public boolean isVideo()
public boolean isSound()
public boolean isStreaming()
public String getTechnicalFolder()
public String getMediaWebUriPart()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |