Class AutoCreateAnnotationGenerator
- java.lang.Object
-
- de.hybris.platform.odata2services.odata.schema.attribute.AutoCreateAnnotationGenerator
-
- All Implemented Interfaces:
AnnotationGenerator<IntegrationObjectItemAttributeModel>,SchemaElementGenerator<org.apache.olingo.odata2.api.edm.provider.AnnotationAttribute,IntegrationObjectItemAttributeModel>
@Deprecated(since="1905.09-CEP", forRemoval=true) public class AutoCreateAnnotationGenerator extends java.lang.Object implements AnnotationGenerator<IntegrationObjectItemAttributeModel>Deprecated, for removal: This API element is subject to removal in a future version.UseAutoCreatePropertyAnnotationGeneratorinsteadA generator responsible for includings:IsAutoCreateannotation on thePropertyandNavigationPropertyEDMX elements.
-
-
Constructor Summary
Constructors Constructor Description AutoCreateAnnotationGenerator()Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.apache.olingo.odata2.api.edm.provider.AnnotationAttributegenerate(IntegrationObjectItemAttributeModel attributeModel)Deprecated, for removal: This API element is subject to removal in a future version.Generates the schema element whose type is defined by T.booleanisApplicable(IntegrationObjectItemAttributeModel attributeModel)Deprecated, for removal: This API element is subject to removal in a future version.Determines if this annotation generator is applicable for the given attribute or attributesprotected TypeAttributeDescriptortoDescriptor(IntegrationObjectItemAttributeModel model)Deprecated, for removal: This API element is subject to removal in a future version.Converts model to the attribute descriptor.
-
-
-
Method Detail
-
isApplicable
public boolean isApplicable(IntegrationObjectItemAttributeModel attributeModel)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:AnnotationGeneratorDetermines if this annotation generator is applicable for the given attribute or attributes- Specified by:
isApplicablein interfaceAnnotationGenerator<IntegrationObjectItemAttributeModel>- Parameters:
attributeModel- the IntegrationObjectItemAttributeModel OR IntegrationObjectItemModel we are verifying on- Returns:
- true if applicable, otherwise false
-
generate
public org.apache.olingo.odata2.api.edm.provider.AnnotationAttribute generate(IntegrationObjectItemAttributeModel attributeModel)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SchemaElementGeneratorGenerates the schema element whose type is defined by T.- Specified by:
generatein interfaceSchemaElementGenerator<org.apache.olingo.odata2.api.edm.provider.AnnotationAttribute,IntegrationObjectItemAttributeModel>- Parameters:
attributeModel- the object that is being converted- Returns:
- R the schema element
-
toDescriptor
protected TypeAttributeDescriptor toDescriptor(IntegrationObjectItemAttributeModel model)
Deprecated, for removal: This API element is subject to removal in a future version.Converts model to the attribute descriptor.- Parameters:
model- a model to convert- Returns:
- an instance created by calling
DefaultTypeAttributeDescriptor.create(model)
-
-