public static enum MediaObject.MediaObjectType extends java.lang.Enum<MediaObject.MediaObjectType>
Enum Constant and Description |
---|
FACE
media object containing a face recognition data
|
KEYWORD
media object containing a keyword or a tag
|
METADATA
media object containing generic name-value type metadata
|
OBJECT
generic unspecified media object
|
Modifier and Type | Method and Description |
---|---|
static java.util.EnumSet<MediaObject.MediaObjectType> |
fromDataGroups(DataGroups dataGroups)
Allows convertion of data group string to enumerations based on the enumeration value (string/name)
|
static MediaObject.MediaObjectType |
fromInt(int value) |
static DataGroups |
getDataGroup(java.util.EnumSet<MediaObject.MediaObjectType> types) |
int |
toInt() |
static int[] |
toIntArray(java.util.EnumSet<MediaObject.MediaObjectType> types) |
static MediaObject.MediaObjectType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MediaObject.MediaObjectType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MediaObject.MediaObjectType KEYWORD
public static final MediaObject.MediaObjectType METADATA
public static final MediaObject.MediaObjectType OBJECT
public static final MediaObject.MediaObjectType FACE
public static MediaObject.MediaObjectType[] values()
for (MediaObject.MediaObjectType c : MediaObject.MediaObjectType.values()) System.out.println(c);
public static MediaObject.MediaObjectType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int toInt()
public static int[] toIntArray(java.util.EnumSet<MediaObject.MediaObjectType> types)
types
- public static DataGroups getDataGroup(java.util.EnumSet<MediaObject.MediaObjectType> types)
types
- public static MediaObject.MediaObjectType fromInt(int value) throws java.lang.IllegalArgumentException
value
- java.lang.IllegalArgumentException
- on bad valuepublic static java.util.EnumSet<MediaObject.MediaObjectType> fromDataGroups(DataGroups dataGroups)
dataGroups
- Copyright © 2015 Tampere University of Technology, Pori Department.