Package pl.edu.icm.unity.stdext.attr
Class EnumAttributeSyntax
java.lang.Object
pl.edu.icm.unity.stdext.attr.AbstractStringAttributeSyntax
pl.edu.icm.unity.stdext.attr.EnumAttributeSyntax
- All Implemented Interfaces:
pl.edu.icm.unity.engine.api.attributes.AttributeValueSyntax<String>
Enumeration attribute syntax. Accepts strings which are from a defined set.
Case sensitive.
- Author:
- K. Benedyczak
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEnumAttributeSyntax(String... allowed) EnumAttributeSyntax(Set<String> allowed) -
Method Summary
Modifier and TypeMethodDescriptiongetEnumValues(Class<T> type, List<String> vals) Utility: converts string values to enums listintcom.fasterxml.jackson.databind.JsonNodevoidsetAllowed(String... allowed) voidsetAllowed(Set<String> allowed) voidsetSerializedConfiguration(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
-
EnumAttributeSyntax
public EnumAttributeSyntax() -
EnumAttributeSyntax
-
EnumAttributeSyntax
-
-
Method Details
-
getEnumValues
Utility: converts string values to enums list- Parameters:
type-vals-- Returns:
-
getAllowed
-
setAllowed
-
setAllowed
-
getSerializedConfiguration
public com.fasterxml.jackson.databind.JsonNode getSerializedConfiguration() -
setSerializedConfiguration
public void setSerializedConfiguration(com.fasterxml.jackson.databind.JsonNode jsonN) -
getValueSyntaxId
-
validate
public void validate(String value) throws pl.edu.icm.unity.base.attribute.IllegalAttributeValueException - Throws:
pl.edu.icm.unity.base.attribute.IllegalAttributeValueException
-
getMaxSize
public int getMaxSize()
-