Class DefaultEntityContainerGenerator

java.lang.Object
de.hybris.platform.odata2services.odata.schema.entity.DefaultEntityContainerGenerator
All Implemented Interfaces:
EntityContainerGenerator

public class DefaultEntityContainerGenerator extends Object implements EntityContainerGenerator
Default implementation of the container generator, which uses generated entity types and associations for the container content.
  • Constructor Details

    • DefaultEntityContainerGenerator

      public DefaultEntityContainerGenerator()
  • Method Details

    • generate

      public List<org.apache.olingo.odata2.api.edm.provider.EntityContainer> generate(Collection<org.apache.olingo.odata2.api.edm.provider.EntityType> entityTypes, Collection<org.apache.olingo.odata2.api.edm.provider.Association> associations)
      Description copied from interface: EntityContainerGenerator
      Generates the entity container element.
      Specified by:
      generate in interface EntityContainerGenerator
      Parameters:
      entityTypes - all entity types included in the schema.
      associations - all associations between the entity types included in the schema.
      Returns:
      the generated entity containers or an empty list, if there are no entity types and associations to include in the schema.
    • setEntitySetGenerator

      public void setEntitySetGenerator(SchemaElementGenerator<org.apache.olingo.odata2.api.edm.provider.EntitySet,org.apache.olingo.odata2.api.edm.provider.EntityType> generator)
    • setAssociationSetGenerator

      public void setAssociationSetGenerator(SchemaElementGenerator<org.apache.olingo.odata2.api.edm.provider.AssociationSet,org.apache.olingo.odata2.api.edm.provider.Association> generator)