8 package cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes;
11 import javax.persistence.DiscriminatorValue;
12 import javax.persistence.Entity;
26 @DiscriminatorValue(
"Binary")
35 this.binValue = (byte[]) value;
45 return (Object) this.binValue;
56 public void setRawValue(String value)
throws IllegalArgumentException {
57 this.binValue = org.apache.commons.codec.binary.Base64.decodeBase64(value);
68 if (this.binValue == null) {
71 return org.apache.commons.codec.binary.Base64.encodeBase64String(this.binValue);
String getTypeOntologyUri()
static final String BINARY_URI
Class representing attribute of suggestion.
Class representing attribute of type Binary for prupose of suggestion.
void setValue(Object value)
void setRawValue(String value)