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 pl.edu.icm.unity.base.attribute.IllegalAttributeValueException - Throws:
pl.edu.icm.unity.base.attribute.IllegalAttributeValueException
-
externalValuesToInternal
<T> List<String> externalValuesToInternal(AttributeValueSyntax<T> syntax, List<?> externalValues) throws pl.edu.icm.unity.base.attribute.IllegalAttributeValueException - Throws:
pl.edu.icm.unity.base.attribute.IllegalAttributeValueException
-
internalValuesToExternal
<T> List<String> internalValuesToExternal(AttributeValueSyntax<T> syntax, List<String> internalValues) -
internalValuesToExternal
-
internalValuesToObjectValues
List<?> internalValuesToObjectValues(String attributeName, List<String> internalValues) throws pl.edu.icm.unity.base.attribute.IllegalAttributeValueException - Throws:
pl.edu.icm.unity.base.attribute.IllegalAttributeValueException
-
internalValuesToObjectValues
<T> List<T> internalValuesToObjectValues(AttributeValueSyntax<T> syntax, List<String> internalValues) throws pl.edu.icm.unity.base.attribute.IllegalAttributeValueException - Throws:
pl.edu.icm.unity.base.attribute.IllegalAttributeValueException
-
objectValuesToInternalValues
<T> List<String> objectValuesToInternalValues(AttributeValueSyntax<T> syntax, List<T> typedValues) throws pl.edu.icm.unity.base.attribute.IllegalAttributeValueException - Throws:
pl.edu.icm.unity.base.attribute.IllegalAttributeValueException
-