Class AutoCreatePropertyAnnotationGenerator
- java.lang.Object
-
- de.hybris.platform.odata2services.odata.schema.attribute.AutoCreatePropertyAnnotationGenerator
-
- All Implemented Interfaces:
PropertyAnnotationGenerator,SchemaElementGenerator<org.apache.olingo.odata2.api.edm.provider.AnnotationAttribute,TypeAttributeDescriptor>
public class AutoCreatePropertyAnnotationGenerator extends java.lang.Object implements PropertyAnnotationGenerator
Generate an annotation for EDMX property when auto create is true. example:
-
-
Constructor Summary
Constructors Constructor Description AutoCreatePropertyAnnotationGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.olingo.odata2.api.edm.provider.AnnotationAttributegenerate(TypeAttributeDescriptor descriptor)Generates the schema element whose type is defined by T.booleanisApplicable(TypeAttributeDescriptor descriptor)Determines if this annotation generator is applicable for the given property
-
-
-
Method Detail
-
isApplicable
public boolean isApplicable(TypeAttributeDescriptor descriptor)
Description copied from interface:PropertyAnnotationGeneratorDetermines if this annotation generator is applicable for the given property- Specified by:
isApplicablein interfacePropertyAnnotationGenerator- Parameters:
descriptor- the TypeAttributeDescriptor to check- Returns:
- true if applicable, otherwise false
-
generate
public org.apache.olingo.odata2.api.edm.provider.AnnotationAttribute generate(TypeAttributeDescriptor descriptor)
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,TypeAttributeDescriptor>- Parameters:
descriptor- the object that is being converted- Returns:
- R the schema element
-
-