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