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
  • Field Details

  • Constructor Details

    • FloatingPointAttributeSyntax

      public FloatingPointAttributeSyntax()
  • Method Details

    • getSerializedConfiguration

      public com.fasterxml.jackson.databind.node.ObjectNode getSerializedConfiguration()
      Specified by:
      getSerializedConfiguration in interface pl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
    • setSerializedConfiguration

      public void setSerializedConfiguration(com.fasterxml.jackson.databind.JsonNode jsonN)
      Specified by:
      setSerializedConfiguration in interface pl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
    • getValueSyntaxId

      public String getValueSyntaxId()
      Specified by:
      getValueSyntaxId in interface pl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
    • validate

      public void validate(Double value) throws pl.edu.icm.unity.base.attribute.IllegalAttributeValueException
      Specified by:
      validate in interface pl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
      Throws:
      pl.edu.icm.unity.base.attribute.IllegalAttributeValueException
    • areEqual

      public boolean areEqual(Double value, Object another)
      Specified by:
      areEqual in interface pl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
    • hashCode

      public int hashCode(Object value)
      Specified by:
      hashCode in interface pl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
    • getMin

      public double getMin()
    • setMin

      public void setMin(double min) throws pl.edu.icm.unity.base.exceptions.WrongArgumentException
      Throws:
      pl.edu.icm.unity.base.exceptions.WrongArgumentException
    • getMax

      public double getMax()
    • setMax

      public void setMax(double max) throws pl.edu.icm.unity.base.exceptions.WrongArgumentException
      Throws:
      pl.edu.icm.unity.base.exceptions.WrongArgumentException
    • isEmailVerifiable

      public boolean isEmailVerifiable()
      Specified by:
      isEmailVerifiable in interface pl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
    • convertFromString

      public Double convertFromString(String stringRepresentation)
      Specified by:
      convertFromString in interface pl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
    • convertToString

      public String convertToString(Double value)
      Specified by:
      convertToString in interface pl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>
    • isUserVerifiable

      public boolean isUserVerifiable()
      Specified by:
      isUserVerifiable in interface pl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Double>