Class LocalizedEntityTypeElementGenerator
java.lang.Object
de.hybris.platform.odata2services.odata.schema.entity.SingleEntityTypeElementGenerator
de.hybris.platform.odata2services.odata.schema.entity.LocalizedEntityTypeElementGenerator
- All Implemented Interfaces:
SchemaElementGenerator<Set<org.apache.olingo.odata2.api.edm.provider.EntityType>,TypeDescriptor>
Generates
EntityTypes for TypeDescriptors with localized attributes.-
Constructor Summary
ConstructorsConstructorDescriptionLocalizedEntityTypeElementGenerator(@NotNull KeyGenerator keyGenerator, @NotNull SchemaElementGenerator<List<org.apache.olingo.odata2.api.edm.provider.Property>, TypeDescriptor> propertiesGenerator) Instantiates a new localized entity type generator. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgenerateEntityTypeName(TypeDescriptor typeDescriptor) Generates name for the entity type being generated.protected booleanisApplicable(TypeDescriptor typeDescriptor) Determines whether this generator is applicable to the specified item and can generate at least a single EDMX entity type.Methods inherited from class de.hybris.platform.odata2services.odata.schema.entity.SingleEntityTypeElementGenerator
generate, generateEntityType, generateKey
-
Constructor Details
-
LocalizedEntityTypeElementGenerator
public LocalizedEntityTypeElementGenerator(@NotNull @NotNull KeyGenerator keyGenerator, @NotNull @NotNull SchemaElementGenerator<List<org.apache.olingo.odata2.api.edm.provider.Property>, TypeDescriptor> propertiesGenerator) Instantiates a new localized entity type generator.- Parameters:
keyGenerator- a localized key generatorpropertiesGenerator- property list generator
-
-
Method Details
-
isApplicable
Description copied from class:SingleEntityTypeElementGeneratorDetermines whether this generator is applicable to the specified item and can generate at least a single EDMX entity type.- Specified by:
isApplicablein classSingleEntityTypeElementGenerator- Parameters:
typeDescriptor- an item type descriptor, based on which the decision has to be made.- Returns:
true, if at least one entity type can be generated for the given item;false, otherwise.
-
generateEntityTypeName
Description copied from class:SingleEntityTypeElementGeneratorGenerates name for the entity type being generated.- Specified by:
generateEntityTypeNamein classSingleEntityTypeElementGenerator- Parameters:
typeDescriptor- an item type descriptor, for which entity type is being generated.- Returns:
- a valid EDMX entity type name.
-