Class PropertyMapping.DefaultOperations

java.lang.Object
com.broadleafcommerce.metadata.dsl.core.extension.mappings.PropertyMapping.DefaultOperations
Enclosing class:
PropertyMapping

public static final class PropertyMapping.DefaultOperations extends Object
  • Field Details

    • MERGE

      public static final String MERGE
      Mapping is merged at the destination, for example:
       // { listA: ['A', 'B', 'C'], listB: ['1', '2', '3'] } ==> { listA: ['A', 'B', 'C', '1', '2',
       // '3']
       // }
       PropertyMapping.map("listB", "listA", Operation.MERGE);
       
      See Also:
    • REPLACE

      public static final String REPLACE
      Mapping is replaced at the destination, for example:
       // { listA: ['A', 'B', 'C'], listB: ['1', '2', '3'] } ==> { listA: ['1', '2', '3'] }
       PropertyMapping.map("listB", "listA", Operation.REPLACE);
       
      See Also: