Package pl.edu.icm.unity.stdext.attr
Class FloatingPointAttributeSyntax
- java.lang.Object
-
- pl.edu.icm.unity.stdext.attr.FloatingPointAttributeSyntax
-
- All Implemented Interfaces:
pl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
public class FloatingPointAttributeSyntax extends Object implements pl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
Floating point number attribute value syntax. Allows for specifying upper and lower bounds.- Author:
- K. Benedyczak
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFloatingPointAttributeSyntax.Factory
-
Constructor Summary
Constructors Constructor Description FloatingPointAttributeSyntax()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanareEqual(Double value, Object another)DoubleconvertFromString(String stringRepresentation)StringconvertToString(Double value)doublegetMax()doublegetMin()com.fasterxml.jackson.databind.node.ObjectNodegetSerializedConfiguration()StringgetValueSyntaxId()inthashCode(Object value)booleanisEmailVerifiable()booleanisUserVerifiable()voidsetMax(double max)voidsetMin(double min)voidsetSerializedConfiguration(com.fasterxml.jackson.databind.JsonNode jsonN)voidvalidate(Double value)
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSerializedConfiguration
public com.fasterxml.jackson.databind.node.ObjectNode getSerializedConfiguration()
- Specified by:
getSerializedConfigurationin interfacepl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
-
setSerializedConfiguration
public void setSerializedConfiguration(com.fasterxml.jackson.databind.JsonNode jsonN)
- Specified by:
setSerializedConfigurationin interfacepl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
-
getValueSyntaxId
public String getValueSyntaxId()
- Specified by:
getValueSyntaxIdin interfacepl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
-
validate
public void validate(Double value) throws pl.edu.icm.unity.exceptions.IllegalAttributeValueException
- Specified by:
validatein interfacepl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>- Throws:
pl.edu.icm.unity.exceptions.IllegalAttributeValueException
-
areEqual
public boolean areEqual(Double value, Object another)
- Specified by:
areEqualin interfacepl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
-
hashCode
public int hashCode(Object value)
- Specified by:
hashCodein interfacepl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
-
getMin
public double getMin()
-
setMin
public void setMin(double min) throws pl.edu.icm.unity.exceptions.WrongArgumentException- Throws:
pl.edu.icm.unity.exceptions.WrongArgumentException
-
getMax
public double getMax()
-
setMax
public void setMax(double max) throws pl.edu.icm.unity.exceptions.WrongArgumentException- Throws:
pl.edu.icm.unity.exceptions.WrongArgumentException
-
isEmailVerifiable
public boolean isEmailVerifiable()
- Specified by:
isEmailVerifiablein interfacepl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
-
convertFromString
public Double convertFromString(String stringRepresentation)
- Specified by:
convertFromStringin interfacepl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
-
convertToString
public String convertToString(Double value)
- Specified by:
convertToStringin interfacepl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
-
isUserVerifiable
public boolean isUserVerifiable()
- Specified by:
isUserVerifiablein interfacepl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
-
-