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

List of all members.

Public Member Functions

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

Constructor & Destructor Documentation

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

Member Function Documentation

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

Note: under certain conditions this record may return a different type than defined in the RecordType field due to concurrent edits.

Subclasses have to ensure to provide a record that sets the document in a synchronized state or throw a MissingRecordException.

Parameters:
document
Returns:
a record to set the document in a synchronized state
Exceptions:
MissingRecordExceptionif a field references a missing record

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

String de.fu_berlin.inf.dpp.whiteboard.sxe.records.serializable.NewRecordDataObject.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.NewRecordDataObject.isAlreadyApplied ( DocumentRecord  document) [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