Module jonix

Interface FieldRowSupplier<P>

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface FieldRowSupplier<P>
an interface that corresponds a single logical field within an ONIX Product (e.g. ISBN, Price, etc.), and implements a tabulation of that field - i.e. a string-array representation (as opposed to a tree-structure of varied-type values) capturing the values (e.g. PriceType, PriceAmount and CurrencyCode) of a single occurrence of the field represented. In case there are several occurrences, they're accounted for at a higher level abstractions such as FieldTabulator.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    setRowFromProduct(List<String> row, P product)
    takes an ONIX Product object and flattens it into a list of values
  • Method Details

    • setRowFromProduct

      boolean setRowFromProduct(List<String> row, P product)
      takes an ONIX Product object and flattens it into a list of values
      Parameters:
      row - null-initialized List of Strings, which is expected to be fully populated by this function. The list's size gives a clue as to how much information is expected.
      product - the ONIX Product object from which the values should be extracted.
      Returns:
      true if the field was extracted successfully, false otherwise