Class AbstractValueConverter

    • Method Detail

      • toIntegrationItem

        protected IntegrationItem toIntegrationItem​(@NotNull
                                                    @NotNull org.apache.olingo.odata2.api.processor.ODataContext context,
                                                    @NotNull
                                                    @NotNull TypeDescriptor typeDesc,
                                                    @NotNull
                                                    @NotNull org.apache.olingo.odata2.api.ep.entry.ODataEntry entry,
                                                    IntegrationItem container)
        Converts ODataEntry nested as an attribute value inside another ODataEntry to an IntegrationItem by delegating to ODataEntryToIntegrationItemConverter
        Parameters:
        context - OData context for the entry being converted.
        typeDesc - item type corresponding to the ODataEntry being converted.
        entry - a value of an ODataEntry attribute.
        container - an item in which the converted value will be set as an attribute value.
        Returns:
        result of the entry conversion, which will be nested as an attribute value inside the container item
      • toValue

        protected java.lang.Object toValue​(ConversionParameters parameters)
        Converts a nested OData specific value to a value acceptable for IntegrationItem by delegating to PayloadAttributeValueConverter. This method can be used by the ValueConverters dealing with collection or map values, to convert elements of the Collection or values in the Map.
        Parameters:
        parameters - carry the value to be converted and the context for the value conversion.
        Returns:
        a converted value.