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

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

There is a newer version: 4.1.2
Show newest version
/**
 ********************************************************************************
 *** LinkTypesUtils.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 LinkTypesUtils implements ILinkTypesDefinition{

	public static List getLinkTypesList(){
		return Arrays.asList(LINKTYPES_NAMES);
	}
	public static String getName(int value){
		switch(value){
			case none:
				return none_NAME;
			case alternate:
				return alternate_NAME;
			case stylesheet:
				return stylesheet_NAME;
			case start:
				return start_NAME;
			case next:
				return next_NAME;
			case prev:
				return prev_NAME;
			case contents:
				return contents_NAME;
			case index:
				return index_NAME;
			case glossary:
				return glossary_NAME;
			case copyright:
				return copyright_NAME;
			case chapter:
				return chapter_NAME;
			case section:
				return section_NAME;
			case subsection:
				return subsection_NAME;
			case appendix:
				return appendix_NAME;
			case help:
				return help_NAME;
			case bookmark:
				return bookmark_NAME;
			default:
				return "Unknown: "+value;
		}
	}
	public static int getValue(String name){
		if( none_NAME.equals(name))
			return none;
		if( alternate_NAME.equals(name))
			return alternate;
		if( stylesheet_NAME.equals(name))
			return stylesheet;
		if( start_NAME.equals(name))
			return start;
		if( next_NAME.equals(name))
			return next;
		if( prev_NAME.equals(name))
			return prev;
		if( contents_NAME.equals(name))
			return contents;
		if( index_NAME.equals(name))
			return index;
		if( glossary_NAME.equals(name))
			return glossary;
		if( copyright_NAME.equals(name))
			return copyright;
		if( chapter_NAME.equals(name))
			return chapter;
		if( section_NAME.equals(name))
			return section;
		if( subsection_NAME.equals(name))
			return subsection;
		if( appendix_NAME.equals(name))
			return appendix;
		if( help_NAME.equals(name))
			return help;
		if( bookmark_NAME.equals(name))
			return bookmark;
			return 0;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy