jreceiver.common.rec.source
Class StuneRec

java.lang.Object
  |
  +--jreceiver.common.rec.BaseRec
        |
        +--jreceiver.common.rec.source.SourceRec
              |
              +--jreceiver.common.rec.source.TuneRec
                    |
                    +--jreceiver.common.rec.source.StuneRec
All Implemented Interfaces:
Hashable, Mexternal, Rec, Selectable, Source, Tune

public class StuneRec
extends TuneRec
implements Mexternal

Bean to represent a station tune.

Version:
$Revision: 1.6 $ $Date: 2003/04/27 23:14:31 $
Author:
Reed Esau

Field Summary
protected  boolean m_cache_data
           
 
Fields inherited from class jreceiver.common.rec.source.TuneRec
m_album, m_artist, m_bitrate, m_comment, m_composer, m_data_offset, m_genres, m_is_checked, m_trackno, m_tune_type, m_year
 
Fields inherited from class jreceiver.common.rec.source.SourceRec
m_content_url, m_direct_uri, m_dst_mime, m_duration, m_mime, m_site_id, m_src_id, m_src_type, m_title
 
Fields inherited from interface jreceiver.common.rec.source.Mexternal
HKEY_CACHE_DATA
 
Fields inherited from interface jreceiver.common.rec.source.Source
DEFAULT_URL, FORCE_PLAYLIST_URL, HKEY_CONTENT_URL, HKEY_DIRECT_URI, HKEY_DST_MIME, HKEY_DURATION, HKEY_MIME, HKEY_SITE_ID, HKEY_SRC_ID, HKEY_SRC_TYPE, HKEY_TITLE, MAX_SRC_ID, MIN_SRC_ID, POPULATE_CONTENT_URL, POPULATE_DIRECT_URI, POPULATE_MEXTERNAL, POPULATE_MFILE, SRCTYPE_PLAYLIST, SRCTYPE_TUNE, SRCTYPE_UNDEFINED
 
Fields inherited from interface jreceiver.common.rec.Rec
HKEY_KEY, NO_LIMIT
 
Fields inherited from interface jreceiver.common.rec.source.Tune
HKEY_ALBUM, HKEY_BITRATE, HKEY_COMMENT, HKEY_COMPOSER, HKEY_CONTENT_TYPE, HKEY_DATA_OFFSET, HKEY_LEAD_PERFORMER, HKEY_TRACK_NUMBER, HKEY_TUNE_TYPE, HKEY_YEAR, POPULATE_ALBUM, POPULATE_ARTIST, POPULATE_COMMENTS, POPULATE_COMPOSER, POPULATE_GENRELIST, TUNE_TYPE_ALL, TUNE_TYPE_CD_BASED, TUNE_TYPE_FILE, TUNE_TYPE_STATION
 
Fields inherited from interface jreceiver.common.rec.Selectable
HKEY_CHECKED
 
Constructor Summary
StuneRec()
          empty ctor needed for building via Digester
StuneRec(java.util.Hashtable hash)
          ctor - construct from a hashtable, usually retrieved via XML-RPC
StuneRec(int src_id, java.lang.String mime, int duration, java.lang.String title, org.esau.ptarmigan.util.PtarURI direct_uri, java.net.URL content_url, boolean cache_data)
          ctor
StuneRec(int src_id, java.lang.String mime, int duration, java.lang.String title, org.esau.ptarmigan.util.PtarURI direct_uri, java.net.URL content_url, java.util.Vector genres, int bitrate, boolean cache_data)
          ctor
 
Method Summary
 boolean getCacheData()
          Obtain the cache_data flag.
 void setCacheData(boolean cache_data)
          Assign the cache_data flag
 java.util.Hashtable toHash()
          Store the object as a hash suitable for transport over an XML-RPC connection or similar.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class jreceiver.common.rec.source.TuneRec
addComment, addGenre, createInstance, createInstance, getAlbum, getAlbumStr, getArtist, getArtistStr, getBitrate, getChecked, getComment, getCommentStr, getComposer, getComposerStr, getDataOffset, getGenres, getGenreStr, getIsCdBasedTune, getIsStationTune, getIsTuneFile, getTrackNo, getTuneType, getYear, reconstitute, setAlbum, setAlbum, setArtist, setArtist, setBitrate, setChecked, setComment, setComposer, setComposer, setDataOffset, setGenres, setTrackNo, setTuneType, setYear
 
Methods inherited from class jreceiver.common.rec.source.SourceRec
getContentSystemId, getContentURL, getDirectSystemId, getDirectURI, getDstMime, getDuration, getFile, getFileExtension, getFileName, getFilePath, getIsLocal, getIsOffsite, getIsPlaylist, getIsTune, getKey, getMime, getSiteId, getSrcId, getTitle, getType, setContentURL, setDirectURI, setDirectURI, setDuration, setKey, setMime, setSrcId, setTitle
 
Methods inherited from class jreceiver.common.rec.BaseRec
dissolve, dissolveMap, find, find, find, find
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jreceiver.common.rec.source.Source
getContentSystemId, getContentURL, getDirectSystemId, getDirectURI, getDstMime, getDuration, getFile, getFileExtension, getFileName, getFilePath, getIsLocal, getIsOffsite, getIsPlaylist, getIsTune, getMime, getSiteId, getSrcId, getTitle, getType, setContentURL, setDirectURI, setDirectURI, setDuration, setMime, setSrcId, setTitle
 
Methods inherited from interface jreceiver.common.rec.Rec
getKey, setKey
 

Field Detail

m_cache_data

protected boolean m_cache_data
Constructor Detail

StuneRec

public StuneRec()
empty ctor needed for building via Digester

StuneRec

public StuneRec(int src_id,
                java.lang.String mime,
                int duration,
                java.lang.String title,
                org.esau.ptarmigan.util.PtarURI direct_uri,
                java.net.URL content_url,
                boolean cache_data)
ctor

StuneRec

public StuneRec(int src_id,
                java.lang.String mime,
                int duration,
                java.lang.String title,
                org.esau.ptarmigan.util.PtarURI direct_uri,
                java.net.URL content_url,
                java.util.Vector genres,
                int bitrate,
                boolean cache_data)
ctor

StuneRec

public StuneRec(java.util.Hashtable hash)
         throws RecException
ctor - construct from a hashtable, usually retrieved via XML-RPC
Method Detail

toHash

public java.util.Hashtable toHash()
Store the object as a hash suitable for transport over an XML-RPC connection or similar.

Use StuneRec(Hashtable) to transform the data back into an object of this type.

Specified by:
toHash in interface Hashable
Overrides:
toHash in class TuneRec
Returns:
 

setCacheData

public void setCacheData(boolean cache_data)
Assign the cache_data flag
Specified by:
setCacheData in interface Mexternal

getCacheData

public boolean getCacheData()
Obtain the cache_data flag.
Specified by:
getCacheData in interface Mexternal

toString

public java.lang.String toString()
Description copied from interface: Hashable
Returns a string representation of the object.
Specified by:
toString in interface Hashable
Overrides:
toString in class TuneRec


Copyright © 2001-2002 Reed Esau, All Rights Reserved.