8 package cz.vutbr.fit.knot.annotations.entity.attribute;
12 import javax.persistence.DiscriminatorValue;
13 import javax.persistence.Entity;
14 import javax.persistence.NamedQueries;
15 import javax.persistence.NamedQuery;
29 @DiscriminatorValue(
"Boolean")
31 @NamedQuery(name =
"Attribute.findByBoolVAlue", query =
"SELECT a FROM Attribute a WHERE a.boolVAlue = :boolVAlue"),
50 this.simpleType =
"Boolean";
51 this.boolVAlue = value;
52 this.refAnnotation = refAnnotation;
62 this.boolVAlue = (Boolean) value;
81 public void setRawValue(String value)
throws IllegalArgumentException {
87 this.boolVAlue = Boolean.parseBoolean(value);
88 }
catch(IllegalArgumentException ex){
89 throw new IllegalArgumentException(
"Value " + value +
" is not valid boolean value.");
void setValue(Object value)
static final String BOOLEAN_URI
BooleanAttribute(String name, Boolean value, Annotation refAnnotation)
Base class representing attribute of annotation.
Class representing attribute of type Boolean.
String getTypeOntologyUri()
void setRawValue(String value)
Class representing annotation.