Interface SchemaGenerator
- All Known Implementing Classes:
DefaultSchemaGenerator
public interface SchemaGenerator
-
Method Summary
Modifier and TypeMethodDescriptiondefault org.apache.olingo.odata2.api.edm.provider.Schemagenerate(Collection<TypeDescriptor> descriptors) Generates aSchemafor a given collection ofTypeDescriptors.org.apache.olingo.odata2.api.edm.provider.SchemagenerateSchema(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.
-
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 alternativegenerate(Collection<TypeDescriptor>)because it is universal and works for both: type system items and POJOs.Generates aSchemafor anIntegrationObjectItemModeland 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 aSchemafor a given collection ofTypeDescriptors.- Parameters:
descriptors- a collection of type descriptors.- Returns:
- a schema representing those types. If not implemented, this method will return an empty instance of
Schemaby default.
-