Package pl.edu.icm.unity.engine.api
Interface AttributeValueConverter
-
public interface AttributeValueConverter
Performs conversion ofAttribute
values in a convenient to use way. Under the hood delegates to proper attribute syntax.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>
externalValuesToInternal(String attributeName, List<?> externalValues)
<T> List<String>
externalValuesToInternal(AttributeValueSyntax<T> syntax, List<?> externalValues)
List<String>
internalValuesToExternal(String attributeName, List<String> internalValues)
<T> List<String>
internalValuesToExternal(AttributeValueSyntax<T> syntax, List<String> internalValues)
List<?>
internalValuesToObjectValues(String attributeName, List<String> internalValues)
<T> List<T>
internalValuesToObjectValues(AttributeValueSyntax<T> syntax, List<String> internalValues)
<T> List<String>
objectValuesToInternalValues(AttributeValueSyntax<T> syntax, List<T> typedValues)
-
-
-
Method Detail
-
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
List<String> internalValuesToExternal(String attributeName, List<String> internalValues)
-
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
-
-