org.silverpeas.media.video
Enum ThumbnailPeriod

java.lang.Object
  extended by java.lang.Enum<ThumbnailPeriod>
      extended by org.silverpeas.media.video.ThumbnailPeriod
All Implemented Interfaces:
Serializable, Comparable<ThumbnailPeriod>

public enum ThumbnailPeriod
extends Enum<ThumbnailPeriod>


Enum Constant Summary
ERROR
           
Thumbnail0
           
Thumbnail1
           
Thumbnail2
           
Thumbnail3
           
Thumbnail4
           
 
Field Summary
static Set<ThumbnailPeriod> ALL_VALIDS
           
static String VIDEO_THUMBNAIL_FILE_EXTENSION
           
static String VIDEO_THUMBNAIL_FILE_PREFIX
           
 
Method Summary
static ThumbnailPeriod fromIndex(String index)
           
 String getFilename()
           
 int getIndex()
           
 double getPercent()
           
static ThumbnailPeriod valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ThumbnailPeriod[] 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

Thumbnail0

public static final ThumbnailPeriod Thumbnail0

Thumbnail1

public static final ThumbnailPeriod Thumbnail1

Thumbnail2

public static final ThumbnailPeriod Thumbnail2

Thumbnail3

public static final ThumbnailPeriod Thumbnail3

Thumbnail4

public static final ThumbnailPeriod Thumbnail4

ERROR

public static final ThumbnailPeriod ERROR
Field Detail

ALL_VALIDS

public static final Set<ThumbnailPeriod> ALL_VALIDS

VIDEO_THUMBNAIL_FILE_PREFIX

public static final String VIDEO_THUMBNAIL_FILE_PREFIX
See Also:
Constant Field Values

VIDEO_THUMBNAIL_FILE_EXTENSION

public static final String VIDEO_THUMBNAIL_FILE_EXTENSION
See Also:
Constant Field Values
Method Detail

values

public static ThumbnailPeriod[] 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 (ThumbnailPeriod c : ThumbnailPeriod.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ThumbnailPeriod 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

getIndex

public int getIndex()
Returns:
the index

getPercent

public double getPercent()
Returns:
the percent

getFilename

public String getFilename()
Returns:
the thumbnail file name

fromIndex

public static ThumbnailPeriod fromIndex(String index)


Copyright © 2016 Silverpeas. All Rights Reserved.