4A Server -
2.0
|
Class representing attribute of type of annotation. More...
Protected Attributes | |
Integer | priority |
Private Member Functions | |
String | simpleTypeToString (boolean withComment) |
Private Attributes | |
Integer | id |
int | annotType |
String | name |
String | simpleType |
Integer | type |
Boolean | required |
String | uriInOntology |
String | comment |
AnnotType | annotationType |
AnnotType | attributeType |
Static Private Attributes | |
static final long | serialVersionUID = 1L |
Class representing attribute of type of annotation.
Class representing attribute of type of annotation
Definition at line 50 of file AnnotTypeAttr.java.
cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.AnnotTypeAttr | ( | ) |
Constructor
Definition at line 104 of file AnnotTypeAttr.java.
cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.AnnotTypeAttr | ( | Integer | id | ) |
Constructor
id | id of attribute of type of annotation |
Definition at line 112 of file AnnotTypeAttr.java.
cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.AnnotTypeAttr | ( | AnnotType | annotationType, |
String | name, | ||
String | simpleType, | ||
Boolean | required | ||
) |
Constructor of attribute of simple type
annotationType | Type of annotation to which this attribute belongs |
name | Name of attribute |
simpleType | Name of simple type of attribute |
required | Indicator whether this attribute is required |
Definition at line 124 of file AnnotTypeAttr.java.
cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.AnnotTypeAttr | ( | AnnotType | annotationType, |
String | name, | ||
String | simpleType, | ||
Boolean | required, | ||
Integer | priority | ||
) |
Constructor of attribute of simple type
annotationType | Type of annotation to which this attribute belongs |
name | Name of attribute |
simpleType | Name of simple type of attribute |
required | Indicator whether this attribute is required |
priority | Priority of attribute |
Definition at line 144 of file AnnotTypeAttr.java.
cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.AnnotTypeAttr | ( | AnnotType | annotationType, |
String | name, | ||
AnnotType | structuredType, | ||
Boolean | required | ||
) |
Constructor of attribute of structured type
annotationType | Type of annotation to which this attribute belongs |
name | Name of attribute |
structuredType | Type of structured attribute (type of annotation) |
required | Indicator whether this attribute is required |
Definition at line 164 of file AnnotTypeAttr.java.
cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.AnnotTypeAttr | ( | AnnotTypeAttr | annotTypeAttr | ) |
Constructor of attribute of structured type that is inicialized from another attribute.
annotTypeAttr | another attribute |
Definition at line 181 of file AnnotTypeAttr.java.
int cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.compareTo | ( | Object | o | ) |
Compares attributes according to priority
o | Object to compare with |
Definition at line 400 of file AnnotTypeAttr.java.
boolean cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.contentEquals | ( | Object | obj | ) |
Compares this with other object and returns, whether objects are same type and have same content (id is irelevant).
obj | Object to compare with |
Definition at line 453 of file AnnotTypeAttr.java.
boolean cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.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 435 of file AnnotTypeAttr.java.
AnnotType cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.getAnnotationType | ( | ) |
Gets type of annotation to which this attribute belongs
Definition at line 288 of file AnnotTypeAttr.java.
int cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.getAnnotType | ( | ) |
Gets id of type of annotation to which this attribute belongs
Definition at line 214 of file AnnotTypeAttr.java.
AnnotType cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.getAttributeType | ( | ) |
Gets type of attribute in case that this is attribute of structured type (type of annotation)
Definition at line 307 of file AnnotTypeAttr.java.
String cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.getComment | ( | ) |
Gets textual comment
Definition at line 361 of file AnnotTypeAttr.java.
Integer cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.getId | ( | ) |
Gets id of attribute of type of annotation
Definition at line 196 of file AnnotTypeAttr.java.
String cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.getName | ( | ) |
Gets name of attribute of type of annotation
Definition at line 232 of file AnnotTypeAttr.java.
Integer cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.getPriority | ( | ) |
Gets attribute priority
Definition at line 379 of file AnnotTypeAttr.java.
Boolean cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.getRequired | ( | ) |
Gets indicator whether this attribute is required
Definition at line 325 of file AnnotTypeAttr.java.
String cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.getSimpleType | ( | ) |
Gets name of simple type of annotation
Definition at line 250 of file AnnotTypeAttr.java.
Integer cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.getType | ( | ) |
Gets id of type of attribute in case that this is attribute of structured type (type of annotation)
Definition at line 269 of file AnnotTypeAttr.java.
String cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.getTypeUriV2 | ( | ) |
Gets URI of type of attribute for protocol v. 2.0
Definition at line 575 of file AnnotTypeAttr.java.
String cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.getUriInOntology | ( | ) |
Gets URI in original ontology
Definition at line 343 of file AnnotTypeAttr.java.
String cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.getValueType | ( | ) |
Gets type of value of attribute for protocol v. 2.0
Definition at line 557 of file AnnotTypeAttr.java.
int cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.hashCode | ( | ) |
Definition at line 421 of file AnnotTypeAttr.java.
void cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.setAnnotationType | ( | AnnotType | annotationType | ) |
Sets type of annotation to which this attribute belongs
annotationType | Type of annotation to which this attribute belongs |
Definition at line 297 of file AnnotTypeAttr.java.
void cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.setAnnotType | ( | int | annotType | ) |
Sets id of type of annotation to which this attribute belongs
annotType | id of type of annotation to which this attribute belongs |
Definition at line 223 of file AnnotTypeAttr.java.
void cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.setAttributeType | ( | AnnotType | attributeType | ) |
Sets structured type of attribute (only for attribute of structured type)
attributeType | Structured type of attribute (type of annotation), or null for simple type |
Definition at line 316 of file AnnotTypeAttr.java.
void cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.setComment | ( | String | comment | ) |
Sets textual comment
comment | Textual comment |
Definition at line 370 of file AnnotTypeAttr.java.
void cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.setId | ( | Integer | id | ) |
Sets id of attribute of type of annotation
id | Id of attribute of type of annotation |
Definition at line 205 of file AnnotTypeAttr.java.
void cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.setName | ( | String | name | ) |
Sets name of attribute of type of annotation
name | Name of attribute of type of annotation |
Definition at line 241 of file AnnotTypeAttr.java.
void cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.setPriority | ( | Integer | priority | ) |
Sets attribute priority
priority | Attribute priority |
Definition at line 388 of file AnnotTypeAttr.java.
void cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.setRequired | ( | Boolean | required | ) |
Sets indicator whether this attribute is required
required | If this attribute is required, then true, false otherwise |
Definition at line 334 of file AnnotTypeAttr.java.
void cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.setSimpleType | ( | String | simpleType | ) |
Sets name of simple type of annotation (only for attributes of simple type)
simpleType | Name of simple type of annotation ("" for structured type) |
Definition at line 259 of file AnnotTypeAttr.java.
void cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.setType | ( | Integer | type | ) |
Sets id of type of attribute in case that this is attribute of structured type (type of annotation)
type | id of type of attribute in case that this is attribute of structured type |
Definition at line 279 of file AnnotTypeAttr.java.
void cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.setUriInOntology | ( | String | uriInOntology | ) |
Sets URI in original ontology
uriInOntology | URI in original ontology |
Definition at line 352 of file AnnotTypeAttr.java.
|
private |
Returns serialized informations about attribute of simple type in XML
withComment | If true, comment will be serialized, if false, it will be omitted |
Definition at line 502 of file AnnotTypeAttr.java.
String cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.toString | ( | ) |
Definition at line 492 of file AnnotTypeAttr.java.
String cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.toXMLString | ( | boolean | withComment | ) |
Returns serialized informations about attribute of type of annotation in XML
withComment | If true, comment will be serialized, if false, it will be omitted |
Definition at line 532 of file AnnotTypeAttr.java.
String cz.vutbr.fit.knot.annotations.entity.AnnotTypeAttr.toXMLStringV2 | ( | boolean | withComment | ) |
Returns serialized informations about attribute of type of annotation in XML
withComment | If true, comment will be serialized, if false, it will be omitted |
Definition at line 590 of file AnnotTypeAttr.java.
|
private |
Type of annotation to which this attribute belongs
Definition at line 95 of file AnnotTypeAttr.java.
|
private |
Id of type of annotation to which this attribute belongs
Definition at line 61 of file AnnotTypeAttr.java.
|
private |
Type of attribute in case that this is attribute of structured type (type of annotation)
Definition at line 99 of file AnnotTypeAttr.java.
|
private |
Comment
Definition at line 87 of file AnnotTypeAttr.java.
|
private |
Id of attribute of type of annotation
Definition at line 57 of file AnnotTypeAttr.java.
|
private |
Name of attribute
Definition at line 65 of file AnnotTypeAttr.java.
|
protected |
Attribute priority (for order)
Definition at line 90 of file AnnotTypeAttr.java.
|
private |
Indicates whether this attribute is required
Definition at line 78 of file AnnotTypeAttr.java.
|
staticprivate |
Definition at line 51 of file AnnotTypeAttr.java.
|
private |
Name of simple type of attribute
Definition at line 68 of file AnnotTypeAttr.java.
|
private |
Id of type of attribute in case that this is attribute of structured type (type of annotation)
Definition at line 74 of file AnnotTypeAttr.java.
|
private |
URI in original ontology
Definition at line 82 of file AnnotTypeAttr.java.