Enum Theme.Element
- java.lang.Object
-
- java.lang.Enum<Theme.Element>
-
- io.cucumber.prettyformatter.Theme.Element
-
- All Implemented Interfaces:
Serializable,Comparable<Theme.Element>
- Enclosing class:
- Theme
public static enum Theme.Element extends Enum<Theme.Element>
All style-able elements in a theme.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATTACHMENTThe output fromscenario.logandscenario.attach.DATA_TABLEThe data table, an optional argument for a step.DATA_TABLE_BORDERThe data table borders.DATA_TABLE_CONTENTThe data table contents.DOC_STRINGThe doc string, an optional argument for a step.DOC_STRING_CONTENTThe doc string contents.DOC_STRING_DELIMITERThe doc string delimiter.DOC_STRING_MEDIA_TYPEThe doc string media type.FEATUREThe feature line.FEATURE_KEYWORDThe feature keyword.FEATURE_NAMEThe feature name.LOCATIONThe location comment.PROGRESS_ICONThe progress icon.RULEThe rule line.RULE_KEYWORDThe rule keyword.RULE_NAMEThe rule name.SCENARIOThe scenario line.SCENARIO_KEYWORDThe scenario keyword.SCENARIO_NAMEThe scenario name.STATUS_ICONThe status icon.STEPThe step line.STEP_ARGUMENTA matched argument in a step.STEP_KEYWORDThe step keyword.STEP_TEXTThe step text.TAGThe tag line.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Theme.ElementvalueOf(String name)Returns the enum constant of this type with the specified name.static Theme.Element[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ATTACHMENT
public static final Theme.Element ATTACHMENT
The output fromscenario.logandscenario.attach.
-
DATA_TABLE
public static final Theme.Element DATA_TABLE
The data table, an optional argument for a step.
-
DATA_TABLE_BORDER
public static final Theme.Element DATA_TABLE_BORDER
The data table borders. I.e. the {code |} characters.Styles applied to
DATA_TABLEare also applied to this element.
-
DATA_TABLE_CONTENT
public static final Theme.Element DATA_TABLE_CONTENT
The data table contents. I.e. the individual cell.Styles applied to
DATA_TABLEare also applied to this element.
-
DOC_STRING
public static final Theme.Element DOC_STRING
The doc string, an optional argument for a step.
-
DOC_STRING_CONTENT
public static final Theme.Element DOC_STRING_CONTENT
The doc string contents.Styles applied to
DOC_STRINGare also applied to this element.
-
DOC_STRING_MEDIA_TYPE
public static final Theme.Element DOC_STRING_MEDIA_TYPE
The doc string media type. E.g.application/json.Styles applied to
DOC_STRINGare also applied to this element.
-
DOC_STRING_DELIMITER
public static final Theme.Element DOC_STRING_DELIMITER
The doc string delimiter. I.e."""".Styles applied to
DOC_STRINGare also applied to this element.
-
FEATURE
public static final Theme.Element FEATURE
The feature line.
-
FEATURE_KEYWORD
public static final Theme.Element FEATURE_KEYWORD
The feature keyword.Styles applied to
FEATUREare also applied to this element.
-
FEATURE_NAME
public static final Theme.Element FEATURE_NAME
The feature name.Styles applied to
FEATUREare also applied to this element.
-
LOCATION
public static final Theme.Element LOCATION
The location comment. E.g.# samples/undefined/undefined.feature:10.Styles applied to
FEATUREare also applied to this element.
-
PROGRESS_ICON
public static final Theme.Element PROGRESS_ICON
The progress icon.Always used in combination with a
TestStepResultStatus.
-
RULE
public static final Theme.Element RULE
The rule line.
-
RULE_KEYWORD
public static final Theme.Element RULE_KEYWORD
The rule keyword.Styles applied to
RULEare also applied to this element.
-
RULE_NAME
public static final Theme.Element RULE_NAME
The rule name.Styles applied to
RULEare also applied to this element.
-
SCENARIO
public static final Theme.Element SCENARIO
The scenario line.
-
SCENARIO_KEYWORD
public static final Theme.Element SCENARIO_KEYWORD
The scenario keyword.Styles applied to
SCENARIOare also applied to this element.
-
SCENARIO_NAME
public static final Theme.Element SCENARIO_NAME
The scenario name.Styles applied to
SCENARIOare also applied to this element.
-
STATUS_ICON
public static final Theme.Element STATUS_ICON
The status icon.Always used in combination with a
TestStepResultStatus.
-
STEP
public static final Theme.Element STEP
The step line.Always used in combination with a
TestStepResultStatus.
-
STEP_ARGUMENT
public static final Theme.Element STEP_ARGUMENT
A matched argument in a step.Styles applied to
STEPare also applied to this element.
-
STEP_KEYWORD
public static final Theme.Element STEP_KEYWORD
The step keyword.Styles applied to
STEPare also applied to this element.
-
STEP_TEXT
public static final Theme.Element STEP_TEXT
The step text.Styles applied to
STEPare also applied to this element.
-
TAG
public static final Theme.Element TAG
The tag line.
-
-
Method Detail
-
values
public static Theme.Element[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Theme.Element c : Theme.Element.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Theme.Element valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-