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

        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