jreceiver.common.rec.tag
Class  AlbumRec
java.lang.Object
  |
  +--jreceiver.common.rec.BaseRec
        |
        +--jreceiver.common.rec.tag.AlbumRec
- All Implemented Interfaces: 
- Album, Hashable, Rec
- public class AlbumRec- extends BaseRec- implements Album
Bean to represent a single album
- Version: 
- $Revision: 1.2 $ $Date: 2002/09/24 18:29:51 $
- Author: 
- Reed Esau
| Field Summary | 
| protected  int | m_id
 | 
| protected  java.lang.String | m_name
 | 
 
 
 
| Constructor Summary | 
| AlbumRec(java.util.Hashtable hash)ctor - construct from a hashtable, usually retrieved via XML-RPC
 | 
| AlbumRec(int id,
         java.lang.String name)ctor
 | 
 
| Method Summary | 
|  int | getId()
 | 
|  java.lang.Object | getKey()return the Integer object that serves as this Rec's key.
 | 
|  java.lang.String | getName()
 | 
| static java.util.Vector | reconstitute(java.util.Vector vector)Reconstitute each AlbumRec object that appears as a hash
 in the list.
 | 
|  void | setId(int id)
 | 
|  void | setKey(java.lang.Object new_key)assign the Number-derived, Key-derived or String that serves as this Rec's key.
 | 
|  void | setName(java.lang.String name)
 | 
|  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 java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
m_name
protected java.lang.String m_name
m_id
protected int m_id
AlbumRec
public AlbumRec(int id,
                java.lang.String name)
- ctor
AlbumRec
public AlbumRec(java.util.Hashtable hash)
- ctor - construct from a hashtable, usually retrieved via XML-RPC
getKey
public java.lang.Object getKey()
- return the Integer object that serves as this Rec's key.- 
- Specified by: 
- getKeyin interface- Rec
 
setKey
public void setKey(java.lang.Object new_key)
- assign the Number-derived, Key-derived or String that serves as this Rec's key.- 
- Specified by: 
- setKeyin interface- Rec
 
getName
public java.lang.String getName()
- 
- Specified by: 
- getNamein interface- Album
 
setName
public void setName(java.lang.String name)
- 
- Specified by: 
- setNamein interface- Album
 
getId
public int getId()
- 
- Specified by: 
- getIdin interface- Album
 
setId
public void setId(int id)
- 
- Specified by: 
- setIdin interface- Album
 
toHash
public java.util.Hashtable toHash()
- Store the object as a hash suitable for
 transport over an XML-RPC connection or similar.
 
 Use AlbumRec(Hashtable)to transform the data
 back into an object of this type.
 
- 
- Specified by: 
- toHashin interface- Hashable
 
- 
- Returns:
-  
 
toString
public java.lang.String toString()
- Description copied from interface: Hashable
- Returns a string representation of the object.- 
- Specified by: 
- toStringin interface- Hashable
- Overrides:
- toStringin class- java.lang.Object
 
reconstitute
public static java.util.Vector reconstitute(java.util.Vector vector)
- Reconstitute each AlbumRec object that appears as a hash
 in the list.- 
 
Copyright © 2001-2002 Reed Esau, All Rights Reserved.