Class DefaultEntityContainerGenerator
- java.lang.Object
-
- de.hybris.platform.odata2services.odata.schema.entity.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.
-
-
Constructor Summary
Constructors Constructor Description DefaultEntityContainerGenerator()
-
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.voidsetAssociationSetGenerator(SchemaElementGenerator<org.apache.olingo.odata2.api.edm.provider.AssociationSet,org.apache.olingo.odata2.api.edm.provider.Association> generator)voidsetEntitySetGenerator(SchemaElementGenerator<org.apache.olingo.odata2.api.edm.provider.EntitySet,org.apache.olingo.odata2.api.edm.provider.EntityType> generator)
-
-
-
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:EntityContainerGeneratorGenerates the entity container element.- Specified by:
generatein interfaceEntityContainerGenerator- 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)
-
-