jreceiver.common.rec.util
Class TranscoderRec

java.lang.Object
  |
  +--jreceiver.common.rec.BaseRec
        |
        +--jreceiver.common.rec.util.TranscoderRec
All Implemented Interfaces:
Hashable, Rec, Selectable, Transcoder

public class TranscoderRec
extends BaseRec
implements Transcoder, Selectable

Bean to represent a single transcoder record

Version:
$Revision: 1.2 $ $Date: 2002/09/24 18:35:10 $
Author:
Reed Esau

Field Summary
protected  boolean m_data_sink
           
protected  java.lang.String m_dst_mime
           
protected  boolean m_enabled
           
protected  int m_id
           
protected  boolean m_is_checked
          is the item selected in the form?
protected  java.lang.String m_local_cmd
           
protected  java.lang.String m_src_mime
           
 
Fields inherited from interface jreceiver.common.rec.util.Transcoder
HKEY_XC_DATA_SINK, HKEY_XC_DST_MIME, HKEY_XC_ENABLED, HKEY_XC_LOCAL_CMD, HKEY_XC_SRC_MIME
 
Fields inherited from interface jreceiver.common.rec.Rec
HKEY_KEY, NO_LIMIT
 
Fields inherited from interface jreceiver.common.rec.Selectable
HKEY_CHECKED
 
Constructor Summary
TranscoderRec()
           
TranscoderRec(java.util.Hashtable hash)
          ctor - construct from a hashtable, usually retrieved via XML-RPC
TranscoderRec(int id, java.lang.String local_cmd, java.lang.String src_mime, java.lang.String dst_mime, boolean data_sink, boolean enabled)
           
 
Method Summary
 boolean getChecked()
          get the current select state
 boolean getDataSink()
           
 java.lang.String getDstMime()
           
 boolean getEnabled()
           
 int getId()
           
 java.lang.Object getKey()
          return the Integer or Key object that serves as this Rec's key.
 java.lang.String getLocalCmd()
           
 java.lang.String getSrcMime()
           
static java.util.Vector reconstitute(java.util.Vector vector)
          Reconstitute each TranscoderRec object that appears as a hash in the list.
 void setChecked(boolean is_checked)
          set the select state
 void setKey(java.lang.Object new_key)
          assign the Number-derived, Key-derived or String that serves as this Rec's key.
 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.BaseRec
dissolve, dissolveMap, find, find, find, find
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_is_checked

protected boolean m_is_checked
is the item selected in the form?

m_id

protected int m_id

m_local_cmd

protected java.lang.String m_local_cmd

m_src_mime

protected java.lang.String m_src_mime

m_dst_mime

protected java.lang.String m_dst_mime

m_enabled

protected boolean m_enabled

m_data_sink

protected boolean m_data_sink
Constructor Detail

TranscoderRec

public TranscoderRec()

TranscoderRec

public TranscoderRec(int id,
                     java.lang.String local_cmd,
                     java.lang.String src_mime,
                     java.lang.String dst_mime,
                     boolean data_sink,
                     boolean enabled)

TranscoderRec

public TranscoderRec(java.util.Hashtable hash)
ctor - construct from a hashtable, usually retrieved via XML-RPC
Parameters:
hash -  
Method Detail

getKey

public java.lang.Object getKey()
return the Integer or Key object that serves as this Rec's key.
Specified by:
getKey in 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:
setKey in interface Rec

getId

public int getId()
Specified by:
getId in interface Transcoder

getLocalCmd

public java.lang.String getLocalCmd()
Specified by:
getLocalCmd in interface Transcoder

getSrcMime

public java.lang.String getSrcMime()
Specified by:
getSrcMime in interface Transcoder

getDstMime

public java.lang.String getDstMime()
Specified by:
getDstMime in interface Transcoder

getDataSink

public boolean getDataSink()
Specified by:
getDataSink in interface Transcoder

getEnabled

public boolean getEnabled()
Specified by:
getEnabled in interface Transcoder

getChecked

public boolean getChecked()
Description copied from interface: Selectable
get the current select state
Specified by:
getChecked in interface Selectable
Following copied from interface: jreceiver.common.rec.Selectable
Returns:
boolean true if the item has been selected by the user; false otherwise

setChecked

public void setChecked(boolean is_checked)
Description copied from interface: Selectable
set the select state
Specified by:
setChecked in interface Selectable
Following copied from interface: jreceiver.common.rec.Selectable
Parameters:
is_checked -  

toString

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

toHash

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

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

Specified by:
toHash in interface Hashable
Following copied from interface: jreceiver.common.rec.Hashable
Returns:
 

reconstitute

public static java.util.Vector reconstitute(java.util.Vector vector)
Reconstitute each TranscoderRec object that appears as a hash in the list.


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