Class IntegerAttributeSyntax

java.lang.Object
pl.edu.icm.unity.stdext.attr.IntegerAttributeSyntax
All Implemented Interfaces:
pl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Long>

public class IntegerAttributeSyntax extends Object implements pl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<Long>
Integer attribute value syntax. Allows for specifying upper and lower bounds.
Author:
K. Benedyczak
  • Field Details

  • Constructor Details

    • IntegerAttributeSyntax

      public IntegerAttributeSyntax()
  • Method Details

    • getSerializedConfiguration

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

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

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

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

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

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

      public long getMin()
    • setMin

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

      public long getMax()
    • setMax

      public void setMax(long 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<Long>
    • isUserVerifiable

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

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

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