8 package cz.vutbr.fit.knot.annotations.entity.attribute;
 
   11 import java.math.BigDecimal;
 
   12 import javax.persistence.DiscriminatorValue;
 
   13 import javax.persistence.Entity;
 
   14 import javax.persistence.NamedQueries;
 
   15 import javax.persistence.NamedQuery;
 
   29 @DiscriminatorValue(
"Decimal")
 
   31     @NamedQuery(name = 
"Attribute.findByDecValue", query = 
"SELECT a FROM Attribute a WHERE a.decValue = :decValue"),
 
   52     this.decValue = (BigDecimal) value;
 
   62   public void setRawValue(String value) 
throws IllegalArgumentException {
 
   68       this.decValue = 
new BigDecimal(value);
 
   69     } 
catch (NumberFormatException e) {
 
   70       throw new IllegalArgumentException(
"Value " + value + 
" is not a valid Decimal value");
 
void setRawValue(String value)
void setValue(Object value)
Class representing attribute of type Decimal. 
String getTypeOntologyUri()
Base class representing attribute of annotation. 
static final String DECIMAL_URI