com.ibm.tspaces.examples.copypaste
Class TClipboardTuple
java.lang.Object
|
+--com.ibm.tspaces.SuperTuple
|
+--com.ibm.tspaces.SubclassableTuple
|
+--com.ibm.tspaces.examples.copypaste.TClipboardTuple
- public class TClipboardTuple
- extends SubclassableTuple
This class represents a subclass of tuple that is
(1) The tuplespace name
(2) The user name
(3) The buffer number
(4) The cut/paste buffer data.
- Author:
- Matthias Eichstaedt, Toby Lehman, Steve McLaughry
- See Also:
Tuple, Serialized Form
|
Field Summary |
static java.lang.String |
CLIPBOARD
The value of the first field, used to uniquely identify
the tuple. |
|
Constructor Summary |
TClipboardTuple()
Make a formal TClipboardTuple to match with a tuple with any user,
any buffer, any content string. |
TClipboardTuple(java.lang.String user_)
Make a formal TClipboardTuple to match with a tuple with any string
in any buffer for a given user. |
TClipboardTuple(java.lang.String user_,
int bufferNum_)
Make a formal TClipboardTuple to match with a tuple with any string
for a given user. |
TClipboardTuple(java.lang.String user_,
int bufferNum_,
java.lang.String data_)
Make a TClipboardTuple with passed string. |
| Methods inherited from class com.ibm.tspaces.SuperTuple |
add,
add,
add,
add,
add,
add,
add,
add,
add,
add,
add,
add,
add,
add,
add,
addFieldType,
changeName,
clone,
equals,
fieldExists,
fields,
getExpire,
getField,
getField,
getFieldType,
getTimeStamp,
getTupleID,
isExpired,
matches,
numberOfFields,
putField,
setExpire,
setField,
setFields,
setFormal,
setFormal,
setFormal,
setFormal,
setName,
setTimeStamp,
setTupleID,
setType,
setType,
setValue,
setValue,
structureName,
template,
toString |
| Methods inherited from class java.lang.Object |
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
CLIPBOARD
public static final java.lang.String CLIPBOARD
- The value of the first field, used to uniquely identify
the tuple.
TClipboardTuple
public TClipboardTuple()
throws TupleSpaceException
- Make a formal TClipboardTuple to match with a tuple with any user,
any buffer, any content string.
TClipboardTuple
public TClipboardTuple(java.lang.String user_)
throws TupleSpaceException
- Make a formal TClipboardTuple to match with a tuple with any string
in any buffer for a given user.
- Parameters:
user_ - - the user we're looking for.
TClipboardTuple
public TClipboardTuple(java.lang.String user_,
int bufferNum_)
throws TupleSpaceException
- Make a formal TClipboardTuple to match with a tuple with any string
for a given user.
- Parameters:
user_ - - the user we're looking for.bufferNum_ - - the buffer we're looking for.
TClipboardTuple
public TClipboardTuple(java.lang.String user_,
int bufferNum_,
java.lang.String data_)
throws TupleSpaceException
- Make a TClipboardTuple with passed string.
- Parameters:
user_ - - The user who owns these tuplesbufferNum_ - - The buffer that this tuple represents.data_ - - The data we're adding (or looking for).