13 package cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes;
29 import java.io.Serializable;
30 import java.math.BigDecimal;
32 import java.util.logging.Level;
33 import java.util.logging.Logger;
34 import javax.persistence.*;
47 @Entity(name=
"SuggestionAttribute")
48 @Inheritance(strategy= InheritanceType.SINGLE_TABLE)
49 @Table(name =
"suggestionAttribute")
50 @DiscriminatorColumn(name=
"simpleType",discriminatorType=DiscriminatorType.STRING)
52 @NamedQuery(name =
"SuggestionAttribute.findAll", query =
"SELECT a FROM SuggestionAttribute a"),
53 @NamedQuery(name =
"SuggestionAttribute.findById", query =
"SELECT a FROM SuggestionAttribute a WHERE a.id = :id"),
54 @NamedQuery(name =
"SuggestionAttribute.findByName", query =
"SELECT a FROM SuggestionAttribute a WHERE a.name = :name"),
55 @NamedQuery(name =
"SuggestionAttribute.findBySimpleType", query =
"SELECT a FROM SuggestionAttribute a WHERE a.simpleType = :simpleType"),
56 @NamedQuery(name =
"SuggestionAttribute.findByType", query =
"SELECT a FROM SuggestionAttribute a WHERE a.type = :type"),
57 @NamedQuery(name =
"SuggestionAttribute.findBySuggestion", query =
"SELECT a FROM SuggestionAttribute a WHERE a.suggestion = :suggestion"),
61 protected static final long serialVersionUID = 1L;
66 @GeneratedValue(strategy = GenerationType.IDENTITY)
67 @Basic(optional =
false)
73 @Basic(optional = false)
74 @Column(name = "suggestion", nullable = false, insertable = false, updatable = false)
75 protected
int suggestion;
78 @Basic(optional = false)
79 @Column(name = "name")
80 protected String name;
83 @Column(name = "simpleType")
84 protected String simpleType;
87 @Column(name = "type", insertable = false, updatable = false)
88 protected Integer type;
95 @Basic(optional = true)
96 @Column(name = "uriInOntology")
97 private String uriInOntology;
100 @Column(name = "nestedSugg", insertable = false, updatable = false)
101 protected String nestedSugg;
104 @Column(name = "nestedAnnot", insertable = false, updatable = false)
105 protected String nestedAnnot;
108 @Column(name = "linkedSugg", insertable = false, updatable = false)
109 protected Integer linkedSugg;
112 @Column(name = "linkedAnnot", insertable = false, updatable = false)
113 protected Integer linkedAnnot;
116 @Column(name = "stringValue")
117 protected String stringValue;
121 @Column(name = "textValue")
122 protected String textValue;
125 @Column(name = "dateValue")
126 @Temporal(TemporalType.TIMESTAMP)
127 protected Date dateValue;
130 @Column(name = "intValue")
131 protected Integer intValue;
134 @Column(name = "decValue")
135 protected BigDecimal decValue;
138 @Column(name = "boolVAlue")
139 protected Boolean boolVAlue;
143 @Column(name = "binValue")
144 protected byte[] binValue;
147 @Column(name = "userValue", insertable = false, updatable = false)
148 protected Integer userValue;
151 @Column(name = "geoLat")
152 protected BigDecimal geoLat;
154 @Column(name = "geoLong")
155 protected BigDecimal geoLong;
158 @Column(name = "entityType")
159 protected String entityType;
162 @Column(name = "entityVisualURI")
163 protected String entityVisualURI;
166 @Basic(optional = true)
168 @Column(name = "commentary")
169 protected String comment;
172 @Column(name = "priority")
173 protected Integer priority;
176 @ManyToOne(optional = false)
177 @JoinColumn(name = "suggestion", referencedColumnName = "
id")
181 @OneToOne(optional = true)
182 @JoinColumn(name = "type", referencedColumnName = "
id")
186 @OneToOne(optional = true, cascade = CascadeType.ALL)
187 @JoinColumn(name = "nestedSugg", referencedColumnName = "
id")
191 @OneToOne(optional = true, cascade = CascadeType.ALL)
192 @JoinColumn(name = "nestedAnnot", referencedColumnName = "
id")
196 @OneToOne(optional = true)
197 @JoinColumn(name = "linkedSugg", referencedColumnName = "
id")
201 @OneToOne(optional = true)
202 @JoinColumn(name = "linkedAnnot", referencedColumnName = "
id")
206 @OneToOne(optional = true)
207 @JoinColumn(name = "userValue", referencedColumnName = "
id")
211 @OneToMany(mappedBy = "refEntityAttribute", cascade = CascadeType.ALL,
240 if (proto11 && comment != null && !comment.isEmpty()) {
241 sCom =
"><a:comment>"
245 +
"</a:comment></a:attribute";
258 if (this.getValue() == null) {
261 return Util.escapeForXml(this.getValue().toString());
278 public String
toXMLString(
boolean proto11,
boolean withOntology) {
279 String sCom = this.getCommentXmlPart(proto11);
280 String escapedVal = xmlFormatValue();
281 String ontoString =
"";
283 ontoString +=
" typeOntologyUri=\""+getTypeOntologyUri()+
"\"";
284 ontoString +=
" ontologyUri=\"" + getUriInOntology() +
"\"";
286 return "<a:attribute name=\"" + name +
"\"" + ontoString +
" type=\"" + simpleType +
"\" rdf:value=\"" + escapedVal +
"\"" + sCom +
">";
295 StringBuilder result =
new StringBuilder();
296 String escapedVal = xmlFormatValue();
297 String ontoString = getUriInOntology();
298 String docUri = refSuggestion.getSource() + refSuggestion.getFragmentXpointersV2();
301 result.append(
"<trix:triple>");
304 result.append(
"<trix:uri>");
305 result.append(docUri);
306 result.append(
"</trix:uri>");
309 if(ontoString == null || ontoString.isEmpty()){
311 result.append(
"<trix:name>");
312 result.append(Util.toHTMLString(name));
313 result.append(
"</trix:name>");
316 result.append(
"<trix:uri>");
317 result.append(Util.toHTMLString(ontoString));
318 result.append(
"</trix:uri>");
322 if (simpleType.equals(
"NestedAnnotation")) {
324 }
else if (simpleType.equals(
"AnnotationLink") || simpleType.equals(
"LinkedAnnotation")) {
327 }
else if (simpleType.equals(
"NestedSuggestion")) {
329 }
else if (simpleType.equals(
"SuggestionLink") || simpleType.equals(
"LinkedSuggestion")) {
332 }
else if (simpleType.equalsIgnoreCase(
"Entity")) {
335 result.append(entity.toXMLStringWHV2());
336 }
else if (simpleType.equalsIgnoreCase(
"GeoPoint")) {
338 result.append(
"<trix:typedLiteral datatype=\"http://www.w3.org/2003/01/geo/wgs84_pos#Point\">");
340 result.append(
"</trix:typedLiteral>");
343 result.append(
"</trix:triple>");
344 }
else if (simpleType.equals(
"AnyAnnotation")) {
346 result.append(anyAnnot.toXMLStringWHV2(ontoString));
349 int index = Constants.SIMPLE_TYPES_NAMES_V2.indexOf(simpleType);
352 String msg =
"Unknown type of attribute of suggestion: " + simpleType;
353 Logger.getLogger(SugBaseAttribute.class.getName()).log(Level.SEVERE, msg);
356 index = Constants.SIMPLE_TYPES_NAMES_V2.indexOf(
"String");
359 result.append(
"<trix:typedLiteral datatype=\"");
360 result.append(Constants.SIMPLE_TYPES_URI_V2.get(index));
362 if(escapedVal == null){
364 result.append(
"\"/>");
366 result.append(
"\">");
368 result.append(escapedVal);
369 result.append(
"</trix:typedLiteral>");
373 result.append(
"</trix:triple>");
376 if (priority != null) {
377 result.append(
"<trix:triple>");
378 result.append(
"<trix:uri>");
379 result.append(docUri);
380 result.append(
"</trix:uri>");
381 if (ontoString == null || ontoString.isEmpty()) {
383 result.append(
"<trix:name>");
384 result.append(Util.toHTMLString(name));
385 result.append(
"</trix:name>");
388 result.append(
"<trix:uri>");
389 result.append(Util.toHTMLString(ontoString));
390 result.append(
"</trix:uri>");
392 result.append(
"<trix:typedLiteral datatype=\"http://knot.fit.vutbr.cz/annotations/knotOAExtension#attributePriority\">");
393 result.append(priority);
394 result.append(
"</trix:typedLiteral>");
395 result.append(
"</trix:triple>");
398 return result.toString();
410 result.setName(name);
412 result.setStringValue(
"");
414 if (simpleType.equals(
"NestedAnnotation")) {
416 }
else if (simpleType.equals(
"AnnotationLink") || simpleType.equals(
"LinkedAnnotation")) {
418 }
else if (simpleType.equals(
"NestedSuggestion")) {
420 }
else if (simpleType.equals(
"SuggestionLink") || simpleType.equals(
"LinkedSuggestion")) {
422 }
else if (simpleType.equalsIgnoreCase(
"Entity")) {
424 }
else if (simpleType.equalsIgnoreCase(
"GeoPoint")) {
425 if (this.getGeoLat() != null && this.getGeoLong() != null) {
426 result.setStringValue(this.getGeoLat().toString() +
", " + this.getGeoLong().toString());
428 }
else if (simpleType.equals(
"AnyAnnotation")) {
430 }
else if (simpleType.equals(
"Date")) {
431 if (this.getDateValue() != null) {
432 result.setStringValue(Util.toRFC3339DateOnlyWTZ(this.getDateValue()));
434 }
else if (simpleType.equals(
"DateTime")) {
435 if (this.getDateValue() != null) {
436 result.setStringValue(Util.toRFC3339Date(this.getDateValue()));
438 }
else if (simpleType.equals(
"Time")) {
439 if (this.getDateValue() != null) {
440 result.setStringValue(Util.toRFC3339Time(this.getDateValue()));
442 }
else if (simpleType.equals(
"URI")) {
443 if (this.getValue() != null) {
444 result.setStringValue(this.getValue().toString());
445 result.setType(
"URI");
449 int index = Constants.SIMPLE_TYPES_NAMES_V2.indexOf(simpleType);
452 String msg =
"Unknown type of attribute of suggestion: " + simpleType;
453 Logger.getLogger(SugBaseAttribute.class.getName()).log(Level.SEVERE, msg);
458 Object val = this.getValue();
460 result.setStringValue(val.toString());
480 throw new UnsupportedOperationException(
"Not supported yet.");
482 SugBaseAttribute other = (SugBaseAttribute) o;
483 if (this.priority == null && other.
getPriority() == null) {
486 if (this.priority == null && other.
getPriority() != null) {
489 if (this.priority != null && other.
getPriority() == null) {
492 return this.priority.compareTo(other.getPriority());
505 return contentEquals(obj,
true);
522 final SugBaseAttribute other = (SugBaseAttribute) obj;
524 if ((this.name == null) ? (other.name != null) : !this.name.equals(other.
name)) {
527 if (this.userValue != other.
userValue && (
this.userValue == null || !
this.userValue.equals(other.
userValue))) {
530 if (this.geoLat != other.
geoLat && (
this.geoLat == null || !
this.geoLat.equals(other.
geoLat))) {
533 if (this.geoLong != other.
geoLong && (
this.geoLong == null || !
this.geoLong.equals(other.
geoLong))) {
536 if (this.attributeType != other.
attributeType && (
this.attributeType == null || !
this.attributeType.equals(other.
attributeType))) {
539 if (this.comment == null ? other.
comment != null : !
this.comment.equals(other.
comment)) {
542 if (this.priority == null ? other.
priority != null : !
this.priority.equals(other.
priority)) {
547 if (this.refSuggestion != other.
refSuggestion && (
this.refSuggestion == null || !
this.refSuggestion.equals(other.
refSuggestion))) {
552 if ((this.simpleType == null) ? (other.simpleType != null) : !this.simpleType.equalsIgnoreCase(other.
simpleType)) {
555 if(this.simpleType != null){
556 if(this.simpleType.equalsIgnoreCase(
"String") || this.simpleType.equalsIgnoreCase(
"Duration")){
557 if ((this.stringValue == null) ? (other.stringValue != null) : !this.stringValue.equals(other.
stringValue)) {
561 else if(this.simpleType.equalsIgnoreCase(
"Binary")){
562 if (!Arrays.equals(
this.binValue, other.
binValue)) {
566 else if(this.simpleType.equalsIgnoreCase(
"Date") ||
567 this.simpleType.equalsIgnoreCase(
"DateTime") ||
568 this.simpleType.equalsIgnoreCase(
"Time") ||
569 this.simpleType.equalsIgnoreCase(
"Integer") ||
570 this.simpleType.equalsIgnoreCase(
"Decimal") ||
571 this.simpleType.equalsIgnoreCase(
"Boolean")){
572 if (this.getValue() != other.getValue() && (this.getValue() == null || !this.getValue().equals(other.
getValue()))) {
576 else if(this.simpleType.equalsIgnoreCase(
"SuggestionLink")){
578 (
this.linkedSuggestion == null || !
this.linkedSuggestion.equals(other.
linkedSuggestion))) {
582 else if(this.simpleType.equalsIgnoreCase(
"AnnotationLink")){
584 (
this.linkedAnnotation == null || !
this.linkedAnnotation.equals(other.
linkedAnnotation))) {
588 else if(this.simpleType.equalsIgnoreCase(
"NestedSuggestion")){
590 (
this.nestedSuggestion == null || !
this.nestedSuggestion.equals(other.
nestedSuggestion))) {
600 else if(this.simpleType.equalsIgnoreCase(
"Person")){
601 if (this.user != other.
user && (
this.user == null || !
this.user.equals(other.
user))) {
605 else if(this.simpleType.equalsIgnoreCase(
"GeoPoint")){
606 if (this.geoLat != other.
geoLat && (
this.geoLat == null || !
this.geoLat.equals(other.
geoLat))) {
609 if (this.geoLong != other.
geoLong && (
this.geoLong == null || !
this.geoLong.equals(other.
geoLong))) {
613 else if (this.simpleType.equalsIgnoreCase(
"Entity")) {
614 if (this.uri != other.
uri && (
this.uri == null || !
this.uri.equals(other.
uri))) {
617 if (this.entityType != other.
entityType && (
this.entityType == null || !
this.entityType.equals(other.
entityType))) {
620 if (this.stringValue != other.
stringValue && (
this.stringValue == null || !
this.stringValue.equals(other.
stringValue))) {
623 if (this.entityType != other.
entityType && (
this.entityType == null || !
this.entityType.equals(other.
entityType))) {
629 if (this.textValue != other.
textValue && (
this.textValue == null || !
this.textValue.equals(other.
textValue))) {
635 if ((this.getValue() == null) ? (other.
getValue() != null) : (!this.getValue().equals(other.getValue()))) {
641 if ((this.getValue() == null) ? (other.
getValue() != null) : (!this.getValue().equals(other.getValue()))) {
657 public abstract Object getValue();
670 public abstract void setValue(Object value);
678 public abstract void setRawValue(String value)
throws IllegalArgumentException;
686 return this.getValue() == null;
701 SugBaseAttribute other = (SugBaseAttribute)
object;
702 if ((this.
id == null && other.
id != null) || (this.id != null && !this.id.equals(other.id))) {
723 this.comment = comment;
728 return "cz.vutbr.fit.knot.annotations.entity.Attribute[id=" +
id +
"]";
734 hash += (
id != null ? id.hashCode() : 0);
774 this.simpleType = simpleType;
792 this.suggestion = suggestion;
801 return refSuggestion;
810 this.refSuggestion = value;
821 this.refSuggestion = (Suggestion) value;
831 return attributeType;
840 this.attributeType = attributeType;
849 return nestedSuggestion;
858 return nestedAnnotation;
874 if(nest != null && !nest.isEmpty()){
875 this.nestedAnnot = null;
877 this.nestedSugg = nest;
893 if(nestAnnot != null && !nestAnnot.isEmpty()){
894 this.nestedSugg = null;
896 this.nestedAnnot = nestAnnot;
905 if(nestedSuggestion != null){
906 this.nestedAnnotation = null;
908 this.nestedSuggestion = nestedSuggestion;
917 if(nestedAnnotation != null){
918 this.nestedSuggestion = null;
920 this.nestedAnnotation = nestedAnnotation;
1011 this.uriInOntology = uriInOntology;
1020 return uriInOntology;
1032 StringBuilder sb =
new StringBuilder(
"{\"attName\":\"");
1033 sb.append(this.name);
1034 sb.append(
"\",\"simpleType\":\"");
1035 sb.append(this.simpleType);
1037 sb.append(
"\",\"attValue\":\"");
1038 if (this.simpleType.equals(
"String")) {
1039 sb.append(this.stringValue);
1040 }
else if (this.simpleType.equals(
"Image") || this.simpleType.equals(
"URI")) {
1041 sb.append(this.uri);
1042 }
else if (this.simpleType.equals(
"Integer")) {
1043 if (this.intValue != null) {
1044 sb.append(this.intValue.toString());
1046 sb.append(this.intValue);
1048 }
else if (this.simpleType.equals(
"Boolean")) {
1049 sb.append(this.boolVAlue.toString());
1050 }
else if (this.simpleType.equals(
"Text")) {
1051 if (this.textValue == null) {
1055 sb.append(this.textValue);
1057 }
else if (this.simpleType.equals(
"Decimal")) {
1058 sb.append(this.decValue.toString());
1059 }
else if (simpleType.equals(
"DateTime")) {
1060 sb.append(Util.toRFC3339Date(dateValue));
1061 }
else if (simpleType.equals(
"Date")) {
1062 sb.append(Util.toRFC3339DateOnly(dateValue));
1063 }
else if (simpleType.equals(
"Time")) {
1064 sb.append(Util.toRFC3339Time(dateValue));
1065 }
else if (this.simpleType.equals(
"Binary")) {
1066 if (this.binValue != null) {
1067 sb.append(org.apache.commons.codec.binary.Base64.encodeBase64String(this.binValue));
1069 }
else if (this.simpleType.equals(
"AnyAnnotation")) {
1071 }
else if (this.simpleType.equals(
"GeoPoint") || this.simpleType.equals(
"geoPoint")) {
1073 if (this.geoLat == null || this.geoLong == null) {
1077 sb.append(this.geoLat.toString());
1079 sb.append(this.geoLong.toString());
1081 }
else if(this.simpleType.equals(
"entity") || this.simpleType.equals(
"Entity")){
1082 if(this.uri.isEmpty() || this.uri == null){
1085 sb.append(((EntityAttribute.Entity)getValue()).toJSONString());
1087 }
else if (this.simpleType.equals(
"Duration")) {
1088 sb.append(this.stringValue);
1090 sb.append(
"\",\"nestedURI\":\"");
1091 if (this.nestedSuggestion != null) {
1092 sb.append(this.nestedSuggestion.getURI());
1093 this.nestedSugg = this.nestedSuggestion.getId().toString();
1098 sb.append(
"\",\"nestedID\":\"null\",\"linkedURI\":\"");
1099 if (this.linkedSuggestion != null) {
1100 sb.append(this.linkedSuggestion.getURI());
1101 this.linkedSugg = this.linkedSuggestion.getId();
1106 sb.append(
"\",\"linkedID\":\"null\",\"structuredType\":");
1107 if (this.linkedSuggestion != null && this.linkedSuggestion.getAnnotType() != null) {
1108 sb.append(
"\"").append(this.linkedSuggestion.getAnnotType().getUri().split(
AppBean.
getBaseTypeUri())[1].split(
"g[0-9]*/", 2)[1]).append(
"\"");
1110 else if (this.nestedSuggestion != null && this.nestedSuggestion.getAnnotType() != null) {
1111 sb.append(
"\"").append(this.nestedSuggestion.getAnnotType().getUri().split(
AppBean.
getBaseTypeUri())[1].split(
"g[0-9]*/", 2)[1]).append(
"\"");
1117 return sb.toString();
1127 this.name = ba.getName();
1128 this.simpleType = ba.getSimpleType();
1129 if(this.simpleType.equalsIgnoreCase(
"NestedAnnotation")){
1130 this.simpleType =
"NestedSuggestion";
1132 if(this.simpleType.equalsIgnoreCase(
"AnnotationLink")){
1133 this.simpleType =
"SuggestionLink";
1135 this.type = ba.getType();
1136 this.uri = ba.getUri();
1137 this.uriInOntology = ba.getUriInOntology();
1138 this.attributeType = ba.getAttributeType();
1139 this.comment = ba.getComment();
1140 this.entityType = ba.getEntityType();
1141 this.entityVisualURI = ba.getEntityVisualURI();
1142 this.binValue = ba.getBinValue();
1143 this.boolVAlue = ba.getBoolValue();
1144 this.dateValue = ba.getDateValue();
1145 this.decValue = ba.getDecValue();
1146 this.geoLat = ba.getGeoLat();
1147 this.geoLong = ba.getGeoLong();
1148 this.intValue = ba.getIntValue();
1149 this.stringValue = ba.getStringValue();
1150 this.textValue = ba.getTextValue();
1151 this.userValue = ba.getUserValue();
1152 this.priority = ba.getPriority();
1153 this.entityAdditionalAttributes =
new ArrayList<SugEntityAdditionalAttribute>();
1155 Iterator<EntityAdditionalAttribute> eaIt = ba.getEntityAdditionalAttributes().iterator();
1156 while (eaIt.hasNext()) {
1159 newAt.setPriority(at.getPriority());
1160 this.entityAdditionalAttributes.add(newAt);
1164 this.linkedAnnotation = null;
1165 this.nestedAnnotation = null;
1166 this.linkedSuggestion = null;
1167 this.nestedSuggestion = null;
1176 this.name = attr.getName();
1177 this.simpleType = attr.getSimpleType();
1178 if(this.simpleType.equalsIgnoreCase(
"NestedAnnotation")){
1179 this.simpleType =
"NestedSuggestion";
1181 if(this.simpleType.equalsIgnoreCase(
"AnnotationLink")){
1182 this.simpleType =
"SuggestionLink";
1184 this.type = attr.getType();
1185 this.uri = attr.getUri();
1186 this.uriInOntology = attr.getUriInOntology();
1187 this.attributeType = attr.getAttributeType();
1188 this.comment = attr.getComment();
1189 this.entityType = attr.getEntityType();
1190 this.entityVisualURI = attr.getEntityVisualURI();
1191 this.binValue = attr.getBinValue();
1192 this.boolVAlue = attr.getBoolValue();
1193 this.dateValue = attr.getDateValue();
1194 this.decValue = attr.getDecValue();
1195 this.geoLat = attr.getGeoLat();
1196 this.geoLong = attr.getGeoLong();
1197 this.intValue = attr.getIntValue();
1198 this.stringValue = attr.getStringValue();
1199 this.textValue = attr.getTextValue();
1200 this.userValue = attr.getUserValue();
1201 this.priority = attr.getPriority();
1203 this.entityAdditionalAttributes =
new ArrayList<SugEntityAdditionalAttribute>();
1205 Iterator<AltEntityAdditionalAttribute> aeatit = attr.getEntityAdditionalAttributes().iterator();
1207 while (aeatit.hasNext()) {
1210 nAt.setPriority(aeat.getPriority());
1211 this.entityAdditionalAttributes.add(nAt);
1215 Logger.getLogger(BaseAttribute.class.getName()).log(Level.SEVERE,
"Trying to update attribute using attribute with different type.");
1220 this.linkedAnnotation = null;
1221 this.nestedAnnotation = null;
1222 this.linkedSuggestion = null;
1223 this.nestedSuggestion = null;
1232 return this.entityType;
1241 this.entityType = entityType;
1250 return this.entityVisualURI;
1259 this.entityVisualURI = entityVisualURI;
1268 return this.boolVAlue;
1277 return this.binValue;
1286 return this.dateValue;
1296 return this.decValue;
1314 return this.geoLong;
1323 return this.intValue;
1333 return this.stringValue;
1343 return this.textValue;
1353 return this.userValue;
1362 return this.linkedAnnotation;
1371 return this.linkedSuggestion;
1379 this.linkedSuggestion = suggestion;
1399 this.priority = priority;
1408 return entityAdditionalAttributes;
1417 this.entityAdditionalAttributes = entityAdditionalAttributes;
1426 this.attributeType = ba.getAttributeType();
1427 this.binValue = ba.getBinValue();
1428 this.boolVAlue = ba.getBoolValue();
1429 this.comment = ba.getComment();
1430 this.dateValue = ba.getDateValue();
1431 this.decValue = ba.getDecValue();
1432 this.entityType = ba.getEntityType();
1433 this.entityVisualURI = ba.getEntityVisualURI();
1434 this.geoLat = ba.getGeoLat();
1435 this.geoLong = ba.getGeoLong();
1436 this.id = ba.getId();
1437 this.intValue = ba.getIntValue();
1438 this.linkedAnnot = ba.linkedAnnot;
1439 this.linkedAnnotation = ba.getLinkedAnnotation();
1440 this.linkedSugg = ba.linkedSugg;
1441 this.nestedSuggestion = ba.getNestedSuggestion();
1442 this.name = ba.getName();
1443 this.nestedAnnot = ba.nestedAnnot;
1444 this.nestedAnnotation = ba.getNestedAnnotation();
1445 this.nestedSugg = ba.nestedSugg;
1446 this.linkedSuggestion = ba.getLinkedSuggestion();
1447 this.refSuggestion = ba.refSuggestion;
1448 this.stringValue = ba.getStringValue();
1449 this.suggestion = ba.suggestion;
1450 this.textValue = ba.getTextValue();
1451 this.type = ba.getType();
1452 this.uri = ba.getUri();
1453 this.uriInOntology = ba.getUriInOntology();
1454 this.user = ba.user;
1455 this.userValue = ba.getUserValue();
1456 this.priority = ba.getPriority();
1465 this.boolVAlue = boolVAlue;
void setNestedSuggID(String nest)
Class representing attribute of alternative of suggestion.
void setLinkedSuggestion(Suggestion suggestion)
Annotation getNestedAnnotation()
Additional attribute of entity in suggestion attribute.
String getNestedAnnotID()
Interface for Suggestion and Alternative.
boolean equals(Object object)
Additional attribute of entity in annotation attribute.
void setNestedAnnotation(Annotation nestedAnnotation)
void setPriority(Integer priority)
List< EntityAdditionalAttribute > getEntityAdditionalAttributes()
Suggestion getRefSuggestion()
void setEntityVisualURI(String entityVisualURI)
void setNestedSuggestion(Suggestion nestedSuggestion)
Class representing attribute of type NestedAnnotation for peupose of suggestion.
Singleton for storing global variables.
void setSimpleType(String simpleType)
void setType(Integer type)
static String getBaseTypeUri()
Class representing vocabulary entity attribute for prupose of suggestion.
Suggestion getNestedSuggestion()
Class representing attribute of type GeoPoint.
Class representing vocabulary entity attribute.
void updateFromAlternativeAttribut(AlternativeAttribute attr)
Class representing attribute of suggestion.
Annotation linkedAnnotation
abstract Object getValue()
Interface for SugBaseAttribute and AlternativeAttribuge.
String getUriInOntology()
void setAttributeType(AnnotType attributeType)
String getCommentXmlPart(boolean proto11)
void setSuggestion(int suggestion)
AnnotType getAttributeType()
void setRefSecSuggestion(SecSuggestion value)
void updateFromBaseAttributeAll(SugBaseAttribute ba)
boolean contentEquals(Object obj, boolean refAnnot)
Base class representing attribute of annotation.
void setComment(String comment)
List< SugEntityAdditionalAttribute > getEntityAdditionalAttributes()
static final int LOG_LEVEL
Class representing type of annotation.
void setBoolVAlue(Boolean boolVAlue)
static final String DEFAULT_SIMPLE_TYPE_FOR_ENT_AD_AT
String getEntityVisualURI()
SugBaseAttribute(Integer id)
void updateFromBaseAttribut(BaseAttribute ba)
Class representing additional attribute of entity in alternative attribute.
List< AltEntityAdditionalAttribute > getEntityAdditionalAttributes()
Annotation getLinkedAnnotation()
Suggestion linkedSuggestion
Class representing attribute of type AnnotationLink for prupose of suggestion.
void setNestedAnnotID(String nestAnnot)
SugEntityAdditionalAttribute toSugEntityAdditionalAttribute()
String toXMLString(boolean proto11, boolean withOntology)
Suggestion nestedSuggestion
void setEntityType(String entityType)
static final int LOG_LEVEL_SERVER_ERRORS
void setEntityAdditionalAttributes(List< SugEntityAdditionalAttribute > entityAdditionalAttributes)
Class representing suggestion of annotation.
void setRefSuggestion(Suggestion value)
Suggestion getLinkedSuggestion()
Class representing attribute of type AnyAnnotation for prupose of suggestion.
Utility class (manipulates RFC 3339 dates)
boolean contentEquals(Object obj)
Class representing annotation.
String getTypeOntologyUri()
void setName(String name)
void setUriInOntology(String uriInOntology)