Class Iso4217Enricher

java.lang.Object
tools.pantheum.gaia.gs1.interpretation.enricher.Iso4217Enricher
All Implemented Interfaces:
InterpretationEnricherInterface

public final class Iso4217Enricher extends Object implements InterpretationEnricherInterface
Enriches a 3-digit ISO 4217 numeric currency code with the numeric code itself, the alpha code and the currency name as three separate interpretations.

Used by monetary AIs in the 391n and 393n ranges where component 0 carries the ISO 4217 numeric currency code (N3, iso4217).

Produced interpretations

  • CURRENCY_CODE — ISO 4217 numeric code, e.g. "036"
  • CURRENCY_ALPHA — ISO 4217 alpha code, e.g. "AUD"
  • CURRENCY_NAME — currency name, e.g. "Australian Dollar"
If the code is not found in the ISO 4217 dataset, an empty list is returned.
  • Constructor Details

  • Method Details

    • enrich

      public List<GS1AIInterpretation> enrich(String baseValue, AiDefinition aiDefinition, GS1AIObjectElement element)
      Description copied from interface: InterpretationEnricherInterface
      Produces additional interpretations from baseValue.
      Specified by:
      enrich in interface InterpretationEnricherInterface
      Parameters:
      baseValue - the extracted segment value (never null or empty)
      aiDefinition - the full AI definition for the element being interpreted
      element - the parent element, providing access to all component values and any interpretations already added in this pass
      Returns:
      additional interpretations to append; never null