Class LocalizedPropertyListElementGenerator

java.lang.Object
de.hybris.platform.odata2services.odata.schema.property.AbstractPropertyListElementGenerator
de.hybris.platform.odata2services.odata.schema.property.LocalizedPropertyListElementGenerator
All Implemented Interfaces:
SchemaElementGenerator<List<org.apache.olingo.odata2.api.edm.provider.Property>,TypeDescriptor>

public class LocalizedPropertyListElementGenerator extends AbstractPropertyListElementGenerator
Generates properties for Localized___Attributes type in the EDMX schema. That is a special type to capture values of all localized attributes in an integration object item for a given locale. For example, if an integration object item has name and description localized attributes, then the Localized___Attributes type will have these properties: language, name and description
  • Constructor Details

  • Method Details

    • generateAdditionalProperties

      public List<org.apache.olingo.odata2.api.edm.provider.Property> generateAdditionalProperties(TypeDescriptor descriptor)
      Description copied from class: AbstractPropertyListElementGenerator
      Allows subclass to have a hook to add additional properties(i.e. key or language properties)
      Specified by:
      generateAdditionalProperties in class AbstractPropertyListElementGenerator
      Parameters:
      descriptor - describes integration object item, for which simple EDM properties need to be generated.
      Returns:
      a list of additional properties if available
    • isApplicable

      protected boolean isApplicable(TypeAttributeDescriptor descriptor)
      Description copied from class: AbstractPropertyListElementGenerator
      Allows subclasses to have a hook into the decision of whether an attribute should be presented as a simple property. This class already checks whether the attribute is simple, i.e. it's a primitive and not a collection, before checking this method.
      Specified by:
      isApplicable in class AbstractPropertyListElementGenerator
      Parameters:
      descriptor - an attribute descriptor to decided about whether it should be presented as EDM property or not.
      Returns:
      true, if the attribute should be converted to a property; false, otherwise. This default implementation always returns true.