Interface SchemaGenerator

All Known Implementing Classes:
DefaultSchemaGenerator

public interface SchemaGenerator
  • Method Summary

    Modifier and Type
    Method
    Description
    default org.apache.olingo.odata2.api.edm.provider.Schema
    Generates a Schema for a given collection of TypeDescriptors.
    org.apache.olingo.odata2.api.edm.provider.Schema
    Deprecated, for removal: This API element is subject to removal in a future version.
    This method can be used to generate schema for "traditional" integration object modeling type system items.
  • Method Details

    • generateSchema

      @Deprecated(since="2211.FP1", forRemoval=true) org.apache.olingo.odata2.api.edm.provider.Schema generateSchema(Collection<IntegrationObjectItemModel> allModelsForType)
      Deprecated, for removal: This API element is subject to removal in a future version.
      This method can be used to generate schema for "traditional" integration object modeling type system items. However, we recommend to use the alternative generate(Collection<TypeDescriptor>) because it is universal and works for both: type system items and POJOs.
      Generates a Schema for an IntegrationObjectItemModel and all of its dependencies.
      Parameters:
      allModelsForType - a model and its dependencies
      Returns:
      a schema representing those types
    • generate

      default org.apache.olingo.odata2.api.edm.provider.Schema generate(Collection<TypeDescriptor> descriptors)
      Generates a Schema for a given collection of TypeDescriptors.
      Parameters:
      descriptors - a collection of type descriptors.
      Returns:
      a schema representing those types. If not implemented, this method will return an empty instance of Schema by default.