com.opencloud.slee.resources.mm7
Enum ContentClass
java.lang.Object
java.lang.Enum<ContentClass>
com.opencloud.slee.resources.mm7.ContentClass
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ContentClass>
public enum ContentClass
- extends java.lang.Enum<ContentClass>
Represents a MM7 Content Class. Constants in this class map to the textual
identifiers defined by the MM7 specification.
- Since:
- MM7 v.6.8.0
Method Summary |
static ContentClass |
fromString(java.lang.String contentClass)
Get a ContentClass singleton for a given string. |
java.lang.String |
toString()
|
static ContentClass |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ContentClass[] |
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, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
TEXT
public static final ContentClass TEXT
IMAGE_BASIC
public static final ContentClass IMAGE_BASIC
IMAGE_RICH
public static final ContentClass IMAGE_RICH
VIDEO_BASIC
public static final ContentClass VIDEO_BASIC
VIDEO_RICH
public static final ContentClass VIDEO_RICH
MEGAPIXEL
public static final ContentClass MEGAPIXEL
CONTENT_BASIC
public static final ContentClass CONTENT_BASIC
CONTENT_RICH
public static final ContentClass CONTENT_RICH
values
public static ContentClass[] 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 (ContentClass c : ContentClass.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ContentClass 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 name
java.lang.NullPointerException
- if the argument is null
fromString
public static ContentClass fromString(java.lang.String contentClass)
- Get a ContentClass singleton for a given string.
- Parameters:
contentClass
- the content class string to parse
- Returns:
- the singleton enum object
- Throws:
java.lang.IllegalArgumentException
- if the content class string is not
recognized
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Enum<ContentClass>