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 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

      List<String> internalValuesToExternal(String attributeName, List<String> internalValues)
    • 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