|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tanager.application.CDeleteSongResultEnum
public class CDeleteSongResultEnum
This class encapsulates the enumerations for
the various return values from the Music
Player's deleteSong() method.
a template described in the July 1997
issue of Java World,
http://www.javaworld.com/javaworld/jw-07-1997/jw-07-enumerated.html| Field Summary | |
|---|---|
static CDeleteSongResultEnum |
CannotDeletePausedSong
Represents an unsuccessful song deletion. |
static CDeleteSongResultEnum |
CannotDeletePausingSong
Represents an unsuccessful song deletion. |
static CDeleteSongResultEnum |
CannotDeletePlayingSong
Represents an unsuccessful song deletion. |
static CDeleteSongResultEnum |
CannotDeleteStoppingSong
Represents an unsuccessful song deletion. |
private java.lang.String |
id_
The string representation of the deleteSong() return value. |
static CDeleteSongResultEnum |
SongDeleted
Represents a sucessful song deletion. |
static CDeleteSongResultEnum |
SongNotFound
Represents an unsuccessful song deletion. |
| Constructor Summary | |
|---|---|
private |
CDeleteSongResultEnum(java.lang.String id)
This is the only constructor allowed for a CDeleteSongResultEnum
object. |
| Method Summary | |
|---|---|
boolean |
equals(CDeleteSongResultEnum deleteSongResult)
Returns whether or not the string representation of the given CDeleteSongResultEnum object
equals our own. |
java.lang.String |
toString()
Returns the string representation of the CDeleteSongResultEnum
object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String id_
The string representation of the
deleteSong() return value.
public static final CDeleteSongResultEnum SongDeleted
Represents a sucessful song deletion.
public static final CDeleteSongResultEnum CannotDeletePlayingSong
Represents an unsuccessful song deletion. The song could not be deleted because it was currently playing.
public static final CDeleteSongResultEnum CannotDeletePausedSong
Represents an unsuccessful song deletion. The song could not be deleted because it was currently paused.
public static final CDeleteSongResultEnum CannotDeletePausingSong
Represents an unsuccessful song deletion. The song could not be deleted because it was currently pausing.
public static final CDeleteSongResultEnum CannotDeleteStoppingSong
Represents an unsuccessful song deletion. The song could not be deleted because it was currently stopping.
public static final CDeleteSongResultEnum SongNotFound
Represents an unsuccessful song deletion. The song could not be deleted because it could not be found.
| Constructor Detail |
|---|
private CDeleteSongResultEnum(java.lang.String id)
This is the only constructor allowed for a
CDeleteSongResultEnum
object.
id - The string representation of the
deleteSong() return
value.| Method Detail |
|---|
public java.lang.String toString()
Returns the string representation of the
CDeleteSongResultEnum
object.
toString in class java.lang.ObjectdeleteSong() return
valuepublic boolean equals(CDeleteSongResultEnum deleteSongResult)
Returns whether or not the string
representation of the given
CDeleteSongResultEnum object
equals our own.
deleteSongResult -
CDeleteSongResultEnum
object equals our own
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||