audiojury.domain
Class Sound

java.lang.Object
  |
  +--audiojury.domain.Sound
All Implemented Interfaces:
java.io.Serializable

public class Sound
extends java.lang.Object
implements java.io.Serializable

Represents a sound file.

See Also:
Serialized Form

Constructor Summary
Sound()
          Creates a new Sound object.
 
Method Summary
 java.lang.String getName()
          Gets the name of the Sound.
 java.lang.String getPath()
          Gets the path to the sound file in the Sound.
 boolean isCopied()
          Check if the Sound has been copied to it's destination yet.
 void setCopied(boolean scp)
          Indicate that the Sound has been copies to it's final position.
 void setName(java.lang.String sname)
          Sets the name of the Sound.
 void setPath(java.lang.String spath)
          Sets the path to the sound file in the Sound.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sound

public Sound()
Creates a new Sound object.

Method Detail

getName

public java.lang.String getName()
Gets the name of the Sound.

Returns:
String with the name of the sound.

setName

public void setName(java.lang.String sname)
Sets the name of the Sound.

Parameters:
sname - String with the new name for the sound.

getPath

public java.lang.String getPath()
Gets the path to the sound file in the Sound.

Returns:
String with the path stored in the sound.

setPath

public void setPath(java.lang.String spath)
Sets the path to the sound file in the Sound.

Parameters:
spath - String with the path to store in the sound.

isCopied

public boolean isCopied()
Check if the Sound has been copied to it's destination yet. Used internaly by the system.

Returns:
boolean indicating if the Sound has been copied to it's final destination yet.

setCopied

public void setCopied(boolean scp)
Indicate that the Sound has been copies to it's final position.

Parameters:
scp - set this boolean to true to mark the sound as copied.