/******************************************************************************* * Copyright (c) 2011 Gerd Wuetherich (gerd@gerd-wuetherich.de). * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Gerd Wuetherich (gerd@gerd-wuetherich.de) - initial API and implementation ******************************************************************************/ package org.bundlemaker.core.common; /** * <p> * </p> * * @author Gerd Wütherich (gerd@gerd-wuetherich.de) * * @noextend This class is not intended to be extended by clients. */ public enum ResourceType { /** source content */ SOURCE, /** binary content */ BINARY; /** * <p> * Returns {@code S} for {@link ResourceType#SOURCE} and {@code B} for {@link ResourceType#BINARY}. * </p> * * @return {@code S} for {@link ResourceType#SOURCE} and {@code B} for {@link ResourceType#BINARY}. */ public String getShortDescription() { // switch (this) { case SOURCE: return "S"; case BINARY: return "B"; default: // can not happen... throw new RuntimeException(String.format("Unknown ContentType '%s'.", this)); } } }