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 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:
      generate in interface SchemaElementGenerator<org.apache.olingo.odata2.api.edm.provider.SimpleProperty,TypeAttributeDescriptor>
      Parameters:
      descriptor - descriptor of the attribute in an Integration Object. Attribute descriptor cannot be null.
      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)