4A Server -
2.0
|
Class representing modification of annotated document text. More...
Classes | |
class | TextModificationException |
Class for throwing exceptions which are directly related to some text modification. More... | |
Public Member Functions | |
TextModification (String path, Integer offset, Integer length, String newContent) | |
TextModification (String path, Integer offset, Integer length, String newContent, Integer mode) | |
TextModification (String path, String newContent, Integer mode) | |
Integer | getLength () |
void | setLength (Integer length) |
String | getNewContent () |
void | setNewContent (String newContent) |
Integer | getOffset () |
void | setOffset (Integer offset) |
String | getPath () |
void | setPath (String path) |
Integer | getMode () |
void | setMode (Integer mode) |
String | toString () |
String | toXMLString () |
String | toXMLStringV2 () |
Private Attributes | |
String | path |
Integer | offset |
Integer | length |
String | newContent |
Integer | mode |
Class representing modification of annotated document text.
Class representing modification of annotated document text
Definition at line 22 of file TextModification.java.
cz.vutbr.fit.knot.annotations.app.TextModification.TextModification | ( | String | path, |
Integer | offset, | ||
Integer | length, | ||
String | newContent | ||
) |
Constructor with default mode (replace) If offset is null, whole content of element was replaced.
path | XPath of element in which modification was occurred |
offset | Offset of replaced text fragment in given element |
length | Length of replaced text fragment |
newContent | New content of fragment |
Definition at line 86 of file TextModification.java.
cz.vutbr.fit.knot.annotations.app.TextModification.TextModification | ( | String | path, |
Integer | offset, | ||
Integer | length, | ||
String | newContent, | ||
Integer | mode | ||
) |
Constructor If offset is null, whole content of element was replaced.
path | XPath of element in which modification was occurred |
offset | Offset of replaced text fragment in given element |
length | Length of replaced text fragment |
newContent | New content of fragment |
mode | Mode of text modification |
Definition at line 104 of file TextModification.java.
cz.vutbr.fit.knot.annotations.app.TextModification.TextModification | ( | String | path, |
String | newContent, | ||
Integer | mode | ||
) |
Constructor
path | XPath of element in which modification was occurred |
newContent | New content of fragment |
mode | Mode of text modification |
Definition at line 119 of file TextModification.java.
Integer cz.vutbr.fit.knot.annotations.app.TextModification.getLength | ( | ) |
Gets length of replaced text fragment
Definition at line 130 of file TextModification.java.
Integer cz.vutbr.fit.knot.annotations.app.TextModification.getMode | ( | ) |
Gets mode of text modification
Definition at line 202 of file TextModification.java.
String cz.vutbr.fit.knot.annotations.app.TextModification.getNewContent | ( | ) |
Gets new content of document fragment
Definition at line 148 of file TextModification.java.
Integer cz.vutbr.fit.knot.annotations.app.TextModification.getOffset | ( | ) |
Gets offset of replaced text fragment
Definition at line 166 of file TextModification.java.
String cz.vutbr.fit.knot.annotations.app.TextModification.getPath | ( | ) |
Gets XPath of element in which modification was occurred
Definition at line 184 of file TextModification.java.
void cz.vutbr.fit.knot.annotations.app.TextModification.setLength | ( | Integer | length | ) |
Sets length of replaced text fragment
length | Length of replaced text fragment |
Definition at line 139 of file TextModification.java.
void cz.vutbr.fit.knot.annotations.app.TextModification.setMode | ( | Integer | mode | ) |
Sets mode of text modification
Definition at line 211 of file TextModification.java.
void cz.vutbr.fit.knot.annotations.app.TextModification.setNewContent | ( | String | newContent | ) |
Sets new content of document fragment
newContent | New content of document fragment |
Definition at line 157 of file TextModification.java.
void cz.vutbr.fit.knot.annotations.app.TextModification.setOffset | ( | Integer | offset | ) |
Sets offset of replaced text fragment
offset | Offset of replaced text fragment |
Definition at line 175 of file TextModification.java.
void cz.vutbr.fit.knot.annotations.app.TextModification.setPath | ( | String | path | ) |
Sets XPath of element in which modification was occurred
path | XPath of element in which modification was occurred |
Definition at line 193 of file TextModification.java.
String cz.vutbr.fit.knot.annotations.app.TextModification.toString | ( | ) |
Definition at line 216 of file TextModification.java.
String cz.vutbr.fit.knot.annotations.app.TextModification.toXMLString | ( | ) |
Returns serialized informations about text modification in XML for protocol 1.x
Definition at line 225 of file TextModification.java.
String cz.vutbr.fit.knot.annotations.app.TextModification.toXMLStringV2 | ( | ) |
Returns serialized informations about text modification in XML for protocol V2
Definition at line 259 of file TextModification.java.
|
private |
Length of replaced text fragment
Definition at line 71 of file TextModification.java.
|
private |
Mode of text modification
Definition at line 75 of file TextModification.java.
|
private |
New content of fragment
Definition at line 73 of file TextModification.java.
|
private |
Offset of replaced text fragment
Definition at line 69 of file TextModification.java.
|
private |
XPath of element in which modification was occurred
Definition at line 64 of file TextModification.java.