jreceiver.common.rec.driver
Class DeviceBindingRec
java.lang.Object
|
+--jreceiver.common.rec.BaseRec
|
+--jreceiver.common.rec.driver.DeviceBindingRec
- All Implemented Interfaces:
- DeviceBinding, Hashable, Rec, Selectable
- public class DeviceBindingRec
- extends BaseRec
- implements DeviceBinding, Selectable
Bean to represent a single devbind record
- Version:
- $Revision: 1.4 $ $Date: 2003/03/28 10:11:13 $
- Author:
- Reed Esau
Method Summary |
boolean |
getChecked()
get the current select state |
java.lang.Object |
getKey()
return the Number-derived, Key-derived or String that serves as this Rec's key. |
Device |
getMasterDevice()
|
Device |
getSlaveDevice()
|
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 |
DeviceBindingRec
public DeviceBindingRec(DeviceBindingKey key)
- ctor - shallow
DeviceBindingRec
public DeviceBindingRec(DeviceBindingKey key,
Device master_device,
Device slave_device)
- ctor - deep
DeviceBindingRec
public DeviceBindingRec(java.util.Hashtable hash)
throws RecException
- ctor - construct from a hashtable, usually retrieved via XML-RPC
- Parameters:
hash
-
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
getMasterDevice
public Device getMasterDevice()
- Specified by:
getMasterDevice
in interface DeviceBinding
getSlaveDevice
public Device getSlaveDevice()
- Specified by:
getSlaveDevice
in interface DeviceBinding
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 DeviceBindingRec(Hashtable)
to transform the data
back into an object of this type.
- Specified by:
toHash
in interface Hashable
- Returns:
-
Copyright © 2001-2002 Reed Esau, All Rights Reserved.