Class ODataFeedValueConverter
- java.lang.Object
-
- de.hybris.platform.odata2services.converter.AbstractValueConverter
-
- de.hybris.platform.odata2services.converter.CollectionValueConverter
-
- de.hybris.platform.odata2services.converter.ODataFeedValueConverter
-
- All Implemented Interfaces:
ValueConverter
public class ODataFeedValueConverter extends CollectionValueConverter
A converter ofODataFeedvalue to aCollection.
-
-
Constructor Summary
Constructors Constructor Description ODataFeedValueConverter(ODataEntryToIntegrationItemConverter entryConverter, PayloadAttributeValueConverter valueConverter)A constructor injecting dependencies for reuse.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Collection<org.apache.olingo.odata2.api.ep.entry.ODataEntry>getAttributeValue(java.lang.Object value)Presents attribute value, that is conceptually a collection but may not be presented so in the ODataEntry, as aCollectionbooleanisApplicable(ConversionParameters parameters)Deduce based on the conversion context whether this converter can handle the attribute value or not.-
Methods inherited from class de.hybris.platform.odata2services.converter.CollectionValueConverter
convert, handleCollection, handleLocalizedAttributes
-
Methods inherited from class de.hybris.platform.odata2services.converter.AbstractValueConverter
toIntegrationItem, toValue
-
-
-
-
Constructor Detail
-
ODataFeedValueConverter
public ODataFeedValueConverter(ODataEntryToIntegrationItemConverter entryConverter, PayloadAttributeValueConverter valueConverter)
A constructor injecting dependencies for reuse.- Parameters:
entryConverter- an instance ofODataEntryToIntegrationItemConverterto use.valueConverter- an instance ofPayloadAttributeValueConverterto use.
-
-
Method Detail
-
isApplicable
public boolean isApplicable(ConversionParameters parameters)
Description copied from interface:ValueConverterDeduce based on the conversion context whether this converter can handle the attribute value or not.- Parameters:
parameters- conversion parameters carrying the context for the value conversion.- Returns:
true, if this converter is applicable to the provided conversion parameters and can handle the attribute value conversion;falseotherwise.
-
getAttributeValue
protected java.util.Collection<org.apache.olingo.odata2.api.ep.entry.ODataEntry> getAttributeValue(java.lang.Object value)
Description copied from class:CollectionValueConverterPresents attribute value, that is conceptually a collection but may not be presented so in the ODataEntry, as aCollection- Specified by:
getAttributeValuein classCollectionValueConverter- Parameters:
value- a value that represents a collection of elements but may not implement one of the JavaCollectioninterfaces.- Returns:
- same value presented as a Java
Collection
-
-