com.kaltura.client.enums.DataEntryMatchAttribute Maven / Gradle / Ivy
// ===================================================================================================
// _ __ _ _
// | |/ /__ _| | |_ _ _ _ _ __ _
// | ' .
//
// @ignore
// ===================================================================================================
package com.kaltura.client.enums;
/**
* This class was generated using generate.php
* against an XML schema provided by Kaltura.
*
* MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN.
*/
public enum DataEntryMatchAttribute implements EnumAsString {
ADMIN_TAGS("adminTags"),
CATEGORIES_IDS("categoriesIds"),
CREATOR_ID("creatorId"),
DESCRIPTION("description"),
GROUP_ID("groupId"),
ID("id"),
NAME("name"),
REFERENCE_ID("referenceId"),
REPLACED_ENTRY_ID("replacedEntryId"),
REPLACING_ENTRY_ID("replacingEntryId"),
SEARCH_TEXT("searchText"),
TAGS("tags"),
USER_ID("userId");
private String value;
DataEntryMatchAttribute(String value) {
this.value = value;
}
@Override
public String getValue() {
return this.value;
}
public void setValue(String value) {
this.value = value;
}
public static DataEntryMatchAttribute get(String value) {
if(value == null)
{
return null;
}
// goes over DataEntryMatchAttribute defined values and compare the inner value with the given one:
for(DataEntryMatchAttribute item: values()) {
if(item.getValue().equals(value)) {
return item;
}
}
// in case the requested value was not found in the enum values, we return the first item as default.
return DataEntryMatchAttribute.values().length > 0 ? DataEntryMatchAttribute.values()[0]: null;
}
}