Package pl.edu.icm.unity.engine.api
Interface AttributeValueConverter
public interface AttributeValueConverter
Performs conversion of
Attribute
values in a convenient to use way.
Under the hood delegates to proper attribute syntax.-
Method Summary
Modifier and TypeMethodDescriptionexternalValuesToInternal
(String attributeName, List<?> externalValues) externalValuesToInternal
(AttributeValueSyntax<T> syntax, List<?> externalValues) internalValuesToExternal
(String attributeName, List<String> internalValues) internalValuesToExternal
(AttributeValueSyntax<T> syntax, List<String> internalValues) List<?>
internalValuesToObjectValues
(String attributeName, List<String> internalValues) <T> List<T>
internalValuesToObjectValues
(AttributeValueSyntax<T> syntax, List<String> internalValues) objectValuesToInternalValues
(AttributeValueSyntax<T> syntax, List<T> typedValues)
-
Method Details
-
externalValuesToInternal
List<String> externalValuesToInternal(String attributeName, List<?> externalValues) throws IllegalAttributeValueException - Throws:
IllegalAttributeValueException
-
externalValuesToInternal
<T> List<String> externalValuesToInternal(AttributeValueSyntax<T> syntax, List<?> externalValues) throws IllegalAttributeValueException - Throws:
IllegalAttributeValueException
-
internalValuesToExternal
<T> List<String> internalValuesToExternal(AttributeValueSyntax<T> syntax, List<String> internalValues) -
internalValuesToExternal
-
internalValuesToObjectValues
List<?> internalValuesToObjectValues(String attributeName, List<String> internalValues) throws IllegalAttributeValueException - Throws:
IllegalAttributeValueException
-
internalValuesToObjectValues
<T> List<T> internalValuesToObjectValues(AttributeValueSyntax<T> syntax, List<String> internalValues) throws IllegalAttributeValueException - Throws:
IllegalAttributeValueException
-
objectValuesToInternalValues
<T> List<String> objectValuesToInternalValues(AttributeValueSyntax<T> syntax, List<T> typedValues) throws IllegalAttributeValueException - Throws:
IllegalAttributeValueException
-