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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
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
-
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.