All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kaltura.client.enums.DocumentEntryOrderBy 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 DocumentEntryOrderBy implements EnumAsString {
	CREATED_AT_ASC("+createdAt"),
	END_DATE_ASC("+endDate"),
	MODERATION_COUNT_ASC("+moderationCount"),
	NAME_ASC("+name"),
	PARTNER_SORT_VALUE_ASC("+partnerSortValue"),
	RANK_ASC("+rank"),
	RECENT_ASC("+recent"),
	START_DATE_ASC("+startDate"),
	TOTAL_RANK_ASC("+totalRank"),
	UPDATED_AT_ASC("+updatedAt"),
	WEIGHT_ASC("+weight"),
	CREATED_AT_DESC("-createdAt"),
	END_DATE_DESC("-endDate"),
	MODERATION_COUNT_DESC("-moderationCount"),
	NAME_DESC("-name"),
	PARTNER_SORT_VALUE_DESC("-partnerSortValue"),
	RANK_DESC("-rank"),
	RECENT_DESC("-recent"),
	START_DATE_DESC("-startDate"),
	TOTAL_RANK_DESC("-totalRank"),
	UPDATED_AT_DESC("-updatedAt"),
	WEIGHT_DESC("-weight");

	private String value;

	DocumentEntryOrderBy(String value) {
		this.value = value;
	}

	@Override
	public String getValue() {
		return this.value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public static DocumentEntryOrderBy get(String value) {
		if(value == null)
		{
			return null;
		}
		
		// goes over DocumentEntryOrderBy defined values and compare the inner value with the given one:
		for(DocumentEntryOrderBy 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 DocumentEntryOrderBy.values().length > 0 ? DocumentEntryOrderBy.values()[0]: null;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy