14 package cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative;
22 import java.io.Serializable;
23 import java.math.BigDecimal;
24 import java.text.DateFormat;
25 import java.text.SimpleDateFormat;
27 import javax.persistence.*;
28 import javax.xml.bind.annotation.XmlRootElement;
29 import javax.xml.datatype.DatatypeFactory;
30 import javax.xml.datatype.Duration;
39 @Table(name =
"alternativeAttribute")
42 @NamedQuery(name =
"AlternativeAttribute.findAll", query =
"SELECT a FROM AlternativeAttribute a"),
43 @NamedQuery(name =
"AlternativeAttribute.findById", query =
"SELECT a FROM AlternativeAttribute a WHERE a.id = :id"),
44 @NamedQuery(name =
"AlternativeAttribute.findByName", query =
"SELECT a FROM AlternativeAttribute a WHERE a.name = :name"),
45 @NamedQuery(name =
"AlternativeAttribute.findBySimpleType", query =
"SELECT a FROM AlternativeAttribute a WHERE a.simpleType = :simpleType"),
46 @NamedQuery(name =
"AlternativeAttribute.findByType", query =
"SELECT a FROM AlternativeAttribute a WHERE a.type = :type"),
47 @NamedQuery(name =
"AlternativeAttribute.findByAlternative", query =
"SELECT a FROM AlternativeAttribute a WHERE a.alternative = :alternative"),
48 @NamedQuery(name =
"AlternativeAttribute.deleteByAltId", query =
"DELETE FROM AlternativeAttribute a WHERE a.alternative = :altId")
51 protected static final long serialVersionUID = 1L;
55 @GeneratedValue(strategy = GenerationType.IDENTITY)
56 @Basic(optional =
false)
61 @Basic(optional = false)
62 @Column(name = "alternative", nullable = false, insertable = false, updatable = false)
63 private
int alternative;
66 @Basic(optional = false)
67 @Column(name = "name")
71 @Column(name = "simpleType")
72 private String simpleType;
75 @Column(name = "type", insertable = false, updatable = false)
83 @Basic(optional = true)
84 @Column(name = "uriInOntology")
85 private String uriInOntology;
88 @Column(name = "nestedAlt", insertable = false, updatable = false)
89 private String nestedAlt;
92 @Column(name = "linkedAlt", insertable = false, updatable = false)
93 private Integer linkedAlt;
96 @Column(name = "stringValue")
97 private String stringValue;
101 @Column(name = "textValue")
102 private String textValue;
105 @Column(name = "dateValue")
106 @Temporal(TemporalType.TIMESTAMP)
107 private Date dateValue;
110 @Column(name = "intValue")
111 private Integer intValue;
114 @Column(name = "decValue")
115 private BigDecimal decValue;
118 @Column(name = "boolVAlue")
119 private Boolean boolVAlue;
123 @Column(name = "binValue")
124 private byte[] binValue;
127 @Column(name = "userValue", insertable = false, updatable = false)
128 private Integer userValue;
131 @Column(name = "geoLat")
132 private BigDecimal geoLat;
134 @Column(name = "geoLong")
135 private BigDecimal geoLong;
138 @Column(name = "entityType")
139 private String entityType;
142 @Column(name = "entityVisualURI")
143 private String entityVisualURI;
146 @Basic(optional = true)
148 @Column(name = "commentary")
149 private String comment;
152 @Column(name = "priority")
153 private Integer priority;
156 @ManyToOne(optional = false)
157 @JoinColumn(name = "alternative", referencedColumnName = "
id")
161 @OneToOne(optional = true)
162 @JoinColumn(name = "type", referencedColumnName = "
id")
166 @OneToOne(optional = true, cascade = CascadeType.ALL)
167 @JoinColumn(name = "nestedAlt", referencedColumnName = "
id")
171 @OneToOne(optional = true)
172 @JoinColumn(name = "linkedAlt", referencedColumnName = "
id")
176 @OneToOne(optional = true)
177 @JoinColumn(name = "userValue", referencedColumnName = "
id")
181 @OneToMany(mappedBy = "alternativeAttribute", cascade = CascadeType.ALL,
204 this.updateFromSugBaseAttribut(sga);
213 return entityAdditionalAttributes;
222 this.entityAdditionalAttributes = entityAdditionalAttributes;
239 throw new UnsupportedOperationException(
"Not supported yet.");
241 AlternativeAttribute other = (AlternativeAttribute) o;
242 if (this.priority == null && other.
getPriority() == null) {
245 if (this.priority == null && other.
getPriority() != null) {
248 if (this.priority != null && other.
getPriority() == null) {
251 return this.priority.compareTo(other.getPriority());
264 return contentEquals(obj,
true);
281 if ((this.name == null) ? (other.
getName() != null) : !this.name.equals(other.
getName())) {
284 if (this.userValue != other.
getUserValue() && (this.userValue == null || !this.userValue.equals(other.getUserValue()))) {
287 if (this.geoLat != other.
getGeoLat() && (this.geoLat == null || !this.geoLat.equals(other.getGeoLat()))) {
290 if (this.geoLong != other.
getGeoLong() && (this.geoLong == null || !this.geoLong.equals(other.getGeoLong()))) {
293 if (this.attributeType != other.
getAttributeType() && (this.attributeType == null || !this.attributeType.equals(other.getAttributeType()))) {
296 if (this.comment == null ? other.
getComment() != null : !this.comment.equals(other.getComment())) {
299 if (this.priority == null ? other.
getPriority() != null : !this.priority.equals(other.getPriority())) {
303 if ((this.simpleType == null) ? (other.getSimpleType() != null) : !this.simpleType.equalsIgnoreCase(other.getSimpleType())) {
306 if(this.simpleType != null){
307 if(this.simpleType.equalsIgnoreCase(
"String") || this.simpleType.equalsIgnoreCase(
"Duration")){
308 if ((this.stringValue == null) ? (other.getStringValue() != null) : !this.stringValue.equals(other.getStringValue())) {
312 else if(this.simpleType.equalsIgnoreCase(
"Binary")){
313 if (!Arrays.equals(
this.binValue, other.
getBinValue())) {
317 else if(this.simpleType.equalsIgnoreCase(
"Date") ||
318 this.simpleType.equalsIgnoreCase(
"DateTime") ||
319 this.simpleType.equalsIgnoreCase(
"Time") ||
320 this.simpleType.equalsIgnoreCase(
"Integer") ||
321 this.simpleType.equalsIgnoreCase(
"Decimal") ||
322 this.simpleType.equalsIgnoreCase(
"Boolean")){
323 if (this.getValue() != other.getValue() && (this.getValue() == null || !this.getValue().equals(other.
getValue()))) {
327 else if (this.simpleType.equalsIgnoreCase(
"SuggestionLink")) {
328 if (this.linkedAlternative == null || !this.linkedAlternative.contentEqualsForSec(other.
getLinkedSuggestion(), null,
false)) {
331 }
else if (this.simpleType.equalsIgnoreCase(
"NestedSuggestion")) {
332 if (this.nestedAlternative == null || !this.nestedAlternative.contentEqualsForSec(other.
getNestedSuggestion(), null,
false)) {
334 if (!this.nestedAlternative.contentEqualsForSec(other.
getNestedSuggestion(), null,
false)) {
342 else if(this.simpleType.equalsIgnoreCase(
"GeoPoint")){
343 if (this.geoLat != other.
getGeoLat() && (this.geoLat == null || !this.geoLat.equals(other.getGeoLat()))) {
346 if (this.geoLong != other.
getGeoLong() && (this.geoLong == null || !this.geoLong.equals(other.getGeoLong()))) {
350 else if (this.simpleType.equalsIgnoreCase(
"Entity")) {
351 if (this.uri != other.
getUri() && (this.uri == null || !this.uri.equals(other.getUri()))) {
354 if (this.entityType != other.
getEntityType() && (this.entityType == null || !this.entityType.equals(other.getEntityType()))) {
357 if (this.stringValue != other.
getStringValue() && (this.stringValue == null || !this.stringValue.equals(other.getStringValue()))) {
360 if (this.entityType != other.
getEntityType() && (this.entityType == null || !this.entityType.equals(other.getEntityType()))) {
363 if (this.entityVisualURI != other.
getEntityVisualURI() && (this.entityVisualURI == null || !this.entityVisualURI.equals(other.getEntityVisualURI()))) {
366 if (this.textValue != other.
getTextValue() && (this.textValue == null || !this.textValue.equals(other.getTextValue()))) {
372 if ((this.getValue() == null) ? (other.
getValue() != null) : (!this.getValue().equals(other.getValue()))) {
378 if ((this.getValue() == null) ? (other.
getValue() != null) : (!this.getValue().equals(other.getValue()))) {
400 final AlternativeAttribute other = (AlternativeAttribute) obj;
402 if ((this.name == null) ? (other.name != null) : !this.name.equals(other.
name)) {
405 if (this.userValue != other.
userValue && (
this.userValue == null || !
this.userValue.equals(other.
userValue))) {
408 if (this.geoLat != other.
geoLat && (
this.geoLat == null || !
this.geoLat.equals(other.
geoLat))) {
411 if (this.geoLong != other.
geoLong && (
this.geoLong == null || !
this.geoLong.equals(other.
geoLong))) {
414 if (this.attributeType != other.
attributeType && (
this.attributeType == null || !
this.attributeType.equals(other.
attributeType))) {
417 if (this.comment == null ? other.
comment != null : !
this.comment.equals(other.
comment)) {
420 if (this.priority == null ? other.
priority != null : !
this.priority.equals(other.
priority)) {
425 if (this.refAlternative != other.
refAlternative && (
this.refAlternative == null || !
this.refAlternative.equals(other.
refAlternative))) {
430 if ((this.simpleType == null) ? (other.simpleType != null) : !this.simpleType.equalsIgnoreCase(other.
simpleType)) {
433 if(this.simpleType != null){
434 if(this.simpleType.equalsIgnoreCase(
"String") || this.simpleType.equalsIgnoreCase(
"Duration")){
435 if ((this.stringValue == null) ? (other.stringValue != null) : !this.stringValue.equals(other.
stringValue)) {
439 else if(this.simpleType.equalsIgnoreCase(
"Binary")){
440 if (!Arrays.equals(
this.binValue, other.
binValue)) {
444 else if(this.simpleType.equalsIgnoreCase(
"Date") ||
445 this.simpleType.equalsIgnoreCase(
"DateTime") ||
446 this.simpleType.equalsIgnoreCase(
"Time") ||
447 this.simpleType.equalsIgnoreCase(
"Integer") ||
448 this.simpleType.equalsIgnoreCase(
"Decimal") ||
449 this.simpleType.equalsIgnoreCase(
"Boolean")){
450 if (this.getValue() != other.getValue() && (this.getValue() == null || !this.getValue().equals(other.
getValue()))) {
454 else if(this.simpleType.equalsIgnoreCase(
"SuggestionLink")){
456 (
this.linkedAlternative == null || !
this.linkedAlternative.equals(other.
linkedAlternative))) {
460 else if(this.simpleType.equalsIgnoreCase(
"NestedSuggestion")){
462 (
this.nestedAlternative == null || !
this.nestedAlternative.equals(other.
nestedAlternative))) {
472 else if(this.simpleType.equalsIgnoreCase(
"Person")){
473 if (this.user != other.
user && (
this.user == null || !
this.user.equals(other.
user))) {
477 else if(this.simpleType.equalsIgnoreCase(
"GeoPoint")){
478 if (this.geoLat != other.
geoLat && (
this.geoLat == null || !
this.geoLat.equals(other.
geoLat))) {
481 if (this.geoLong != other.
geoLong && (
this.geoLong == null || !
this.geoLong.equals(other.
geoLong))) {
485 else if (this.simpleType.equalsIgnoreCase(
"Entity")) {
486 if (this.uri != other.
uri && (
this.uri == null || !
this.uri.equals(other.
uri))) {
489 if (this.entityType != other.
entityType && (
this.entityType == null || !
this.entityType.equals(other.
entityType))) {
492 if (this.stringValue != other.
stringValue && (
this.stringValue == null || !
this.stringValue.equals(other.
stringValue))) {
495 if (this.entityType != other.
entityType && (
this.entityType == null || !
this.entityType.equals(other.
entityType))) {
501 if (this.textValue != other.
textValue && (
this.textValue == null || !
this.textValue.equals(other.
textValue))) {
507 if ((this.getValue() == null) ? (other.
getValue() != null) : (!this.getValue().equals(other.getValue()))) {
513 if ((this.getValue() == null) ? (other.
getValue() != null) : (!this.getValue().equals(other.getValue()))) {
534 AlternativeAttribute other = (AlternativeAttribute)
object;
535 if ((this.
id == null && other.
id != null) || (this.id != null && !this.id.equals(other.id))) {
548 return this.getValue() == null;
554 return "cz.vutbr.fit.knot.annotations.entity.Attribute[id=" +
id +
"]";
560 hash += (
id != null ? id.hashCode() : 0);
571 if (simpleType.equals(
"AnyAnnotation")) {
573 }
else if (simpleType.equals(
"Boolean")) {
575 }
else if (simpleType.equals(
"Date")) {
577 }
else if (simpleType.equals(
"DateTime")) {
579 }
else if (simpleType.equals(
"Decimal")) {
580 return this.decValue;
581 }
else if (simpleType.equals(
"GeoPoint") || simpleType.equals(
"geoPoint")) {
582 return new GeoPointAttribute.GeoPoint(geoLat, geoLong);
583 }
else if (simpleType.equals(
"Image")) {
585 }
else if (simpleType.equals(
"Integer")) {
586 return this.intValue;
587 }
else if (simpleType.equals(
"Person") || simpleType.equals(
"person")) {
589 }
else if (simpleType.equals(
"String")) {
590 return this.stringValue;
591 }
else if (simpleType.equals(
"Time")) {
593 }
else if (simpleType.equals(
"URI")) {
595 }
else if (simpleType.equals(
"Duration")) {
597 return (Object) DatatypeFactory.newInstance().newDuration(this.stringValue);
598 }
catch (Exception e) {
601 }
else if (simpleType.equals(
"Binary")) {
602 return this.binValue;
603 }
else if (simpleType.equals(
"Text")) {
604 return this.textValue;
605 }
else if (simpleType.equals(
"Entity") || simpleType.equals(
"entity")) {
606 return new EntityAttribute.Entity(this.entityType,this.stringValue,this.uri,this.entityVisualURI, this.textValue);
623 if (simpleType.equals(
"AnyAnnotation")) {
625 }
else if (simpleType.equals(
"Boolean")) {
626 this.boolVAlue = (Boolean) value;
627 }
else if (simpleType.equals(
"Date") || simpleType.equals(
"DateTime") || simpleType.equals(
"Time")) {
628 this.dateValue = (Date) value;
629 }
else if (simpleType.equals(
"Decimal")) {
630 this.decValue = (BigDecimal) value;
631 }
else if (simpleType.equals(
"GeoPoint") || simpleType.equals(
"geoPoint")) {
632 this.geoLat = ((GeoPointAttribute.GeoPoint) value).getLatitude();
633 this.geoLong = ((GeoPointAttribute.GeoPoint) value).getLongitude();
634 }
else if (simpleType.equals(
"Image")) {
635 this.uri = (String) value;
636 }
else if (simpleType.equals(
"Integer")) {
637 this.intValue = (Integer) value;
638 }
else if (simpleType.equals(
"Person") || simpleType.equals(
"person")) {
639 this.user = (
User) value;
640 }
else if (simpleType.equals(
"String")) {
641 this.stringValue = (String) value;
642 }
else if (simpleType.equals(
"URI")) {
643 this.uri = (String) value;
644 }
else if (simpleType.equals(
"Duration")) {
645 this.stringValue = ((Duration) value).toString();
646 }
else if (simpleType.equals(
"Binary")) {
647 this.binValue = (byte[]) value;
648 }
else if (simpleType.equals(
"Text")) {
649 this.textValue = (String) value;
650 }
else if (simpleType.equals(
"Entity") || simpleType.equals(
"entity")) {
651 EntityAttribute.Entity entity = (EntityAttribute.Entity) value;
652 this.entityType = entity.getType();
653 this.stringValue = entity.getName();
654 this.uri = entity.getURI();
655 this.entityVisualURI = entity.getVisualRepresentation();
656 this.textValue = entity.getDescription();
668 if(latitude == null && longitude == null){
672 if(latitude == null || longitude == null){
673 throw new IllegalArgumentException(
"Latitude or Longitude value is null");
677 this.geoLat =
new BigDecimal(latitude);
678 this.geoLong =
new BigDecimal(longitude);
679 }
catch (NumberFormatException e) {
680 throw new IllegalArgumentException(
"Latitude or Longitude is not valid Decimal value.");
689 public void setRawValue(Object value)
throws IllegalArgumentException {
690 if (simpleType.equals(
"AnyAnnotation")) {
692 }
else if (simpleType.equals(
"Boolean")) {
693 this.boolVAlue = Boolean.parseBoolean((String) value);
694 }
else if (simpleType.equals(
"Date")) {
695 String zone = Util.parseTimeZoneID((String) value);
696 String originalOffset = TimeZone.getDefault().getID();
698 TimeZone.setDefault(TimeZone.getTimeZone(
"GMT" + zone));
699 this.stringValue = zone;
701 this.boolVAlue =
true;
704 this.dateValue = Util.parseDate((String) value);
705 }
catch (Exception e) {
707 this.dateValue = Util.parseRFC3339Date((String) value);
708 }
catch (Exception ex) {
710 SimpleDateFormat sdf =
new SimpleDateFormat(
"yyyy-MM-dd");
711 this.dateValue = sdf.parse((String) value);
712 }
catch (Exception exx) {
713 throw new IllegalArgumentException(
"Value " + (String) value +
" is not a valid date");
718 TimeZone.setDefault(TimeZone.getTimeZone(originalOffset));
720 }
else if (simpleType.equals(
"DateTime")) {
721 String zone = Util.parseTimeZoneID((String) value);
722 String originalOffset = TimeZone.getDefault().getID();
724 TimeZone.setDefault(TimeZone.getTimeZone(
"GMT" + zone));
725 this.stringValue = zone;
728 this.dateValue = Util.parseRFC3339Date((String) value);
729 }
catch (Exception e) {
730 throw new IllegalArgumentException(
"Value " + (String) value +
" is not a valid RFC3339 date time");
733 TimeZone.setDefault(TimeZone.getTimeZone(originalOffset));
735 }
else if (simpleType.equals(
"Decimal")) {
737 this.decValue =
new BigDecimal((String) value);
738 }
catch (NumberFormatException e) {
739 throw new IllegalArgumentException(
"Value " + (String) value +
" is not a valid Decimal value");
741 }
else if (simpleType.equals(
"GeoPoint") || simpleType.equals(
"geoPoint")) {
742 @SuppressWarnings(
"unchecked") ArrayList<Object> valuesArray = (ArrayList<Object>) value;
743 @SuppressWarnings(
"unchecked") Map<String,String> tag = (Map<String,String>)valuesArray.get(0);
745 String latitude = tag.get(
"geo:lat");
746 String longitude = tag.get(
"geo:long");
749 this.geoLat =
new BigDecimal(latitude);
750 this.geoLong =
new BigDecimal(longitude);
751 }
catch (NumberFormatException e) {
752 throw new IllegalArgumentException(
"Latitude or Longitude is not valid Decimal value.");
754 }
else if (simpleType.equals(
"Image")) {
755 this.uri = (String) value;
756 }
else if (simpleType.equals(
"Integer")) {
758 this.intValue = Integer.parseInt((String) value);
759 }
catch (NumberFormatException e) {
760 throw new IllegalArgumentException(
"Value " + (String) value +
" is not a valid integer value");
762 }
else if (simpleType.equals(
"Person") || simpleType.equals(
"person")) {
763 throw new UnsupportedOperationException(
"Server internal error.");
764 }
else if (simpleType.equals(
"String")) {
765 this.stringValue = (String) value;
766 }
else if (simpleType.equals(
"Time")) {
767 String zone = Util.parseTimeZoneID((String) value);
768 String originalOffset = TimeZone.getDefault().getID();
770 TimeZone.setDefault(TimeZone.getTimeZone(
"GMT" + zone));
771 this.stringValue = zone;
774 this.dateValue = Util.parseTime((String) value);
775 }
catch (Exception e) {
777 this.dateValue = Util.parseRFC3339Date((String) value);
778 }
catch (Exception ex) {
781 DateFormat sdf =
new SimpleDateFormat(
"HH:mm:ss");
782 this.dateValue = sdf.parse((String) value);
783 }
catch (Exception exx) {
784 throw new IllegalArgumentException(
"Value " + (String) value +
" is not a valid time");
789 TimeZone.setDefault(TimeZone.getTimeZone(originalOffset));
791 }
else if (simpleType.equals(
"URI")) {
792 this.uri = (String) value;
793 }
else if (simpleType.equals(
"Duration")) {
795 Duration d = DatatypeFactory.newInstance().newDuration((String) value);
796 this.stringValue = d.toString();
797 }
catch (Exception e) {
798 throw new IllegalArgumentException(
"Value " + (String) value
799 +
" is not a valid Duration value according to http://www.w3.org/TR/xmlschema-2/#duration");
801 }
else if (simpleType.equals(
"Binary")) {
802 this.binValue = org.apache.commons.codec.binary.Base64.decodeBase64((String) value);
803 }
else if (simpleType.equals(
"Text")) {
804 this.setValue(value);
805 }
else if (simpleType.equals(
"Entity") || simpleType.equals(
"entity")) {
806 @SuppressWarnings(
"unchecked") ArrayList<Object> valuesArray = (ArrayList<Object>)value;
807 @SuppressWarnings(
"unchecked") Map<String,String> parameters = (Map<String,String>)valuesArray.get(1);
808 String strValue = (String) valuesArray.get(2);
810 if(parameters.get(
"name") != null){
811 this.stringValue = parameters.get(
"name");
814 if(parameters.get(
"type") != null){
815 this.entityType = parameters.get(
"type");
818 if(parameters.get(
"uri") != null){
819 this.uri = parameters.get(
"uri");
822 if(parameters.get(
"visualRepresentation") != null){
823 this.entityVisualURI = parameters.get(
"visualRepresentation");
826 if(strValue != null){
827 this.textValue = strValue;
849 this.priority = priority;
866 this.comment = comment;
905 this.simpleType = simpleType;
923 this.alternative = alternative;
932 return refAlternative;
941 this.refAlternative = value;
952 this.refAlternative = (Alternative) value;
962 return attributeType;
971 this.attributeType = attributeType;
1015 return nestedAlternative;
1024 this.nestedAlternative = alt;
1043 this.name = sba.getName();
1044 this.simpleType = sba.getSimpleType();
1045 if(this.simpleType.equalsIgnoreCase(
"NestedAnnotation")){
1046 this.simpleType =
"NestedSuggestion";
1048 if(this.simpleType.equalsIgnoreCase(
"AnnotationLink")){
1049 this.simpleType =
"SuggestionLink";
1051 this.type = sba.getType();
1052 this.uri = sba.getUri();
1053 this.uriInOntology = sba.getUriInOntology();
1054 this.attributeType = sba.getAttributeType();
1055 this.comment = sba.getComment();
1056 this.entityType = sba.getEntityType();
1057 this.entityVisualURI = sba.getEntityVisualURI();
1058 this.binValue = sba.getBinValue();
1059 this.boolVAlue = sba.getBoolValue();
1060 this.dateValue = sba.getDateValue();
1061 this.decValue = sba.getDecValue();
1062 this.geoLat = sba.getGeoLat();
1063 this.geoLong = sba.getGeoLong();
1064 this.intValue = sba.getIntValue();
1065 this.stringValue = sba.getStringValue();
1066 this.textValue = sba.getTextValue();
1067 this.userValue = sba.getUserValue();
1068 this.priority = sba.getPriority();
1070 this.linkedAlternative = null;
1106 this.uriInOntology = uriInOntology;
1115 return uriInOntology;
1124 return this.entityType;
1133 return this.entityVisualURI;
1142 return this.boolVAlue;
1151 return this.binValue;
1160 return this.dateValue;
1170 return this.decValue;
1188 return this.geoLong;
1197 return this.intValue;
1207 return this.stringValue;
1217 return this.textValue;
1227 return this.userValue;
1236 return this.linkedAlternative;
1245 this.linkedAlternative = linkedAlternative;
1254 this.boolVAlue = boolVAlue;
void setNestedAlternative(Alternative alt)
Class representing attribute of alternative of suggestion.
Interface for Suggestion and Alternative.
Alternative getRefAlternative()
void setName(String name)
Alternative getNestedAlternative()
Suggestion getNestedSuggestion()
void setBoolVAlue(Boolean boolVAlue)
void setRefSecSuggestion(SecSuggestion value)
void setAlternative(int alternative)
Class representing vocabulary entity attribute.
void updateFromSugBaseAttribut(SugBaseAttribute sba)
void setLinkedAlternative(Alternative linkedAlternative)
Class representing attribute of suggestion.
String getEntityVisualURI()
abstract Object getValue()
void setType(Integer type)
Interface for SugBaseAttribute and AlternativeAttribuge.
void setValue(Object value)
AnnotType getAttributeType()
boolean equals(Object object)
void setUriInOntology(String uriInOntology)
void setSimpleType(String simpleType)
void setEntityAdditionalAttributes(List< AltEntityAdditionalAttribute > entityAdditionalAttributes)
void setRefAlternative(Alternative value)
Alternative getLinkedAlternative()
void setGeoPointStringValue(String latitude, String longitude)
AnnotType getAttributeType()
Alternative refAlternative
Class representing type of annotation.
String getEntityVisualURI()
void setComment(String comment)
Class representing additional attribute of entity in alternative attribute.
Alternative nestedAlternative
List< AltEntityAdditionalAttribute > getEntityAdditionalAttributes()
Class representing alternative of suggestion.
boolean contentEquals(Object obj, boolean refAnnot)
void setRawValue(Object value)
AlternativeAttribute(Integer id)
Suggestion getLinkedSuggestion()
boolean contentEqualsForSec(SugBaseAttribute other)
Class representing attribute of type GeoPoint.
void setAttributeType(AnnotType attributeType)
boolean contentEquals(Object obj)
Utility class (manipulates RFC 3339 dates)
void setPriority(Integer priority)
AlternativeAttribute(SugBaseAttribute sga)
String getUriInOntology()
Alternative linkedAlternative