8 package cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes;
12 import javax.persistence.DiscriminatorValue;
13 import javax.persistence.Entity;
14 import javax.persistence.NamedQueries;
15 import javax.persistence.NamedQuery;
31 @DiscriminatorValue(value=
"String")
33 @NamedQuery(name =
"SuggestionAttribute.findByStringValue", query =
"SELECT a FROM SuggestionAttribute a WHERE a.stringValue = :stringValue"),
51 this.simpleType =
"String";
52 this.stringValue = value;
53 this.refSuggestion = refSuggestion;
66 this.simpleType =
"String";
67 this.stringValue = value;
68 this.refSuggestion = refSuggestion;
69 this.priority = priority;
79 return stringValue == null || stringValue.equals(
"");
89 return this.stringValue;
99 this.stringValue = (String) value;
109 this.stringValue = value;
void setRawValue(String value)
static final String STRING_URI
Class representing attribute of suggestion.
Class representing attribute of type String for prupose of suggestion.
SugStringAttribute(String name, String value, Suggestion refSuggestion)
String getTypeOntologyUri()
Class representing suggestion of annotation.
void setValue(Object value)
SugStringAttribute(String name, String value, Suggestion refSuggestion, Integer priority)