MapType

  • Like in Java, MapType is a also a collection of key/value pairs.
  • For each key (referred to as argument), there is a corresponding value (referred to as return type).
Map

A very common use of MapTypes is localized values – values that may differ in every language available in the system, like product descriptions in German, English and French.

Syntax

<maptype code="localized:java.lang.String" argumenttype="Language"
         returntype="java.lang.String"
         autocreate="true"
         generate="false"/>

Map in JavaMapType in SAP Commerce Cloud
Keyargumenttype
Valuereturntype