Class DefaultEntityContainerGenerator
java.lang.Object
de.hybris.platform.odata2services.odata.schema.entity.DefaultEntityContainerGenerator
- All Implemented Interfaces:
EntityContainerGenerator
Default implementation of the container generator, which uses generated entity types and associations for the container
content.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<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) 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)
-
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: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)
-