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 java.lang.ObjectDefines 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 Summary
Fields Modifier and Type Field Description static java.lang.StringAFTER_EACHCode marked with the 'afterEach' marker will be executed for each following value line after processing the line.static java.lang.StringAFTER_EACH_ENDMarks the end of aafterEachscope.static java.lang.String[]ALLCollection of all provided code markers.
ATTENTION: Always put closing before opening marker !!!static java.lang.StringBEFORE_EACHCode marked with the 'before each' marker will be executed for each following value line after parsing the line but before processing the line.static java.lang.StringBEFORE_EACH_ENDMarks the end of abefore eachscope.static java.lang.StringEND_IFMarks the end of aifscope.static java.lang.StringFOR_EACHDeprecated.since ages - useAFTER_EACHinsteadstatic java.lang.StringFOR_EACH_ENDDeprecated.since ages - useAFTER_EACH_ENDinsteadstatic java.lang.StringIFBy using the 'if' marker you can define conditional statements within ImpEx scripts.
-
Constructor Summary
Constructors Constructor Description CodeMarkers()
-
-
-
Field Detail
-
BEFORE_EACH
public static final java.lang.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 thebefore each endmarker. A boxing of these markers is not possible. The code block of the last defined marker of this kind will be used.- See Also:
- Constant Field Values
-
BEFORE_EACH_END
public static final java.lang.String BEFORE_EACH_END
Marks the end of abefore eachscope.- See Also:
- Constant Field Values
-
FOR_EACH
@Deprecated(since="ages", forRemoval=false) public static final java.lang.String FOR_EACHDeprecated.since ages - useAFTER_EACHinsteadCode 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 thefor each endmarker. The code block of the last defined marker of this kind will be used.- See Also:
- Constant Field Values
-
FOR_EACH_END
@Deprecated(since="ages", forRemoval=false) public static final java.lang.String FOR_EACH_ENDDeprecated.since ages - useAFTER_EACH_ENDinsteadMarks the end of afor eachscope.- See Also:
- Constant Field Values
-
AFTER_EACH
public static final java.lang.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 theafterEach:endmarker. The code block of the last defined marker of this kind will be used.- See Also:
- Constant Field Values
-
AFTER_EACH_END
public static final java.lang.String AFTER_EACH_END
Marks the end of aafterEachscope.- See Also:
- Constant Field Values
-
IF
public static final java.lang.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 nextend ifskipped or not (also header and value lines will be skipped). The marker can be boxed as in java language.- See Also:
- Constant Field Values
-
END_IF
public static final java.lang.String END_IF
Marks the end of aifscope.- See Also:
- Constant Field Values
-
ALL
public static final java.lang.String[] ALL
Collection of all provided code markers.
ATTENTION: Always put closing before opening marker !!!
-
-