Class DefaultSchemaGenerator
java.lang.Object
de.hybris.platform.odata2services.odata.schema.DefaultSchemaGenerator
- All Implemented Interfaces:
SchemaGenerator
A default implementation of
SchemaGenerator.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.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.voidsetAssociationListGeneratorRegistry(AssociationListGeneratorRegistry associationListGeneratorRegistry) voidsetDescriptorFactory(DescriptorFactory factory) voidvoidsetEntityTypeListElementGenerator(SchemaElementGenerator<List<org.apache.olingo.odata2.api.edm.provider.EntityType>, Collection<TypeDescriptor>> generator) voidsetEntityTypesGenerator(SchemaElementGenerator<List<org.apache.olingo.odata2.api.edm.provider.EntityType>, Collection<IntegrationObjectItemModel>> entityTypesGenerator) Deprecated, for removal: This API element is subject to removal in a future version.usesetEntityTypeListElementGeneratormethod
-
Constructor Details
-
DefaultSchemaGenerator
public DefaultSchemaGenerator()
-
-
Method Details
-
generateSchema
@Deprecated(since="2211.FP1", forRemoval=true) public 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.use the alternativegenerate(Collection)Generates aSchemafor anIntegrationObjectItemModeland all of its dependencies.- Specified by:
generateSchemain interfaceSchemaGenerator- Parameters:
allModelsForType- a model and its dependencies- Returns:
- a schema representing those types
-
generate
public org.apache.olingo.odata2.api.edm.provider.Schema generate(Collection<TypeDescriptor> descriptors) Description copied from interface:SchemaGeneratorGenerates aSchemafor a given collection ofTypeDescriptors.- Specified by:
generatein interfaceSchemaGenerator- 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.
-
setEntityTypesGenerator
@Deprecated(since="2211.FP1", forRemoval=true) public void setEntityTypesGenerator(SchemaElementGenerator<List<org.apache.olingo.odata2.api.edm.provider.EntityType>, Collection<IntegrationObjectItemModel>> entityTypesGenerator) Deprecated, for removal: This API element is subject to removal in a future version.usesetEntityTypeListElementGeneratormethod -
setEntityTypeListElementGenerator
public void setEntityTypeListElementGenerator(SchemaElementGenerator<List<org.apache.olingo.odata2.api.edm.provider.EntityType>, Collection<TypeDescriptor>> generator) -
setAssociationListGeneratorRegistry
public void setAssociationListGeneratorRegistry(AssociationListGeneratorRegistry associationListGeneratorRegistry) -
setEntityContainerGenerator
-
setDescriptorFactory
-
generate(Collection)