4A Server -
2.0
|
Class representing suggested annotation fragment. More...
Private Attributes | |
Integer | id |
int | suggestion |
String | path |
Integer | offset |
Integer | length |
String | annotatedText |
boolean | isGood |
Suggestion | refSuggestion |
Static Private Attributes | |
static final long | serialVersionUID = 1L |
Class representing suggested annotation fragment.
Class representing suggested annotation fragment
Definition at line 57 of file SuggestionFragment.java.
cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.SuggestionFragment | ( | ) |
Constructor
Definition at line 113 of file SuggestionFragment.java.
cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.SuggestionFragment | ( | String | path, |
Integer | offset, | ||
Integer | length, | ||
String | annotatedText, | ||
Suggestion | refSuggestion | ||
) |
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 |
refSuggestion | Suggestion to which this fragment belongs |
Definition at line 125 of file SuggestionFragment.java.
cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.SuggestionFragment | ( | String | path, |
Integer | offset, | ||
Integer | length, | ||
String | annotatedText, | ||
Suggestion | refSuggestion, | ||
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 |
refSuggestion | Suggestion to which this fragment belongs |
isGood | Indicator, whether fragment is good (not orphaned) |
Definition at line 144 of file SuggestionFragment.java.
cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.SuggestionFragment | ( | 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 160 of file SuggestionFragment.java.
int cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.compareTo | ( | Object | object | ) |
Compares this fragment with another fragment according to offset and length
object | Fragment to compare |
Definition at line 559 of file SuggestionFragment.java.
boolean cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.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 428 of file SuggestionFragment.java.
boolean cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.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 398 of file SuggestionFragment.java.
boolean cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.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 462 of file SuggestionFragment.java.
String cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.getAnnotatedText | ( | ) |
Gets annotated text
Implements cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.SecFragment.
Definition at line 265 of file SuggestionFragment.java.
Integer cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.getId | ( | ) |
boolean cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.getIsGood | ( | ) |
Get information about fragment status (whether fragment is good or orphaned))
Definition at line 284 of file SuggestionFragment.java.
Integer cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.getLength | ( | ) |
Gets length
Implements cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.SecFragment.
Definition at line 246 of file SuggestionFragment.java.
Integer cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.getOffset | ( | ) |
Gets offset
Implements cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.SecFragment.
Definition at line 227 of file SuggestionFragment.java.
String cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.getPath | ( | ) |
Gets path
Definition at line 208 of file SuggestionFragment.java.
SecSuggestion cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.getRefSecSuggestion | ( | ) |
Gets sugestion to which this fragment belongs
Implements cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.SecFragment.
Definition at line 312 of file SuggestionFragment.java.
Suggestion cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.getRefSuggestion | ( | ) |
Gets suggestion to which this fragment belongs
Definition at line 302 of file SuggestionFragment.java.
int cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.getSuggestion | ( | ) |
String cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.getXpointer | ( | ) |
Returns Xpointer of suggested fragment
Definition at line 522 of file SuggestionFragment.java.
String cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.getXpointerV2 | ( | ) |
Returns Xpointer of suggested fragment for protocol version 2
Definition at line 531 of file SuggestionFragment.java.
int cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.hashCode | ( | ) |
Definition at line 537 of file SuggestionFragment.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.setAnnotatedText | ( | String | annotatedText | ) |
Sets annotated text
annotatedText | new annotated text |
Definition at line 274 of file SuggestionFragment.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.setId | ( | Integer | id | ) |
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.setIsGood | ( | boolean | isGood | ) |
Sets fragment status
isGood | If fragment is good then true, if it's orphaned then false |
Definition at line 293 of file SuggestionFragment.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.setLength | ( | Integer | length | ) |
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.setOffset | ( | Integer | offset | ) |
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.setPath | ( | String | path | ) |
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.setRefSecSuggestion | ( | SecSuggestion | value | ) |
Sets suggestion to which this fragment belongs
value | Suggestion to which this fragment belongs |
Implements cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.SecFragment.
Definition at line 331 of file SuggestionFragment.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.setRefSuggestion | ( | Suggestion | refSuggestion | ) |
Sets suggestion to which this fragment belongs
refSuggestion | Suggestion to which this fragment belongs |
Definition at line 321 of file SuggestionFragment.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.setSuggestion | ( | int | suggestion | ) |
Sets ID of suggestion
suggestion | new id |
Definition at line 199 of file SuggestionFragment.java.
String cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.toString | ( | ) |
Definition at line 547 of file SuggestionFragment.java.
UpdatableFragment cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.toUpdatableFragment | ( | ) | throws XPathExpressionException |
Creates UpdatableFragment from this fragment and returns it
Definition at line 342 of file SuggestionFragment.java.
String cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.toXMLString | ( | ) |
Returns serialized informations about suggested fragment in XML
Definition at line 486 of file SuggestionFragment.java.
String cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.toXMLStringV2 | ( | ) |
Returns serialized informations about suggested fragment in XML for protocol version 2
Definition at line 504 of file SuggestionFragment.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.updateFromAlternativeFragment | ( | AlternativeFragment | fr | ) |
Copies all values of the alternative fragment into the suggestion fragment
fr | fragment of the alternative |
Definition at line 381 of file SuggestionFragment.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.updateFromFragment | ( | Fragment | fr | ) |
Copies all values of the annotation fragment into the suggestion fragment
fr | fragment of the annotation |
Definition at line 368 of file SuggestionFragment.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.SuggestionFragment.updateWithUpdatableFragment | ( | UpdatableFragment | uf | ) |
Updates data in this fragment with data from UpdatableFragment
uf | UpdatableFragment with new (updated) data |
Definition at line 352 of file SuggestionFragment.java.
|
private |
Textual content of suggested annotation fragment
Definition at line 93 of file SuggestionFragment.java.
|
private |
Id of fragment
Definition at line 65 of file SuggestionFragment.java.
|
private |
Indicator, whether fragment is good (not orphaned)
Definition at line 101 of file SuggestionFragment.java.
|
private |
Length of suggested annotation fragment
Definition at line 85 of file SuggestionFragment.java.
|
private |
Offset of suggested annotation fragment in given element
Definition at line 81 of file SuggestionFragment.java.
|
private |
XPath of element with suggested annotation fragment
Definition at line 77 of file SuggestionFragment.java.
|
private |
Suggestion to which this fragment belongs
Definition at line 108 of file SuggestionFragment.java.
|
staticprivate |
Definition at line 58 of file SuggestionFragment.java.
|
private |
Id of suggested annotation to which this fragment belongs
Definition at line 71 of file SuggestionFragment.java.