jreceiver.common.rec.source
Class FilterableRec

java.lang.Object
  |
  +--jreceiver.common.rec.BaseRec
        |
        +--jreceiver.common.rec.source.FilterableRec
All Implemented Interfaces:
Filterable, Hashable, Rec

public class FilterableRec
extends BaseRec
implements Filterable

Bean to represent a single filterable source

Version:
$Revision: 1.2 $ $Date: 2002/09/24 18:20:44 $
Author:
Reed Esau

Field Summary
protected  int m_pl_src_id
           
protected  java.lang.String m_raw_filter
           
 
Fields inherited from interface jreceiver.common.rec.source.Filterable
HKEY_FILTER
 
Fields inherited from interface jreceiver.common.rec.Rec
HKEY_KEY, NO_LIMIT
 
Constructor Summary
FilterableRec()
          ctor - default
FilterableRec(java.util.Hashtable hash)
          ctor - construct from a hashtable, usually retrieved via XML-RPC
FilterableRec(int pl_src_id, java.lang.String raw_filter)
          ctor - normal
 
Method Summary
 java.lang.Object getKey()
          return the Number-derived, Key-derived or String that serves as this Rec's key.
 java.lang.String getRawFilter()
          Obtain the filter
 void setKey(java.lang.Object new_key)
          assign the Number-derived, Key-derived or String that serves as this Rec's key.
 void setRawFilter(java.lang.String raw_filter)
          Assign the filter
 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_pl_src_id

protected int m_pl_src_id

m_raw_filter

protected java.lang.String m_raw_filter
Constructor Detail

FilterableRec

public FilterableRec()
ctor - default

FilterableRec

public FilterableRec(int pl_src_id,
                     java.lang.String raw_filter)
ctor - normal

FilterableRec

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

getKey

public java.lang.Object getKey()
Description copied from interface: Rec
return the Number-derived, Key-derived or String 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

getRawFilter

public java.lang.String getRawFilter()
Description copied from interface: Filterable
Obtain the filter
Specified by:
getRawFilter in interface Filterable

setRawFilter

public void setRawFilter(java.lang.String raw_filter)
Description copied from interface: Filterable
Assign the filter
Specified by:
setRawFilter in interface Filterable

toHash

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

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

Specified by:
toHash in interface Hashable
Returns:
 

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 java.lang.Object


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