4A Server -
2.0
|
Class representing annotated fragment. More...
Private Attributes | |
Integer | id |
int | annotation |
String | path |
Integer | offset |
Integer | length |
String | annotatedText |
boolean | isGood |
Annotation | refAnnotation |
Static Private Attributes | |
static final long | serialVersionUID = 1L |
Class representing annotated fragment.
Class representing annotated fragment
Definition at line 48 of file Fragment.java.
cz.vutbr.fit.knot.annotations.entity.Fragment.Fragment | ( | ) |
Constructor
Definition at line 104 of file Fragment.java.
cz.vutbr.fit.knot.annotations.entity.Fragment.Fragment | ( | Integer | id | ) |
cz.vutbr.fit.knot.annotations.entity.Fragment.Fragment | ( | String | path, |
Integer | offset, | ||
Integer | length, | ||
String | annotatedText, | ||
Annotation | refAnnotation | ||
) |
Constructor
path | XPath of element with annotated fragment |
offset | Offset of annotated fragment in given element |
length | Length of annotated fragment |
annotatedText | Textual content of annotated fragment |
refAnnotation | Annotation to which this fragment belongs |
Definition at line 126 of file Fragment.java.
cz.vutbr.fit.knot.annotations.entity.Fragment.Fragment | ( | String | path, |
Integer | offset, | ||
Integer | length, | ||
String | annotatedText, | ||
Annotation | refAnnotation, | ||
Boolean | isGood | ||
) |
Constructor
path | XPath of element with annotated fragment |
offset | Offset of annotated fragment in given element |
length | Length of annotated fragment |
annotatedText | Textual content of annotated fragment |
refAnnotation | Annotation to which this fragment belongs |
isGood | Indicator, whether fragment is good (not orphaned) |
Definition at line 145 of file Fragment.java.
cz.vutbr.fit.knot.annotations.entity.Fragment.Fragment | ( | String | path, |
Integer | offset, | ||
Integer | length | ||
) |
Constructor
path | XPath of element with annotated fragment |
offset | Offset of annotated fragment in given element |
length | Length of annotated fragment |
Definition at line 161 of file Fragment.java.
int cz.vutbr.fit.knot.annotations.entity.Fragment.compareTo | ( | Object | object | ) |
Compares this fragment with another fragment according to offset and length
object | Fragment to compare |
Definition at line 509 of file Fragment.java.
boolean cz.vutbr.fit.knot.annotations.entity.Fragment.contentEquals | ( | Object | obj | ) |
Compares this with other object and returns, whether objects are same type and have same content (id is irrelevant).
obj | Object to compare with |
Definition at line 362 of file Fragment.java.
boolean cz.vutbr.fit.knot.annotations.entity.Fragment.equals | ( | Object | object | ) |
Compares this with other object and returns, whether objects are same type and have same content (id is irrelevant).
object | Object to compare with |
Definition at line 332 of file Fragment.java.
boolean cz.vutbr.fit.knot.annotations.entity.Fragment.fragmentEqualsWUF | ( | UpdatableFragment | uf | ) |
Compares this with instance of UpdatableFragment and returns, whether fragments have same location (XPath, offset and length) and textual content.
uf | Instance of UpdatableFragment to compare with |
Definition at line 396 of file Fragment.java.
String cz.vutbr.fit.knot.annotations.entity.Fragment.getAnnotatedText | ( | ) |
Gets textual content of annotated fragment
Definition at line 263 of file Fragment.java.
int cz.vutbr.fit.knot.annotations.entity.Fragment.getAnnotation | ( | ) |
Gets annotation to which this fragment belongs
Definition at line 191 of file Fragment.java.
Integer cz.vutbr.fit.knot.annotations.entity.Fragment.getId | ( | ) |
boolean cz.vutbr.fit.knot.annotations.entity.Fragment.getIsGood | ( | ) |
Get information about fragment status (whether fragment is good or orphaned))
Definition at line 300 of file Fragment.java.
Integer cz.vutbr.fit.knot.annotations.entity.Fragment.getLength | ( | ) |
Gets length of annotated fragment
Definition at line 245 of file Fragment.java.
Integer cz.vutbr.fit.knot.annotations.entity.Fragment.getOffset | ( | ) |
Gets offset of annotated fragment in given element
Definition at line 227 of file Fragment.java.
String cz.vutbr.fit.knot.annotations.entity.Fragment.getPath | ( | ) |
Gets XPath of element with this annotated fragment
Definition at line 209 of file Fragment.java.
Annotation cz.vutbr.fit.knot.annotations.entity.Fragment.getRefAnnotation | ( | ) |
Gets annotation to which this fragment belongs
Definition at line 281 of file Fragment.java.
String cz.vutbr.fit.knot.annotations.entity.Fragment.getXpointer | ( | ) |
Returns Xpointer of annotated fragment
Definition at line 487 of file Fragment.java.
String cz.vutbr.fit.knot.annotations.entity.Fragment.getXpointerV2 | ( | ) |
Returns Xpointer of annotated fragment for protocol version 2
Definition at line 496 of file Fragment.java.
int cz.vutbr.fit.knot.annotations.entity.Fragment.hashCode | ( | ) |
Definition at line 314 of file Fragment.java.
void cz.vutbr.fit.knot.annotations.entity.Fragment.setAnnotatedText | ( | String | annotatedText | ) |
Sets textual content of annotated fragment
annotatedText | Textual content of annotated fragment |
Definition at line 272 of file Fragment.java.
void cz.vutbr.fit.knot.annotations.entity.Fragment.setAnnotation | ( | int | annotation | ) |
Sets annotation to which this fragment belongs
annotation | Annotation to which this fragment belongs |
Definition at line 200 of file Fragment.java.
void cz.vutbr.fit.knot.annotations.entity.Fragment.setId | ( | Integer | id | ) |
void cz.vutbr.fit.knot.annotations.entity.Fragment.setIsGood | ( | boolean | isGood | ) |
Sets fragment status
isGood | If fragment is good then true, if it's orphaned then false |
Definition at line 309 of file Fragment.java.
void cz.vutbr.fit.knot.annotations.entity.Fragment.setLength | ( | Integer | length | ) |
Sets length of annotated fragment
length | Length of annotated fragment |
Definition at line 254 of file Fragment.java.
void cz.vutbr.fit.knot.annotations.entity.Fragment.setOffset | ( | Integer | offset | ) |
Sets offset of annotated fragment in given element
offset | Offset of annotated fragment in given element |
Definition at line 236 of file Fragment.java.
void cz.vutbr.fit.knot.annotations.entity.Fragment.setPath | ( | String | path | ) |
Sets XPath of element with this annotated fragment
path | XPath of element with this annotated fragment |
Definition at line 218 of file Fragment.java.
void cz.vutbr.fit.knot.annotations.entity.Fragment.setRefAnnotation | ( | Annotation | refAnnotation | ) |
Sets annotation to which this fragment belongs
refAnnotation | Annotation to which this fragment belongs |
Definition at line 290 of file Fragment.java.
String cz.vutbr.fit.knot.annotations.entity.Fragment.toString | ( | ) |
Definition at line 442 of file Fragment.java.
UpdatableFragment cz.vutbr.fit.knot.annotations.entity.Fragment.toUpdatableFragment | ( | ) | throws XPathExpressionException |
Creates UpdatableFragment from this fragment and returns it
Definition at line 420 of file Fragment.java.
String cz.vutbr.fit.knot.annotations.entity.Fragment.toXMLString | ( | ) |
Returns serialized informations about annotated fragment in XML
Definition at line 451 of file Fragment.java.
String cz.vutbr.fit.knot.annotations.entity.Fragment.toXMLStringV2 | ( | ) |
Returns serialized informations about annotated fragment in XML for protocol version 2
Definition at line 469 of file Fragment.java.
void cz.vutbr.fit.knot.annotations.entity.Fragment.updateWithUpdatableFragment | ( | UpdatableFragment | uf | ) |
Updates data in this fragment with data from UpdatableFragment
uf | UpdatableFragment with new (updated) data |
Definition at line 430 of file Fragment.java.
|
private |
Textual content of annotated fragment
Definition at line 87 of file Fragment.java.
|
private |
Id of annotation to which this fragment belongs
Definition at line 64 of file Fragment.java.
|
private |
Id of fragment
Definition at line 58 of file Fragment.java.
|
private |
Indicator, whether fragment is good (not orphaned)
Definition at line 93 of file Fragment.java.
|
private |
Length of annotated fragment
Definition at line 80 of file Fragment.java.
|
private |
Offset of annotated fragment in given element
Definition at line 75 of file Fragment.java.
|
private |
XPath of element with annotated fragment
Definition at line 70 of file Fragment.java.
|
private |
Annotation to which this fragment belongs
Definition at line 99 of file Fragment.java.
|
staticprivate |
Definition at line 50 of file Fragment.java.