Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.whiteboard.sxe.records.serializable.SetRecordDataObject Class Reference
Inheritance diagram for de.fu_berlin.inf.dpp.whiteboard.sxe.records.serializable.SetRecordDataObject:
de.fu_berlin.inf.dpp.whiteboard.sxe.records.serializable.RecordDataObject

List of all members.

Public Member Functions

 SetRecordDataObject ()
IRecord getIRecord (DocumentRecord document) throws MissingRecordException
boolean isAlreadyApplied (DocumentRecord document) throws MissingRecordException
String getTargetRid ()

Constructor & Destructor Documentation

de.fu_berlin.inf.dpp.whiteboard.sxe.records.serializable.SetRecordDataObject.SetRecordDataObject ( )

Member Function Documentation

IRecord de.fu_berlin.inf.dpp.whiteboard.sxe.records.serializable.SetRecordDataObject.getIRecord ( DocumentRecord  document) throws MissingRecordException [virtual]

Usually returns the respective SetRecord.

However, a RemoveRecord is returned if the respective SetRecord would change the target's parent to a deleted record.

Implements de.fu_berlin.inf.dpp.whiteboard.sxe.records.serializable.RecordDataObject.

String de.fu_berlin.inf.dpp.whiteboard.sxe.records.serializable.SetRecordDataObject.getTargetRid ( ) [virtual]

Returns the target RID entry or the RID of the new-record. Like this it works as complement to Record.getTarget() and clients can assume that it will never return null.

Returns:
the target-entry or the rid of the new-record
Exceptions:
MalformedRecordExceptionif there is no RID this data object does not correspond to a valid record

Implements de.fu_berlin.inf.dpp.whiteboard.sxe.records.serializable.RecordDataObject.

boolean de.fu_berlin.inf.dpp.whiteboard.sxe.records.serializable.SetRecordDataObject.isAlreadyApplied ( DocumentRecord  document) throws MissingRecordException [virtual]
Parameters:
documentthe document record where it may have been applied to
Returns:
whether the corresponding IRecord was already applied locally
Exceptions:
MissingRecordExceptionif a target (i.e. SetRecord, RemoveRecord) is missing completely

Implements de.fu_berlin.inf.dpp.whiteboard.sxe.records.serializable.RecordDataObject.

 All Classes Namespaces Files Functions Variables Enumerations