Class 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 java.lang.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean areEqual​(T value, java.lang.Object anotherO)  
      ImageConfiguration getConfig()  
      int getMaxSize()  
      com.fasterxml.jackson.databind.JsonNode getSerializedConfiguration()  
      int hashCode​(java.lang.Object value)  
      boolean isEmailVerifiable()  
      boolean isUserVerifiable()  
      void setSerializedConfiguration​(com.fasterxml.jackson.databind.JsonNode jsonN)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface pl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax

        areEqualStringValue, convertFromString, convertToString, deserializeSimple, getEmailConfirmationConfiguration, getValueSyntaxId, publicExposureSpec, serializeSimple, validate, validateStringValue
    • Constructor Detail

      • BaseImageAttributeSyntax

        public BaseImageAttributeSyntax()
    • Method Detail

      • 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>
      • areEqual

        public boolean areEqual​(T value,
                                java.lang.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​(java.lang.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>