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 Detail

      • externalValuesToInternal

        List<String> externalValuesToInternal​(String attributeName,
                                              List<?> externalValues)
                                       throws pl.edu.icm.unity.exceptions.IllegalAttributeValueException
        Throws:
        pl.edu.icm.unity.exceptions.IllegalAttributeValueException
      • externalValuesToInternal

        <T> List<String> externalValuesToInternal​(AttributeValueSyntax<T> syntax,
                                                  List<?> externalValues)
                                           throws pl.edu.icm.unity.exceptions.IllegalAttributeValueException
        Throws:
        pl.edu.icm.unity.exceptions.IllegalAttributeValueException
      • internalValuesToObjectValues

        <T> List<?> internalValuesToObjectValues​(String attributeName,
                                                 List<String> internalValues)
                                          throws pl.edu.icm.unity.exceptions.IllegalAttributeValueException
        Throws:
        pl.edu.icm.unity.exceptions.IllegalAttributeValueException
      • internalValuesToObjectValues

        <T> List<T> internalValuesToObjectValues​(AttributeValueSyntax<T> syntax,
                                                 List<String> internalValues)
                                          throws pl.edu.icm.unity.exceptions.IllegalAttributeValueException
        Throws:
        pl.edu.icm.unity.exceptions.IllegalAttributeValueException
      • objectValuesToInternalValues

        <T> List<String> objectValuesToInternalValues​(AttributeValueSyntax<T> syntax,
                                                      List<T> typedValues)
                                               throws pl.edu.icm.unity.exceptions.IllegalAttributeValueException
        Throws:
        pl.edu.icm.unity.exceptions.IllegalAttributeValueException