Class StringAttributeSyntax

  • All Implemented Interfaces:
    pl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<String>

    public class StringAttributeSyntax
    extends AbstractStringAttributeSyntax
    String attribute value syntax. Can have regular expression defined to limit contents. Also can have min and max length defined.
    Author:
    K. Benedyczak
    • Constructor Detail

      • StringAttributeSyntax

        public StringAttributeSyntax()
    • Method Detail

      • getValueSyntaxId

        public String getValueSyntaxId()
      • getSerializedConfiguration

        public com.fasterxml.jackson.databind.JsonNode getSerializedConfiguration()
        Throws:
        pl.edu.icm.unity.exceptions.InternalException
      • setSerializedConfiguration

        public void setSerializedConfiguration​(com.fasterxml.jackson.databind.JsonNode jsonN)
        Throws:
        pl.edu.icm.unity.exceptions.InternalException
      • validate

        public void validate​(String value)
                      throws pl.edu.icm.unity.exceptions.IllegalAttributeValueException
        Throws:
        pl.edu.icm.unity.exceptions.IllegalAttributeValueException
      • getRegexp

        public String getRegexp()
        Returns:
        the regexp
      • setRegexp

        public void setRegexp​(String regexp)
        Parameters:
        regexp - the regexp to set
      • getMinLength

        public int getMinLength()
        Returns:
        the minLength
      • setMinLength

        public void setMinLength​(int minLength)
                          throws pl.edu.icm.unity.exceptions.WrongArgumentException
        Parameters:
        minLength - the minLength to set
        Throws:
        IllegalArgumentException
        pl.edu.icm.unity.exceptions.WrongArgumentException
      • getMaxLength

        public int getMaxLength()
        Returns:
        the maxLength
      • getMaxSize

        public int getMaxSize()
      • setMaxLength

        public void setMaxLength​(int maxLength)
                          throws pl.edu.icm.unity.exceptions.WrongArgumentException
        Parameters:
        maxLength - the maxLength to set
        Throws:
        IllegalArgumentException
        pl.edu.icm.unity.exceptions.WrongArgumentException