Class DescriptorUtils

java.lang.Object
de.hybris.platform.integrationservices.model.impl.DescriptorUtils

public class DescriptorUtils extends Object
Utilities for manipulating the Descriptor classes in this package.
  • Method Details

    • extractModelFrom

      public static Optional<IntegrationObjectItemModel> extractModelFrom(TypeDescriptor type)
      Retrieves item model corresponding to the specified type descriptor.
      Parameters:
      type - a type descriptor to extract the item model from.
      Returns:
      an Optional with the item model described by the specified TypeDescriptor or Optional.empty(), if the specified type descriptor is null or describes a primitive type.