Class LocalizedEntityTypeGenerator
- java.lang.Object
-
- de.hybris.platform.odata2services.odata.schema.entity.SingleEntityTypeGenerator
-
- de.hybris.platform.odata2services.odata.schema.entity.LocalizedEntityTypeGenerator
-
- All Implemented Interfaces:
EntityTypeGenerator,SchemaElementGenerator<java.util.List<org.apache.olingo.odata2.api.edm.provider.EntityType>,IntegrationObjectItemModel>
public class LocalizedEntityTypeGenerator extends SingleEntityTypeGenerator
-
-
Constructor Summary
Constructors Constructor Description LocalizedEntityTypeGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TypeAttributeDescriptorasDescriptor(IntegrationObjectItemAttributeModel itemAttributeModel)protected java.lang.StringgenerateEntityTypeName(IntegrationObjectItemModel item)Generates name for the entity type being generated.protected booleanisApplicable(IntegrationObjectItemModel item)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.SingleEntityTypeGenerator
generate, generateEntityType, generateKey, getKeyGenerator, getPropertiesGenerator, setKeyGenerator, setPropertiesGenerator
-
-
-
-
Method Detail
-
isApplicable
protected boolean isApplicable(IntegrationObjectItemModel item)
Description copied from class:SingleEntityTypeGeneratorDetermines whether this generator is applicable to the specified item and can generate at least a single EDMX entity type.- Specified by:
isApplicablein classSingleEntityTypeGenerator- Parameters:
item- an item, 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
protected java.lang.String generateEntityTypeName(IntegrationObjectItemModel item)
Description copied from class:SingleEntityTypeGeneratorGenerates name for the entity type being generated.- Specified by:
generateEntityTypeNamein classSingleEntityTypeGenerator- Parameters:
item- item, for which entity type is being generated.- Returns:
- a valid EDMX entity type name.
-
asDescriptor
protected TypeAttributeDescriptor asDescriptor(IntegrationObjectItemAttributeModel itemAttributeModel)
-
-