Class ODataCollectionValueConverter

All Implemented Interfaces:
ValueConverter

public class ODataCollectionValueConverter extends CollectionValueConverter
A converter that handles "classic", i.e. non-localized attribute, Collection value.
  • Constructor Details

  • Method Details

    • isApplicable

      public boolean isApplicable(ConversionParameters parameters)
      Description copied from interface: ValueConverter
      Deduce 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; false otherwise.
    • getAttributeValue

      protected Collection<?> getAttributeValue(Object attrValue)
      Description copied from class: CollectionValueConverter
      Presents attribute value, that is conceptually a collection but may not be presented so in the ODataEntry, as a Collection
      Specified by:
      getAttributeValue in class CollectionValueConverter
      Parameters:
      attrValue - a value that represents a collection of elements but may not implement one of the Java Collection interfaces.
      Returns:
      same value presented as a Java Collection