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

List of all members.

Public Member Functions

 DeleteOperation (int position, String text)
int getPosition ()
int getTextLength ()
String getText ()
String toString ()
boolean equals (Object obj)
int hashCode ()
List< TextEditActivitytoTextEdit (SPath path, User source)
List< ITextOperationgetTextOperations ()
ITextOperation invert ()

Detailed Description

The DeleteOperation is used to hold a text together with its position that is to be deleted in the document model.


Constructor & Destructor Documentation

de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.DeleteOperation.DeleteOperation ( int  position,
String  text 
)
Parameters:
textthe text to be deleted

Member Function Documentation

boolean de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.DeleteOperation.equals ( Object  obj)
int de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.DeleteOperation.getPosition ( )
Returns:
the position of the text to be deleted / inserted

Implements de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.ITextOperation.

String de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.DeleteOperation.getText ( )

Returns the text to be deleted.

Returns:
the text to be deleted

Implements de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.ITextOperation.

int de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.DeleteOperation.getTextLength ( )
Returns:
the length of the text to be deleted / inserted

Implements de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.ITextOperation.

List<ITextOperation> de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.DeleteOperation.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.DeleteOperation.hashCode ( )
ITextOperation de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.DeleteOperation.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.DeleteOperation.toString ( )
List<TextEditActivity> de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.DeleteOperation.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