Class ConversionParameters.ConversionParametersBuilder

    • Constructor Detail

      • ConversionParametersBuilder

        public ConversionParametersBuilder()
    • Method Detail

      • from

        public ConversionParameters.ConversionParametersBuilder from​(ConversionParameters parameters)
        Initializes this builder to the values like in the sample parameters provided. So, if a call is made:
             conversionParametersBuilder().from(sample).build();
         
        it will produce a different instance of the ConversionParameters, which is in exactly same state as the sample.
        Parameters:
        parameters - a sample to use for initializing builder.
        Returns:
        a builder set to create a new ConversionParameters instance that is different from the sample but having same state.
      • withAttributeName

        public ConversionParameters.ConversionParametersBuilder withAttributeName​(java.lang.String name)
        Specifies context attribute name for the ConversionParameters to create.
        Parameters:
        name - name of the ODataEntry attribute being converted.
        Returns:
        builder with the attribute name specified.
      • withAttributeValue

        public ConversionParameters.ConversionParametersBuilder withAttributeValue​(java.lang.Object value)
        Specifies attribute value for the ConversionParameters to create.
        Parameters:
        value - value of the ODataEntry attribute to be converted.
        Returns:
        builder with the attribute value specified.
      • withIntegrationItem

        public ConversionParameters.ConversionParametersBuilder withIntegrationItem​(IntegrationItem item)
        Specifies integration item for the ConversionParameters to create.
        Parameters:
        item - an integration item, in which the converted attribute value should be set.
        Returns:
        a builder with the integration item specified.
      • withContentLocale

        public ConversionParameters.ConversionParametersBuilder withContentLocale​(java.util.Locale locale)
        Specifies locale of the ODataEntry content.
        Parameters:
        locale - locale of the localized attributes values.
        Returns:
        a builder with the content locale specified.
      • withContext

        public ConversionParameters.ConversionParametersBuilder withContext​(org.apache.olingo.odata2.api.processor.ODataContext context)
        Specifies OData context for the ConversionParameters to create.
        Parameters:
        context - a context providing additional information for the attribute value conversion.
        Returns:
        a builder with the OData context specified.
      • build

        public ConversionParameters build()
        Creates new ConversionParameters instance.
        Returns:
        an instance that has characteristics that were specified by the with... methods prior to calling this method.