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

net.anotheria.anosite.gen.shared.data.MediaDescUtils Maven / Gradle / Ivy

There is a newer version: 4.1.2
Show newest version
/**
 ********************************************************************************
 *** MediaDescUtils.java                                                      ***
 *** generated by AnoSiteGenerator (ASG), Version: 3.2.2                      ***
 *** Copyright (C) 2005 - 2023 Anotheria.net, www.anotheria.net               ***
 *** All Rights Reserved.                                                     ***
 ********************************************************************************
 *** Don't edit this code, if you aren't sure                                 ***
 *** that you do exactly know what you are doing!                             ***
 *** It's better to invest time in the generator, as into the generated code. ***
 ********************************************************************************
 */

package net.anotheria.anosite.gen.shared.data;

import java.util.Arrays;
import java.util.List;

public class MediaDescUtils implements IMediaDescDefinition{

	public static List getMediaDescList(){
		return Arrays.asList(MEDIADESC_NAMES);
	}
	public static String getName(int value){
		switch(value){
			case all:
				return all_NAME;
			case screen:
				return screen_NAME;
			case tty:
				return tty_NAME;
			case tv:
				return tv_NAME;
			case projection:
				return projection_NAME;
			case handheld:
				return handheld_NAME;
			case print:
				return print_NAME;
			case braille:
				return braille_NAME;
			case aural:
				return aural_NAME;
			case none:
				return none_NAME;
			default:
				return "Unknown: "+value;
		}
	}
	public static int getValue(String name){
		if( all_NAME.equals(name))
			return all;
		if( screen_NAME.equals(name))
			return screen;
		if( tty_NAME.equals(name))
			return tty;
		if( tv_NAME.equals(name))
			return tv;
		if( projection_NAME.equals(name))
			return projection;
		if( handheld_NAME.equals(name))
			return handheld;
		if( print_NAME.equals(name))
			return print;
		if( braille_NAME.equals(name))
			return braille;
		if( aural_NAME.equals(name))
			return aural;
		if( none_NAME.equals(name))
			return none;
			return 0;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy