8 package cz.vutbr.fit.knot.annotations.entity.attribute;
 
   11 import javax.persistence.DiscriminatorValue;
 
   12 import javax.persistence.Entity;
 
   26 @DiscriminatorValue(
"Binary")
 
   36     this.binValue = (byte[]) value;
 
   46     return (Object) this.binValue;
 
   57   public void setRawValue(String value) 
throws IllegalArgumentException {
 
   62           this.binValue = org.apache.commons.codec.binary.Base64.decodeBase64(value);
 
   63       }
catch(IllegalArgumentException ex){
 
   64           throw new IllegalArgumentException(
"Value " + value + 
"is not valid binary value");
 
   77     if (this.binValue == null) {
 
   80     return org.apache.commons.codec.binary.Base64.encodeBase64String(this.binValue);
 
static final String BINARY_URI
String getTypeOntologyUri()
Base class representing attribute of annotation. 
void setRawValue(String value)
Class representing attribute of type Binary. 
void setValue(Object value)