Class ImpExConstants.Syntax.CodeMarkers

java.lang.Object
de.hybris.platform.impex.constants.ImpExConstants.Syntax.CodeMarkers
Enclosing class:
ImpExConstants.Syntax

public static final class ImpExConstants.Syntax.CodeMarkers extends Object
Defines the constant strings for all code markers allowed in script and used by ImpEx. Code markers are directives which mark special code blocks. These code blocks will not be executed in as normal code blocks.
  • Field Details

    • BEFORE_EACH

      public static final String BEFORE_EACH
      Code marked with the 'before each' marker will be executed for each following value line after parsing the line but before processing the line. So it is called before each, because the code will be executed before the processing of each line. The scope of the marker ends automatically at the next header descriptor or can be set manually by using the before each end marker. A boxing of these markers is not possible. The code block of the last defined marker of this kind will be used.
      See Also:
    • BEFORE_EACH_END

      public static final String BEFORE_EACH_END
      Marks the end of a before each scope.
      See Also:
    • FOR_EACH

      @Deprecated(since="ages", forRemoval=false) public static final String FOR_EACH
      Deprecated.
      since ages - useAFTER_EACH instead
      Code marked with the 'for each' marker will be executed for each following value line after processing the line. The scope of the marker ends automatically at the next header descriptor or can be set manually by using the for each end marker. The code block of the last defined marker of this kind will be used.
      See Also:
    • FOR_EACH_END

      @Deprecated(since="ages", forRemoval=false) public static final String FOR_EACH_END
      Deprecated.
      since ages - useAFTER_EACH_END instead
      Marks the end of a for each scope.
      See Also:
    • AFTER_EACH

      public static final String AFTER_EACH
      Code marked with the 'afterEach' marker will be executed for each following value line after processing the line. The scope of the marker ends automatically at the next header descriptor or can be set manually by using the afterEach:end marker. The code block of the last defined marker of this kind will be used.
      See Also:
    • AFTER_EACH_END

      public static final String AFTER_EACH_END
      Marks the end of a afterEach scope.
      See Also:
    • IF

      public static final String IF
      By using the 'if' marker you can define conditional statements within ImpEx scripts. The condition code after an 'if' marker will be evaluated and in condition on the result the script part until next end if skipped or not (also header and value lines will be skipped). The marker can be boxed as in java language.
      See Also:
    • END_IF

      public static final String END_IF
      Marks the end of a if scope.
      See Also:
    • ALL

      public static final String[] ALL
      Collection of all provided code markers.
      ATTENTION: Always put closing before opening marker !!!
  • Constructor Details

    • CodeMarkers

      public CodeMarkers()