public enum MergeRule extends Enum<MergeRule>
| Enum Constant and Description |
|---|
MAPPING_AT_SECTION
Represents a situation where block at a certain route in:
document is a mapping
defaults is a section
This situation is, during merging, also referred to as mapping at section.
|
MAPPINGS
Represents a situation where block at a certain route is a mapping in both the document and defaults.
|
SECTION_AT_MAPPING
Represents a situation where block at a certain route in:
document is a section
defaults is a mapping
This situation is, during merging, also referred to as section at mapping.
|
| Modifier and Type | Method and Description |
|---|---|
static MergeRule |
getFor(boolean documentBlockIsSection,
boolean defaultBlockIsSection)
Returns merge rule representing the given information.
|
static MergeRule |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MergeRule[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MergeRule SECTION_AT_MAPPING
public static final MergeRule MAPPING_AT_SECTION
public static final MergeRule MAPPINGS
This situation is, during merging, also referred to as mapping at mapping.
public static MergeRule[] values()
for (MergeRule c : MergeRule.values()) System.out.println(c);
public static MergeRule valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static MergeRule getFor(boolean documentBlockIsSection, boolean defaultBlockIsSection)
documentBlockIsSection - if the document block is a sectiondefaultBlockIsSection - if the default block is a sectionCopyright © 2022. All rights reserved.