Class AliasAnnotationGenerator
java.lang.Object
de.hybris.platform.odata2services.odata.schema.attribute.AliasAnnotationGenerator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.olingo.odata2.api.edm.provider.AnnotationAttributegenerate(IntegrationObjectItemModel itemModel) Deprecated, for removal: This API element is subject to removal in a future version.org.apache.olingo.odata2.api.edm.provider.AnnotationAttributegenerate(TypeDescriptor descriptor) GeneratesAnnotationAttributefor the givenTypeDescriptorusing injectedIntegrationKeyMetadataGenerator.voidsetIntegrationKeyMetadataGenerator(IntegrationKeyMetadataGenerator integrationKeyMetadataGenerator) Sets the given nullable IntegrationKeyMetadataGenerator.
-
Constructor Details
-
AliasAnnotationGenerator
public AliasAnnotationGenerator()
-
-
Method Details
-
generate
@Deprecated(since="2211.FP1", forRemoval=true) public org.apache.olingo.odata2.api.edm.provider.AnnotationAttribute generate(IntegrationObjectItemModel itemModel) Deprecated, for removal: This API element is subject to removal in a future version.usegenerate(TypeDescriptor)instead.GeneratesAnnotationAttributefor the givenIntegrationObjectItemModelusing injectedIntegrationKeyMetadataGenerator.- Parameters:
itemModel- item model to generate annotation attribute for.- Returns:
- the annotation attribute object generated from the given item model. Returns
nullif IntegrationKeyMetadataGenerator isnullor when given metadata generator generates empty ornullmetadata string. SeesetIntegrationKeyMetadataGenerator(IntegrationKeyMetadataGenerator).
-
generate
@Nullable public org.apache.olingo.odata2.api.edm.provider.AnnotationAttribute generate(TypeDescriptor descriptor) GeneratesAnnotationAttributefor the givenTypeDescriptorusing injectedIntegrationKeyMetadataGenerator.- Parameters:
descriptor- type descriptor for the item to generate annotation attribute for.- Returns:
- the annotation attribute object generated from the given type descriptor. Returns
nullif IntegrationKeyMetadataGenerator isnullor when given metadata generator generates empty ornullmetadata string. SeesetIntegrationKeyMetadataGenerator(IntegrationKeyMetadataGenerator).
-
setIntegrationKeyMetadataGenerator
public void setIntegrationKeyMetadataGenerator(@Nullable IntegrationKeyMetadataGenerator integrationKeyMetadataGenerator) Sets the given nullable IntegrationKeyMetadataGenerator. If the generator is not injected or isnull, thegenerate(TypeDescriptor)cannot generate a valid alias and will returnnull.- Parameters:
integrationKeyMetadataGenerator- generator used by generate methods.
-
generate(TypeDescriptor)instead.