Class ItemConversionRequest

    • Constructor Detail

      • ItemConversionRequest

        protected ItemConversionRequest()
    • Method Detail

      • getItemModel

        public ItemModel getItemModel()
      • setItemModel

        protected void setItemModel​(ItemModel itemModel)
      • propertyConversionRequest

        public ItemConversionRequest propertyConversionRequest​(java.lang.String propertyName,
                                                               ItemModel item)
                                                        throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • getConversionLevel

        public int getConversionLevel()
        Determines how deep the item being converted by this request is located in the object graph. Every time propertyConversionRequest(String, ItemModel) is called it increases the conversion level (the distance of the resulting request from the very original conversion request).
        Returns:
        number of times propertyConversionRequest(String, ItemModel) was called from the original request to get this request or 0, if this request is the original request. For example, if an item Product has property "catalog", which refers to Catalog item, then conversion request for Product item will have conversion level 0, conversion request for Catalog item will have conversion level 1, and so on for any subsequent item referenced from the Catalog.