4A Server -
2.0
|
Class representing alternative of suggestion. More...
Private Attributes | |
Integer | id |
int | type |
Date | created |
String | authorIdStr |
String | authorName |
String | authorAddress |
String | source |
int | sourceDocumentId |
String | content |
Integer | confidence |
String | autorId |
String | nestedIn |
String | alternativeOf |
Boolean | used |
AnnotType | annotType |
AnnotDocument | sourceDocument |
List< AlternativeAttribute > | attributes |
List< AlternativeFragment > | fragments |
User | user |
Alternative | nestedInAlternative |
Suggestion | alternativeOfSuggestion |
Annotation | nestedInAnnot |
String | SAEntityIdentifier |
String | tmpId |
Static Private Attributes | |
static final long | serialVersionUID = 1L |
Class representing alternative of suggestion.
Class representing alternative of suggestion.
Definition at line 58 of file Alternative.java.
cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.Alternative | ( | ) |
Constructor
Definition at line 188 of file Alternative.java.
cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.Alternative | ( | AnnotType | type, |
String | content, | ||
String | nestedIn | ||
) |
Constructor
type | Type of alternative |
content | Textual content of alternative |
nestedIn | If this alternative is nested, then parent alternative, null otherwise |
Definition at line 198 of file Alternative.java.
cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.Alternative | ( | Integer | id, |
String | authorIdStr, | ||
String | authorName, | ||
String | authorAddress, | ||
AnnotDocument | sourceDocument, | ||
String | content, | ||
String | nestedIn | ||
) |
Constructor
id | Id of alternative |
authorIdStr | URI of alternative author (user) |
authorName | Name of alternative author (user) |
authorAddress | E-mail of alternative author (user) |
sourceDocument | Annotated copy of document to which this alternative belongs |
content | Textual content of alternative |
nestedIn | If this alternative is nested, then parent alternative, null otherwise |
Definition at line 219 of file Alternative.java.
cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.Alternative | ( | AnnotType | annotType, |
Date | created, | ||
String | authorIdStr, | ||
String | authorName, | ||
String | authorAddress, | ||
AnnotDocument | sourceDocument, | ||
String | content | ||
) |
Constructor
annotType | Type of alternative |
created | Date of creation |
authorIdStr | URI of alternative author (user) |
authorName | Name of alternative author (user) |
authorAddress | E-mail of alternative author (user) |
sourceDocument | Annotated copy of document to which this alternative belongs |
content | Textual content of alternative |
Definition at line 248 of file Alternative.java.
cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.Alternative | ( | AnnotType | annotType, |
Date | created, | ||
String | authorIdStr, | ||
String | authorName, | ||
String | authorAddress, | ||
AnnotDocument | sourceDocument, | ||
String | content, | ||
Alternative | nestedInAlternative | ||
) |
Constructor
annotType | Type of alternative |
created | Date of creation |
authorIdStr | URI of alternative author (user) |
authorName | Name of alternative author (user) |
authorAddress | E-mail of alternative author (user) |
sourceDocument | Annotated copy of document to which this alternative belongs |
content | Textual content of alternative |
nestedInAlternative | If this alternative is nested, then parent alternative, null otherwise |
Definition at line 278 of file Alternative.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.addAttribute | ( | AlternativeAttribute | attribute | ) |
Adds an attribute to list of alternative attributes
attribute | Attribute to add |
Definition at line 602 of file Alternative.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.addFragment | ( | AlternativeFragment | fragment | ) |
Adds fragment to the list of suggested fragments
fragment | Suggested fragment |
Definition at line 639 of file Alternative.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.addSecFragment | ( | SecFragment | fragment | ) |
Adds fragment to the list of suggested fragments
fragment | Suggested fragment |
Implements cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.SecSuggestion.
Definition at line 652 of file Alternative.java.
boolean cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.contentEquals | ( | Object | obj | ) |
Compares this with other object and returns, whether objects are same type and have same content (id is irelevant). Contents of fragments and attributes are also compared.
obj | Object to compare with |
Definition at line 841 of file Alternative.java.
boolean cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.contentEquals | ( | Object | obj, |
boolean | withCreated, | ||
boolean | noLinked | ||
) |
Compares this with other object and returns, whether objects are same type and have same content (id is irrelevant). Contents of fragments and attributes are also compared.
obj | Object to compare with |
withCreated | If true, dates of creation will be compared, if false, dates will be omitted |
noLinked | If true, links in attributes will be omitted, if false, links will be compared |
Definition at line 855 of file Alternative.java.
boolean cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.contentEqualsForSec | ( | Suggestion | other, |
ArrayList< SuggestionFragment > | linearizedFragments, | ||
boolean | testFragments | ||
) |
Compares this with suggestion and returns, whether objects are same type and have same content (id is irrelevant). Contents of fragments and attributes are also compared.
other | Object to compare with |
linearizedFragments | Linearized fragments of suggestion. |
testFragments | If true, fragments will be compared, if false, fragments will be omitted |
Definition at line 963 of file Alternative.java.
boolean cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.equals | ( | Object | object | ) |
Compares this with other object and returns, whether objects are same type and have same id.
object | Object to compare with |
Definition at line 789 of file Alternative.java.
boolean cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.equals | ( | Object | object, |
boolean | noLinked | ||
) |
Compares this with other object and returns, whether objects are same type and have same id, but not go to deeper comparation if noLinek is set to true.
object | Object to compare with |
noLinked | No trace links and compare them if is set to true |
Definition at line 815 of file Alternative.java.
Suggestion cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.getAlternativeOfSuggestion | ( | ) |
Gets main suggestion
Definition at line 681 of file Alternative.java.
AnnotType cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.getAnnotType | ( | ) |
Gets type of alternative
Definition at line 336 of file Alternative.java.
List<AlternativeAttribute> cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.getAttributes | ( | ) |
Gets list of alternative attributes
Definition at line 584 of file Alternative.java.
String cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.getAuthorAddress | ( | ) |
Gets e-mail of author of alternative (user)
Definition at line 436 of file Alternative.java.
String cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.getAuthorIdStr | ( | ) |
Gets URI of author of alternative (user)
Definition at line 400 of file Alternative.java.
String cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.getAuthorName | ( | ) |
Gets name of author of alternative (user)
Definition at line 418 of file Alternative.java.
String cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.getAutorId | ( | ) |
Gets id of annotation author (user)
Definition at line 526 of file Alternative.java.
Integer cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.getConfidence | ( | ) |
Gets confidence of alternative
Definition at line 318 of file Alternative.java.
String cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.getContent | ( | ) |
Gets textual content of alternative
Definition at line 508 of file Alternative.java.
Date cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.getCreated | ( | ) |
Gets date of creation
Definition at line 354 of file Alternative.java.
List cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.getFragments | ( | ) |
Gets list of suggested fragments
Implements cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.SecSuggestion.
Definition at line 612 of file Alternative.java.
ArrayList<AlternativeFragment> cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.getFragmentsAL | ( | ) |
Gets list of suggested fragments as ArrayList
Definition at line 621 of file Alternative.java.
Integer cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.getId | ( | ) |
Gets id of alternative
Definition at line 301 of file Alternative.java.
String cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.getNestedIn | ( | ) |
Gets URI of alternative in which is this alternative nested
Definition at line 566 of file Alternative.java.
Alternative cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.getNestedInAlternative | ( | ) |
Gets parent suggestion of nested suggestion
Definition at line 663 of file Alternative.java.
Annotation cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.getNestedInAnnot | ( | ) |
Gets annotation in which is this alternative nested
Definition at line 699 of file Alternative.java.
String cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.getSAEntityIdentifier | ( | ) |
Gets SEC API Entity Identifier (to detect same suggestions)
Definition at line 717 of file Alternative.java.
String cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.getSource | ( | ) |
Gets annotated copy of document to which this alternative belongs
Definition at line 454 of file Alternative.java.
AnnotDocument cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.getSourceDocument | ( | ) |
Gets annotated copy of document to which this alternative belongs
Definition at line 544 of file Alternative.java.
Integer cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.getSourceDocumentId | ( | ) |
Gets id of annotated copy of document to which this alternative belongs
Definition at line 472 of file Alternative.java.
String cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.getTmpId | ( | ) |
Gets tmpId of this suggestion (warning - tmpId is in id field for suggestion - this is an auxiliary value)
Definition at line 737 of file Alternative.java.
Integer cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.getType | ( | ) |
Gets id of type of alternative
Definition at line 490 of file Alternative.java.
Boolean cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.getUsed | ( | ) |
Gets whether alternative was used
Definition at line 756 of file Alternative.java.
User cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.getUser | ( | ) |
Gets author of alternative (user)
Definition at line 372 of file Alternative.java.
int cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.hashCode | ( | ) |
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.setAlternativeOfSuggestion | ( | Suggestion | alternativeOfSuggestion | ) |
Sets main suggestion
alternativeOfSuggestion | Main suggestion |
Definition at line 690 of file Alternative.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.setAnnotType | ( | AnnotType | annotType | ) |
Sets type of alternative
annotType | Type of alternative |
Definition at line 345 of file Alternative.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.setAttributes | ( | ArrayList< AlternativeAttribute > | attributes | ) |
Sets list of alternative attributes
attributes | List of alternative attributes |
Definition at line 593 of file Alternative.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.setAuthorAddress | ( | String | authorAddress | ) |
Sets e-mail of author of alternative (user)
authorAddress | E-mail of author of alternative (user) |
Definition at line 445 of file Alternative.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.setAuthorIdStr | ( | String | authorIdStr | ) |
Sets URI of author of alternative (user)
authorIdStr | URI of author of alternative (user) |
Definition at line 409 of file Alternative.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.setAuthorName | ( | String | authorName | ) |
Sets name of author of alternative (user)
authorName | Name of author of alternative (user) |
Definition at line 427 of file Alternative.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.setAutorId | ( | String | autorId | ) |
Sets id of annotation author (user)
autorId | id of annotation author (user) |
Definition at line 535 of file Alternative.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.setConfidence | ( | Integer | confidence | ) |
Sets confidence of alternative
confidence | Confidence of alternative |
Definition at line 327 of file Alternative.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.setContent | ( | String | content | ) |
Sets textual content of alternative
content | Textual content of alternative |
Definition at line 517 of file Alternative.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.setCreated | ( | Date | created | ) |
Sets date of creation
created | Date of creation |
Definition at line 363 of file Alternative.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.setFragments | ( | ArrayList< AlternativeFragment > | fragments | ) |
Sets list of suggested fragments
fragments | List of suggested fragments |
Definition at line 630 of file Alternative.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.setId | ( | Integer | id | ) |
Sets id of alternative
id | Id of alternative |
Definition at line 310 of file Alternative.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.setNestedIn | ( | String | nestedIn | ) |
Sets URI of alternative in which is this alternative nested
nestedIn | URI of alternative in which is this alternative nested |
Definition at line 575 of file Alternative.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.setNestedInAlternative | ( | Alternative | nestedInAlternative | ) |
Sets parent suggestion of nested suggestion
nestedInAlternative | If this annotation is nested, then parent annotation, null otherwise |
Definition at line 672 of file Alternative.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.setNestedInAnnot | ( | Annotation | nestedInAnnot | ) |
Sets annotation in which is this suggestion nested
nestedInAnnot | Annotation in which is this suggestion nested |
Definition at line 708 of file Alternative.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.setSAEntityIdentifier | ( | String | SAEntityIdentifier | ) |
Sets SEC API Entity Identifier
SAEntityIdentifier | SEC API Entity Identifier |
Implements cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.SecSuggestion.
Definition at line 727 of file Alternative.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.setSource | ( | String | source | ) |
Sets annotated copy of document to which this alternative belongs
source | Annotated copy of document to which this alternative belongs |
Definition at line 463 of file Alternative.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.setSourceDocument | ( | AnnotDocument | sourceDocument | ) |
Sets annotated copy of document to which this alternative belongs (if document is not null, his URI is also set)
sourceDocument | Annotated copy of document to which this alternative belongs |
Definition at line 554 of file Alternative.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.setSourceDocumentId | ( | Integer | sourceDocumentId | ) |
Sets id of annotated copy of document to which this alternative belongs
sourceDocumentId | id of annotated copy of document to which this alternative belongs |
Definition at line 481 of file Alternative.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.setTmpId | ( | String | tmpId | ) |
Sets tmpId of this suggestion (warning - tmpId is in id field for suggestion - this is an auxiliary value)
tmpId | tmpId of this suggestion |
Definition at line 747 of file Alternative.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.setType | ( | Integer | type | ) |
Sets id of type of alternative
type | id of type of alternative |
Definition at line 499 of file Alternative.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.setUsed | ( | Boolean | used | ) |
Sets whether alternative was used
used | If true, alternative was used, if false, it was not used |
Definition at line 765 of file Alternative.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.setUser | ( | User | user | ) |
Sets author of alternative (user) URI is also set and if available, full name and e-mail too
user | Author of alternative (user) |
Definition at line 382 of file Alternative.java.
String cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.Alternative.toString | ( | ) |
Definition at line 1034 of file Alternative.java.
|
private |
Main suggestion
Definition at line 130 of file Alternative.java.
|
private |
Id of main suggestion
Definition at line 169 of file Alternative.java.
|
private |
Type of alternative
Definition at line 139 of file Alternative.java.
|
private |
List of attributes of alternative
Definition at line 149 of file Alternative.java.
|
private |
E-mail of alternative author (user)
Definition at line 94 of file Alternative.java.
|
private |
URI of alternative author (user)
Definition at line 84 of file Alternative.java.
|
private |
Name of alternative author (user)
Definition at line 89 of file Alternative.java.
|
private |
Id of alternative author (user)
Definition at line 122 of file Alternative.java.
|
private |
Confidence of suggestion
Definition at line 118 of file Alternative.java.
|
private |
Textual content of alternative
Definition at line 113 of file Alternative.java.
|
private |
Date of creation
Definition at line 78 of file Alternative.java.
|
private |
List of alternative fragments
Definition at line 154 of file Alternative.java.
|
private |
Id of alternative
Definition at line 66 of file Alternative.java.
|
private |
If this alternative is nested, here is id of parent annotation
Definition at line 126 of file Alternative.java.
|
private |
If this alternative is nested, here is parent suggestion
Definition at line 164 of file Alternative.java.
|
private |
If this alternative is nested, here is parent annotation
Definition at line 173 of file Alternative.java.
|
private |
Identifier of entity from SEC API (to detect same suggestions on more places)
Definition at line 178 of file Alternative.java.
|
staticprivate |
Definition at line 59 of file Alternative.java.
|
private |
URI of annotated copy of document to which this alternative belongs
Definition at line 101 of file Alternative.java.
|
private |
Annotated copy of document to which this alternative belongs
Definition at line 144 of file Alternative.java.
|
private |
Id of annotated copy of document to which this alternative belongs
Definition at line 107 of file Alternative.java.
|
private |
Temporary id to identify targets of links in alternatives from client
Definition at line 182 of file Alternative.java.
|
private |
Id of type of alternative
Definition at line 72 of file Alternative.java.
|
private |
Was alternative used?
Definition at line 134 of file Alternative.java.
|
private |
Author of alternative (user)
Definition at line 159 of file Alternative.java.