jreceiver.common.rec.driver
Class DriverCommandRec

java.lang.Object
  |
  +--jreceiver.common.rec.driver.DriverCommandRec
All Implemented Interfaces:
DriverCommand, Hashable, Rec, Selectable

public class DriverCommandRec
extends java.lang.Object
implements DriverCommand, Selectable

Bean to represent a single 'command list' record

Version:
$Revision: 1.2 $ $Date: 2002/12/29 00:44:06 $
Author:
Reed Esau

Fields inherited from interface jreceiver.common.rec.driver.DriverCommand
HKEY_COMMAND_IDS, HKEY_DRV_SLAVE_ID
 
Fields inherited from interface jreceiver.common.rec.Rec
HKEY_KEY, NO_LIMIT
 
Fields inherited from interface jreceiver.common.rec.Selectable
HKEY_CHECKED
 
Constructor Summary
DriverCommandRec(java.util.Hashtable hash)
          ctor - construct from a hashtable, usually retrieved via XML-RPC
DriverCommandRec(int drv_slave_id, java.util.Vector command_ids)
          ctor - shallow
 
Method Summary
 boolean getChecked()
          get the current select state
 java.util.Vector getCommandIds()
           
 java.lang.Object getKey()
          return the Number-derived, Key-derived or String that serves as this Rec's key.
static java.util.Vector reconstitute(java.util.Vector vector)
          Reconstitute each DriverCommandRec object that appears as a hash in the list.
 void setChecked(boolean is_checked)
          set the select state
 void setCommandIds(java.util.Vector command_ids)
           
 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
 

Constructor Detail

DriverCommandRec

public DriverCommandRec(int drv_slave_id,
                        java.util.Vector command_ids)
ctor - shallow

DriverCommandRec

public DriverCommandRec(java.util.Hashtable hash)
ctor - construct from a hashtable, usually retrieved via XML-RPC
Parameters:
hash -  
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

getCommandIds

public java.util.Vector getCommandIds()
Specified by:
getCommandIds in interface DriverCommand

setCommandIds

public void setCommandIds(java.util.Vector command_ids)
Specified by:
setCommandIds in interface DriverCommand

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 DriverCommandRec(Hashtable) to transform the data back into an object of this type.

Specified by:
toHash in interface Hashable
Returns:
 

reconstitute

public static java.util.Vector reconstitute(java.util.Vector vector)
Reconstitute each DriverCommandRec object that appears as a hash in the list.
Parameters:
vector -  
Returns:
 


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