//# 0 errors, 110 messages
//#
/*
    //#MediaSourceState.java:1:1: class: com.dmdirc.addons.nowplaying.MediaSourceState
 * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

package com.dmdirc.addons.nowplaying;

/**
 * The state of a media source.
 *
 * @author Shane McCormack
 * @since 0.6.3m1
 */
public enum MediaSourceState {
    //#MediaSourceState.java:31: method: MediaSourceState[] com.dmdirc.addons.nowplaying.MediaSourceState.values()
    //#input(MediaSourceState[] values()): $VALUES
    //#input(MediaSourceState[] values()): $VALUES.length
    //#input(MediaSourceState[] values()): $VALUES[0..5]
    //#output(MediaSourceState[] values()): new MediaSourceState[](values#1) num objects
    //#output(MediaSourceState[] values()): return_value.length
    //#output(MediaSourceState[] values()): return_value[0..5]
    //#output(MediaSourceState[] values()): return_value
    //#new obj(MediaSourceState[] values()): new MediaSourceState[](values#1)
    //#pre[1] (MediaSourceState[] values()): (soft) init'ed($VALUES[0..5])
    //#post(MediaSourceState[] values()): return_value == &new MediaSourceState[](values#1)
    //#post(MediaSourceState[] values()): new MediaSourceState[](values#1) num objects == 1
    //#post(MediaSourceState[] values()): return_value.length == 5
    //#post(MediaSourceState[] values()): return_value[0..5] == One-of{$VALUES[0..5], undefined}
    //#MediaSourceState.java:31: end of method: MediaSourceState[] com.dmdirc.addons.nowplaying.MediaSourceState.values()
    //#MediaSourceState.java:31: method: MediaSourceState com.dmdirc.addons.nowplaying.MediaSourceState.valueOf(String)
    //#input(MediaSourceState valueOf(String)): __Descendant_Table[com/dmdirc/addons/nowplaying/MediaSourceState]
    //#input(MediaSourceState valueOf(String)): __Descendant_Table[others]
    //#input(MediaSourceState valueOf(String)): name
    //#output(MediaSourceState valueOf(String)): return_value
    //#presumption(MediaSourceState valueOf(String)): java.lang.Enum:valueOf(...).__Tag@31 == com/dmdirc/addons/nowplaying/MediaSourceState
    //#post(MediaSourceState valueOf(String)): init'ed(return_value)
    //#MediaSourceState.java:31: end of method: MediaSourceState com.dmdirc.addons.nowplaying.MediaSourceState.valueOf(String)
	/** Media Source is closed. */
	CLOSED ("Closed"),
    //#MediaSourceState.java:33: method: com.dmdirc.addons.nowplaying.MediaSourceState.com.dmdirc.addons.nowplaying.MediaSourceState__static_init
    //#output(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): $VALUES
    //#output(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): CLOSED
    //#output(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): NOTKNOWN
    //#output(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): PAUSED
    //#output(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): PLAYING
    //#output(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): STOPPED
    //#output(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): __Descendant_Table[com/dmdirc/addons/nowplaying/MediaSourceState]
    //#output(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): __Dispatch_Table.getNiceName()Ljava/lang/String;
    //#output(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): new MediaSourceState(MediaSourceState__static_init#1) num objects
    //#output(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): CLOSED.__Tag
    //#output(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): CLOSED.niceName
    //#output(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): new MediaSourceState(MediaSourceState__static_init#2) num objects
    //#output(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): STOPPED.__Tag
    //#output(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): STOPPED.niceName
    //#output(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): new MediaSourceState(MediaSourceState__static_init#3) num objects
    //#output(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): PAUSED.__Tag
    //#output(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): PAUSED.niceName
    //#output(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): new MediaSourceState(MediaSourceState__static_init#4) num objects
    //#output(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): PLAYING.__Tag
    //#output(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): PLAYING.niceName
    //#output(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): new MediaSourceState(MediaSourceState__static_init#5) num objects
    //#output(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): NOTKNOWN.__Tag
    //#output(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): NOTKNOWN.niceName
    //#output(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): new MediaSourceState[](MediaSourceState__static_init#6) num objects
    //#output(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): $VALUES.length
    //#output(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): $VALUES[0]
    //#output(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): $VALUES[1]
    //#output(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): $VALUES[2]
    //#output(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): $VALUES[3]
    //#output(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): $VALUES[4]
    //#new obj(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): new MediaSourceState(MediaSourceState__static_init#1)
    //#new obj(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): new MediaSourceState(MediaSourceState__static_init#2)
    //#new obj(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): new MediaSourceState(MediaSourceState__static_init#3)
    //#new obj(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): new MediaSourceState(MediaSourceState__static_init#4)
    //#new obj(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): new MediaSourceState(MediaSourceState__static_init#5)
    //#new obj(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): new MediaSourceState[](MediaSourceState__static_init#6)
    //#post(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): $VALUES == &new MediaSourceState[](MediaSourceState__static_init#6)
    //#post(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): CLOSED == &new MediaSourceState(MediaSourceState__static_init#1)
    //#post(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): $VALUES[0] == &new MediaSourceState(MediaSourceState__static_init#1)
    //#post(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): NOTKNOWN == &new MediaSourceState(MediaSourceState__static_init#5)
    //#post(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): $VALUES[4] == &new MediaSourceState(MediaSourceState__static_init#5)
    //#post(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): PAUSED == &new MediaSourceState(MediaSourceState__static_init#3)
    //#post(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): $VALUES[2] == &new MediaSourceState(MediaSourceState__static_init#3)
    //#post(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): PLAYING == &new MediaSourceState(MediaSourceState__static_init#4)
    //#post(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): $VALUES[3] == &new MediaSourceState(MediaSourceState__static_init#4)
    //#post(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): STOPPED == &new MediaSourceState(MediaSourceState__static_init#2)
    //#post(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): $VALUES[1] == &new MediaSourceState(MediaSourceState__static_init#2)
    //#post(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): __Descendant_Table[com/dmdirc/addons/nowplaying/MediaSourceState] == &__Dispatch_Table
    //#post(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): __Dispatch_Table.getNiceName()Ljava/lang/String; == &getNiceName
    //#post(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): new MediaSourceState(MediaSourceState__static_init#1) num objects == 1
    //#post(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): new MediaSourceState(MediaSourceState__static_init#2) num objects == 1
    //#post(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): new MediaSourceState(MediaSourceState__static_init#3) num objects == 1
    //#post(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): new MediaSourceState(MediaSourceState__static_init#4) num objects == 1
    //#post(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): new MediaSourceState(MediaSourceState__static_init#5) num objects == 1
    //#post(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): new MediaSourceState[](MediaSourceState__static_init#6) num objects == 1
    //#post(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): CLOSED.__Tag == com/dmdirc/addons/nowplaying/MediaSourceState
    //#post(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): STOPPED.__Tag == com/dmdirc/addons/nowplaying/MediaSourceState
    //#post(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): PAUSED.__Tag == com/dmdirc/addons/nowplaying/MediaSourceState
    //#post(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): PLAYING.__Tag == com/dmdirc/addons/nowplaying/MediaSourceState
    //#post(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): NOTKNOWN.__Tag == com/dmdirc/addons/nowplaying/MediaSourceState
    //#post(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): CLOSED.niceName == &"Closed"
    //#post(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): STOPPED.niceName == &"Stopped"
    //#post(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): PAUSED.niceName == &"Paused"
    //#post(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): PLAYING.niceName == &"Playing"
    //#post(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): NOTKNOWN.niceName == &"Unknown"
    //#post(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): $VALUES.length == 5
    //#unanalyzed(com.dmdirc.addons.nowplaying.MediaSourceState__static_init): Effects-of-calling:java.lang.Enum
	/** Media Source is stopped. */
	STOPPED ("Stopped"),
	/** Media Source is paused. */
	PAUSED ("Paused"),
	/** Media Source is playing. */
	PLAYING ("Playing"),
	/** Media Source is giving an unknown state. */
	NOTKNOWN ("Unknown");
    //#MediaSourceState.java:41: end of method: com.dmdirc.addons.nowplaying.MediaSourceState.com.dmdirc.addons.nowplaying.MediaSourceState__static_init
	
	/** Nice name for this state. */
	final String niceName;
	
	/**
	 * Create a new MediaSourceState
	 *
	 * @param niceName Nice name for this state.
	 */
	MediaSourceState(final String niceName) {
    //#MediaSourceState.java:51: method: void com.dmdirc.addons.nowplaying.MediaSourceState.com.dmdirc.addons.nowplaying.MediaSourceState(String, int, String)
    //#input(void com.dmdirc.addons.nowplaying.MediaSourceState(String, int, String)): Param_1
    //#input(void com.dmdirc.addons.nowplaying.MediaSourceState(String, int, String)): Param_2
    //#input(void com.dmdirc.addons.nowplaying.MediaSourceState(String, int, String)): niceName
    //#input(void com.dmdirc.addons.nowplaying.MediaSourceState(String, int, String)): this
    //#output(void com.dmdirc.addons.nowplaying.MediaSourceState(String, int, String)): this.niceName
    //#post(void com.dmdirc.addons.nowplaying.MediaSourceState(String, int, String)): this.niceName == niceName
    //#post(void com.dmdirc.addons.nowplaying.MediaSourceState(String, int, String)): init'ed(this.niceName)
		this.niceName = niceName;
	}
    //#MediaSourceState.java:53: end of method: void com.dmdirc.addons.nowplaying.MediaSourceState.com.dmdirc.addons.nowplaying.MediaSourceState(String, int, String)
	
	/**
	 * Get the nice name for this state.
     *
     * @return This state's nice name
	 */
	public String getNiceName() {
		return niceName;
    //#MediaSourceState.java:61: method: String com.dmdirc.addons.nowplaying.MediaSourceState.getNiceName()
    //#input(String getNiceName()): this
    //#input(String getNiceName()): this.niceName
    //#output(String getNiceName()): return_value
    //#post(String getNiceName()): return_value == this.niceName
    //#post(String getNiceName()): init'ed(return_value)
    //#MediaSourceState.java:61: end of method: String com.dmdirc.addons.nowplaying.MediaSourceState.getNiceName()
	}
}
    //#MediaSourceState.java:: end of class: com.dmdirc.addons.nowplaying.MediaSourceState
