8 package cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes;
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 =
"SuggestionAttribute.findByDecValue", query =
"SELECT a FROM SuggestionAttribute a WHERE a.decValue = :decValue"),
52 this.decValue = (BigDecimal) value;
62 public void setRawValue(String value)
throws IllegalArgumentException {
64 this.decValue =
new BigDecimal(value);
65 }
catch (NumberFormatException e) {
66 throw new IllegalArgumentException(
"Value " + value +
" is not a valid Decimal value");
String getTypeOntologyUri()
Class representing attribute of suggestion.
void setValue(Object value)
Class representing attribute of type Decimal for prupose of suggestion.
static final String DECIMAL_URI
void setRawValue(String value)