Class StringAttributeSyntax

java.lang.Object
pl.edu.icm.unity.stdext.attr.AbstractStringAttributeSyntax
pl.edu.icm.unity.stdext.attr.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
  • Field Details

  • Constructor Details

    • StringAttributeSyntax

      public StringAttributeSyntax()
  • Method Details

    • getValueSyntaxId

      public String getValueSyntaxId()
    • getSerializedConfiguration

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

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

      public void validate(String value) throws pl.edu.icm.unity.base.attribute.IllegalAttributeValueException
      Throws:
      pl.edu.icm.unity.base.attribute.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.base.exceptions.WrongArgumentException
      Parameters:
      minLength - the minLength to set
      Throws:
      IllegalArgumentException
      pl.edu.icm.unity.base.exceptions.WrongArgumentException
    • getMaxLength

      public int getMaxLength()
      Returns:
      the maxLength
    • getMaxSize

      public int getMaxSize()
    • setMaxLength

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

      public boolean isEditWithTextArea()
    • setEditWithTextArea

      public void setEditWithTextArea(boolean editWithTextArea)