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 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 -
Method Summary
Modifier and TypeMethodDescriptionorg.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<List<org.apache.olingo.odata2.api.edm.provider.AnnotationAttribute>,TypeAttributeDescriptor> voidsetAnnotationsGenerator(SchemaElementGenerator<List<org.apache.olingo.odata2.api.edm.provider.AnnotationAttribute>, TypeAttributeDescriptor> generator)
-
Constructor Details
-
SimplePropertyGenerator
public SimplePropertyGenerator()
-
-
Method Details
-
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<List<org.apache.olingo.odata2.api.edm.provider.AnnotationAttribute>,TypeAttributeDescriptor> getAnnotationsGenerator() -
setAnnotationsGenerator
public void setAnnotationsGenerator(SchemaElementGenerator<List<org.apache.olingo.odata2.api.edm.provider.AnnotationAttribute>, TypeAttributeDescriptor> generator)
-