Class DefaultEntityContainerGenerator

  • All Implemented Interfaces:
    EntityContainerGenerator

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<org.apache.olingo.odata2.api.edm.provider.EntityContainer> generate​(java.util.Collection<org.apache.olingo.odata2.api.edm.provider.EntityType> entityTypes, java.util.Collection<org.apache.olingo.odata2.api.edm.provider.Association> associations)
      Generates the entity container element.
      void setAssociationSetGenerator​(SchemaElementGenerator<org.apache.olingo.odata2.api.edm.provider.AssociationSet,​org.apache.olingo.odata2.api.edm.provider.Association> generator)  
      void setEntitySetGenerator​(SchemaElementGenerator<org.apache.olingo.odata2.api.edm.provider.EntitySet,​org.apache.olingo.odata2.api.edm.provider.EntityType> generator)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultEntityContainerGenerator

        public DefaultEntityContainerGenerator()
    • Method Detail

      • generate

        public java.util.List<org.apache.olingo.odata2.api.edm.provider.EntityContainer> generate​(java.util.Collection<org.apache.olingo.odata2.api.edm.provider.EntityType> entityTypes,
                                                                                                  java.util.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)