Class BaseImageAttributeSyntax<T>

java.lang.Object
pl.edu.icm.unity.stdext.attr.BaseImageAttributeSyntax<T>
All Implemented Interfaces:
pl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<T>
Direct Known Subclasses:
ImageAttributeSyntax, PublicLinkableImageSyntax

public abstract class BaseImageAttributeSyntax<T> extends Object implements pl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<T>
Image attribute value syntax. Allows for specifying size and dimension limits. The input and output of the attribute is any BufferedImage, but internally the image is stored as original image format with all the consequences.

Note: for performance reasons the equals is implemented to always return false, so each image is always assumed to be different then another.

Author:
K. Benedyczak, R. Ledzinski
  • Constructor Details

    • BaseImageAttributeSyntax

      public BaseImageAttributeSyntax()
  • Method Details

    • getSerializedConfiguration

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

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

      public ImageConfiguration getConfig()
    • areEqual

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

      public int getMaxSize()
      Specified by:
      getMaxSize in interface pl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<T>
    • hashCode

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

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

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