Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.NoOperation Class Reference
Inheritance diagram for de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.NoOperation:
de.fu_berlin.inf.dpp.concurrent.jupiter.Operation

List of all members.

Public Member Functions

String toString ()
boolean equals (Object obj)
int hashCode ()
List< TextEditActivitytoTextEdit (SPath path, User source)
List< ITextOperationgetTextOperations ()
Operation invert ()

Detailed Description

The NoOperation is used to hold a empty text together with the position zero.


Member Function Documentation

boolean de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.NoOperation.equals ( Object  obj)
List<ITextOperation> de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.NoOperation.getTextOperations ( )

Returns a list of all operations represented by this operation that perform text changes in the order they should be executed. This method can return an empty list (for NoOperations for instance).

Implements de.fu_berlin.inf.dpp.concurrent.jupiter.Operation.

int de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.NoOperation.hashCode ( )
Operation de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.NoOperation.invert ( )

Returns:
the Operation that reverts the effect of this Operation if it is executed afterwards; e.g. if this is a DeleteOperation(5,"abc") the inverted Operation is InsertOperation(5,"abc")

Implements de.fu_berlin.inf.dpp.concurrent.jupiter.Operation.

String de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.NoOperation.toString ( )
List<TextEditActivity> de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.NoOperation.toTextEdit ( SPath  path,
User  source 
)

Returns a sequence of TextEditActivitys which represent this operation if applied in order to the editor denoted by the given path by the user identified by the given source.

Implements de.fu_berlin.inf.dpp.concurrent.jupiter.Operation.

 All Classes Namespaces Files Functions Variables Enumerations