Package pl.edu.icm.unity.stdext.attr
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>
String attribute value syntax. Can have regular expression
defined to limit contents. Also can have min and max length defined.
- Author:
- K. Benedyczak
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintcom.fasterxml.jackson.databind.JsonNodebooleanvoidsetEditWithTextArea(boolean editWithTextArea) voidsetMaxLength(int maxLength) voidsetMinLength(int minLength) voidvoidsetSerializedConfiguration(com.fasterxml.jackson.databind.JsonNode jsonN) voidMethods inherited from class pl.edu.icm.unity.stdext.attr.AbstractStringAttributeSyntax
areEqual, convertFromString, convertToString, hashCode, isEmailVerifiable, isUserVerifiable, serializeSimpleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface pl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax
areEqualStringValue, deserializeSimple, getEmailConfirmationConfiguration, publicExposureSpec, validateStringValue
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
StringAttributeSyntax
public StringAttributeSyntax()
-
-
Method Details
-
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
- Returns:
- the regexp
-
setRegexp
- 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:
IllegalArgumentExceptionpl.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:
IllegalArgumentExceptionpl.edu.icm.unity.base.exceptions.WrongArgumentException
-
isEditWithTextArea
public boolean isEditWithTextArea() -
setEditWithTextArea
public void setEditWithTextArea(boolean editWithTextArea)
-