4A Server -
2.0
|
Class representing type of annotation. More...
Public Attributes | |
List< AnnotType > | ancestorTypes |
Private Attributes | |
Integer | id |
String | uri |
String | name |
Integer | ancestor |
Integer | groupId |
Boolean | restrictedAtt |
String | uriInOntology |
String | comment |
List< AnnotTypeAttr > | attributes |
AnnotType | ancestorType |
UserGroup | group |
Static Private Attributes | |
static final long | serialVersionUID = 1L |
Class representing type of annotation.
Class representing type of annotation
Definition at line 58 of file AnnotType.java.
cz.vutbr.fit.knot.annotations.entity.AnnotType.AnnotType | ( | ) |
Constructor
Definition at line 121 of file AnnotType.java.
cz.vutbr.fit.knot.annotations.entity.AnnotType.AnnotType | ( | Integer | id | ) |
Constructor of reference objects for searching purposes - no initialization needed
id | Id of annotation type |
Definition at line 130 of file AnnotType.java.
cz.vutbr.fit.knot.annotations.entity.AnnotType.AnnotType | ( | String | uri, |
String | name, | ||
AnnotType | ancestorT, | ||
UserGroup | group | ||
) |
Constructor
uri | URI of type of annotation |
name | Name of type of annotation |
ancestorT | Ancestor of type of annotation |
group | User group to which type of annotation belongs |
Definition at line 142 of file AnnotType.java.
void cz.vutbr.fit.knot.annotations.entity.AnnotType.addAncestorType | ( | AnnotType | ancestor | ) |
Adds ancestor to list of ancestor types
ancestor | Ancestor type |
Definition at line 272 of file AnnotType.java.
boolean cz.vutbr.fit.knot.annotations.entity.AnnotType.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 359 of file AnnotType.java.
Integer cz.vutbr.fit.knot.annotations.entity.AnnotType.getAncestor | ( | ) |
Gets id of ancestor type of annotation
Definition at line 218 of file AnnotType.java.
AnnotType cz.vutbr.fit.knot.annotations.entity.AnnotType.getAncestorType | ( | ) |
Gets ancestor type of annotation
Definition at line 286 of file AnnotType.java.
List<AnnotType> cz.vutbr.fit.knot.annotations.entity.AnnotType.getAncestorTypes | ( | ) |
Gets list of ancestor types
Definition at line 245 of file AnnotType.java.
ArrayList<AnnotType> cz.vutbr.fit.knot.annotations.entity.AnnotType.getAncestorTypesAL | ( | ) |
Gets list of ancestor types in ArrayList
Definition at line 263 of file AnnotType.java.
List<AnnotTypeAttr> cz.vutbr.fit.knot.annotations.entity.AnnotType.getAttributes | ( | ) |
Gets list of attributes
Definition at line 295 of file AnnotType.java.
String cz.vutbr.fit.knot.annotations.entity.AnnotType.getComment | ( | ) |
Gets textual comment
Definition at line 695 of file AnnotType.java.
String cz.vutbr.fit.knot.annotations.entity.AnnotType.getGeneratedURI | ( | ) |
Generate URI of type of annotation from his name, ancestor and user group URI = base URI + "/g" + user group id + "/"
Definition at line 610 of file AnnotType.java.
UserGroup cz.vutbr.fit.knot.annotations.entity.AnnotType.getGroup | ( | ) |
Gets user group to which type of annotation belongs
Definition at line 313 of file AnnotType.java.
Integer cz.vutbr.fit.knot.annotations.entity.AnnotType.getId | ( | ) |
Gets id of type of annotation
Definition at line 164 of file AnnotType.java.
String cz.vutbr.fit.knot.annotations.entity.AnnotType.getLinearizedName | ( | ) |
Gets linearized name of type of annotation LN = names of ancestors separated by " -> "
Definition at line 641 of file AnnotType.java.
String cz.vutbr.fit.knot.annotations.entity.AnnotType.getName | ( | ) |
Gets name of type of annotation
Definition at line 200 of file AnnotType.java.
Boolean cz.vutbr.fit.knot.annotations.entity.AnnotType.getRestrictedAtt | ( | ) |
Gets indicator of restricted attributes If true, new attributes can't be added.
Definition at line 676 of file AnnotType.java.
String cz.vutbr.fit.knot.annotations.entity.AnnotType.getUri | ( | ) |
Gets URI of type of annotation
Definition at line 182 of file AnnotType.java.
String cz.vutbr.fit.knot.annotations.entity.AnnotType.getUriInOntology | ( | ) |
Gets URI in original ontology
Definition at line 331 of file AnnotType.java.
int cz.vutbr.fit.knot.annotations.entity.AnnotType.hashCode | ( | ) |
Definition at line 345 of file AnnotType.java.
String cz.vutbr.fit.knot.annotations.entity.AnnotType.linearizedNameToUri | ( | String | linName | ) |
Converts linearized name of type of annotation to his URI
linName | Linearized name of type of annotation |
Definition at line 666 of file AnnotType.java.
void cz.vutbr.fit.knot.annotations.entity.AnnotType.setAncestor | ( | Integer | ancestor | ) |
Sets id of ancestor type of annotation
ancestor | id of new ancestor |
Definition at line 227 of file AnnotType.java.
void cz.vutbr.fit.knot.annotations.entity.AnnotType.setAncestorType | ( | AnnotType | ancestorType | ) |
Sets ancestor type of annotation
ancestorType | Ancestor type of annotation |
Definition at line 236 of file AnnotType.java.
void cz.vutbr.fit.knot.annotations.entity.AnnotType.setAncestorTypes | ( | List< AnnotType > | ancestorTypes | ) |
Sets list of ancestor types
ancestorTypes | List of ancestor types |
Definition at line 254 of file AnnotType.java.
void cz.vutbr.fit.knot.annotations.entity.AnnotType.setAttributes | ( | ArrayList< AnnotTypeAttr > | attributes | ) |
Sets list of attributes
attributes | List of attributes |
Definition at line 304 of file AnnotType.java.
void cz.vutbr.fit.knot.annotations.entity.AnnotType.setComment | ( | String | comment | ) |
Sets textual comment
comment | Textual comment |
Definition at line 704 of file AnnotType.java.
void cz.vutbr.fit.knot.annotations.entity.AnnotType.setGroup | ( | UserGroup | group | ) |
Sets user group to which type of annotation belongs
group | User group to which type of annotation belongs |
Definition at line 322 of file AnnotType.java.
void cz.vutbr.fit.knot.annotations.entity.AnnotType.setId | ( | Integer | id | ) |
Sets id of type of annotation
id | Id of type of annotation |
Definition at line 173 of file AnnotType.java.
void cz.vutbr.fit.knot.annotations.entity.AnnotType.setName | ( | String | name | ) |
Sets name of type of annotation
name | Name of type of annotation |
Definition at line 209 of file AnnotType.java.
void cz.vutbr.fit.knot.annotations.entity.AnnotType.setRestrictedAtt | ( | Boolean | restrictedAtt | ) |
Sets indicator of restricted attributes If true, new attributes can't be added.
restrictedAtt | Indicator of restricted attributes |
Definition at line 686 of file AnnotType.java.
void cz.vutbr.fit.knot.annotations.entity.AnnotType.setUri | ( | String | uri | ) |
Sets URI of type of annotation
uri | URI of type of annotation |
Definition at line 191 of file AnnotType.java.
void cz.vutbr.fit.knot.annotations.entity.AnnotType.setUriInOntology | ( | String | uriInOntology | ) |
Sets URI in original ontology
uriInOntology | URI in original ontology |
Definition at line 340 of file AnnotType.java.
String cz.vutbr.fit.knot.annotations.entity.AnnotType.toString | ( | ) |
Definition at line 371 of file AnnotType.java.
String cz.vutbr.fit.knot.annotations.entity.AnnotType.toXMLString | ( | boolean | withAncestors | ) |
Returns serialized informations about type of annotation in XML
withAncestors | If true, list of ancestors will be serialized, if false, list will be omitted |
Definition at line 381 of file AnnotType.java.
String cz.vutbr.fit.knot.annotations.entity.AnnotType.toXMLStringV2 | ( | boolean | withAncestors | ) |
Returns serialized informations about type of annotation in XML for protocol version 2.
withAncestors | If true, list of ancestors will be serialized, if false, list will be omitted |
Definition at line 451 of file AnnotType.java.
String cz.vutbr.fit.knot.annotations.entity.AnnotType.toXMLStringWA | ( | boolean | withAncestors | ) |
Returns serialized informations about type of annotation without attributes in XML
withAncestors | If true, list of ancestors will be serialized, if false, list will be omitted |
Definition at line 579 of file AnnotType.java.
String cz.vutbr.fit.knot.annotations.entity.AnnotType.toXMLStringWAV2 | ( | boolean | withAncestors | ) |
Returns serialized informations about type of annotation without attributes in XML for protocol version 2.
withAncestors | If true, list of ancestors will be serialized, if false, list will be omitted |
Definition at line 523 of file AnnotType.java.
|
private |
Id of primary ancestor of type (ancestor for old clients)
Definition at line 77 of file AnnotType.java.
|
private |
Primary ancestor of type (ancestor for old clients)
Definition at line 103 of file AnnotType.java.
List<AnnotType> cz.vutbr.fit.knot.annotations.entity.AnnotType.ancestorTypes |
List of ancestors of this type
Definition at line 116 of file AnnotType.java.
|
private |
Attributes of annotation type
Definition at line 99 of file AnnotType.java.
|
private |
Comment
Definition at line 94 of file AnnotType.java.
|
private |
User group to which this type belongs
Definition at line 107 of file AnnotType.java.
|
private |
Id of user group to which this type belongs
Definition at line 81 of file AnnotType.java.
|
private |
Annotation type id
Definition at line 65 of file AnnotType.java.
|
private |
Name of type
Definition at line 73 of file AnnotType.java.
|
private |
Indicator of restricted attributes
Definition at line 85 of file AnnotType.java.
|
staticprivate |
Definition at line 59 of file AnnotType.java.
|
private |
URI of type
Definition at line 69 of file AnnotType.java.
|
private |
URI in original ontology
Definition at line 89 of file AnnotType.java.