Class SimplePropertyGenerator
- java.lang.Object
-
- de.hybris.platform.odata2services.odata.schema.property.SimplePropertyGenerator
-
- All Implemented Interfaces:
SchemaElementGenerator<org.apache.olingo.odata2.api.edm.provider.SimpleProperty,TypeAttributeDescriptor>
public class SimplePropertyGenerator extends java.lang.Object implements SchemaElementGenerator<org.apache.olingo.odata2.api.edm.provider.SimpleProperty,TypeAttributeDescriptor>
A generator for<Property Name=".." Type="..."/>elements in the EDMX.
-
-
Constructor Summary
Constructors Constructor Description SimplePropertyGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.olingo.odata2.api.edm.provider.SimplePropertygenerate(@NotNull TypeAttributeDescriptor descriptor)Generates EDM Property based on the attribute description in the Integration Object model.protected SchemaElementGenerator<java.util.List<org.apache.olingo.odata2.api.edm.provider.AnnotationAttribute>,TypeAttributeDescriptor>getAnnotationsGenerator()voidsetAnnotationsGenerator(SchemaElementGenerator<java.util.List<org.apache.olingo.odata2.api.edm.provider.AnnotationAttribute>,TypeAttributeDescriptor> generator)
-
-
-
Method Detail
-
generate
public org.apache.olingo.odata2.api.edm.provider.SimpleProperty generate(@NotNull @NotNull TypeAttributeDescriptor descriptor)Generates EDM Property based on the attribute description in the Integration Object model.- Specified by:
generatein interfaceSchemaElementGenerator<org.apache.olingo.odata2.api.edm.provider.SimpleProperty,TypeAttributeDescriptor>- Parameters:
descriptor- descriptor of the attribute in an Integration Object. Attribute descriptor cannot benull.- Returns:
- EDM property corresponding to the specified integration object item attribute.
-
getAnnotationsGenerator
protected SchemaElementGenerator<java.util.List<org.apache.olingo.odata2.api.edm.provider.AnnotationAttribute>,TypeAttributeDescriptor> getAnnotationsGenerator()
-
setAnnotationsGenerator
public void setAnnotationsGenerator(SchemaElementGenerator<java.util.List<org.apache.olingo.odata2.api.edm.provider.AnnotationAttribute>,TypeAttributeDescriptor> generator)
-
-