Class LocalizedAttributeAssociationListGenerator
- java.lang.Object
-
- de.hybris.platform.odata2services.odata.schema.association.LocalizedAttributeAssociationListGenerator
-
- All Implemented Interfaces:
SchemaElementGenerator<java.util.List<org.apache.olingo.odata2.api.edm.provider.Association>,java.util.Collection<IntegrationObjectItemModel>>
public class LocalizedAttributeAssociationListGenerator extends java.lang.Object implements SchemaElementGenerator<java.util.List<org.apache.olingo.odata2.api.edm.provider.Association>,java.util.Collection<IntegrationObjectItemModel>>
-
-
Constructor Summary
Constructors Constructor Description LocalizedAttributeAssociationListGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Optional<TypeAttributeDescriptor>findFirstLocalizedAttribute(java.util.Collection<IntegrationObjectItemAttributeModel> attributeModels)Finds the first localized attribute from theCollectionof attributesjava.util.List<org.apache.olingo.odata2.api.edm.provider.Association>generate(java.util.Collection<IntegrationObjectItemModel> itemModels)Generates the schema element whose type is defined by T.
-
-
-
Method Detail
-
generate
public java.util.List<org.apache.olingo.odata2.api.edm.provider.Association> generate(java.util.Collection<IntegrationObjectItemModel> itemModels)
Description copied from interface:SchemaElementGeneratorGenerates the schema element whose type is defined by T.- Specified by:
generatein interfaceSchemaElementGenerator<java.util.List<org.apache.olingo.odata2.api.edm.provider.Association>,java.util.Collection<IntegrationObjectItemModel>>- Parameters:
itemModels- the object that is being converted- Returns:
- R the schema element
-
findFirstLocalizedAttribute
protected java.util.Optional<TypeAttributeDescriptor> findFirstLocalizedAttribute(java.util.Collection<IntegrationObjectItemAttributeModel> attributeModels)
Finds the first localized attribute from theCollectionof attributes- Parameters:
attributeModels- Collection of attributes- Returns:
- An
Optionalcontaining theTypeAttributeDescriptorif found, otherwise empty
-
-