java.lang.Object
io.github.astrapi69.yaml.factory.YAMLMapperFactory
The factory class
YAMLMapperFactory
for creating YAMLMapper
objects-
Method Summary
Modifier and TypeMethodDescriptionstatic com.fasterxml.jackson.dataformat.yaml.YAMLMapper
Factory method for create a newYAMLMapper
static com.fasterxml.jackson.dataformat.yaml.YAMLMapper
newYAMLMapper
(boolean newMapper) Factory method for create a newYAMLMapper
.static com.fasterxml.jackson.dataformat.yaml.YAMLMapper
newYAMLMapper
(com.fasterxml.jackson.dataformat.yaml.YAMLFactory yamlFactory) Factory method for create a newYAMLMapper
static com.fasterxml.jackson.dataformat.yaml.YAMLMapper
newYAMLMapper
(com.fasterxml.jackson.dataformat.yaml.YAMLMapper yamlMapper) Factory method for create a newYAMLMapper
-
Method Details
-
newYAMLMapper
public static com.fasterxml.jackson.dataformat.yaml.YAMLMapper newYAMLMapper()Factory method for create a newYAMLMapper
- Returns:
- the new
YAMLMapper
-
newYAMLMapper
public static com.fasterxml.jackson.dataformat.yaml.YAMLMapper newYAMLMapper(boolean newMapper) Factory method for create a newYAMLMapper
. If the given flag is true a newYAMLMapper
will be created otherwise the defaultYAMLMapper
will be taken.- Parameters:
newMapper
- flag that indicates if a newYAMLMapper
should be created, if true a newYAMLMapper
will be created otherwise the defaultYAMLMapper
from this class will be returned.- Returns:
- the new
YAMLMapper
-
newYAMLMapper
public static com.fasterxml.jackson.dataformat.yaml.YAMLMapper newYAMLMapper(com.fasterxml.jackson.dataformat.yaml.YAMLFactory yamlFactory) Factory method for create a newYAMLMapper
- Parameters:
yamlFactory
- theYAMLFactory
object- Returns:
- the new
YAMLMapper
-
newYAMLMapper
public static com.fasterxml.jackson.dataformat.yaml.YAMLMapper newYAMLMapper(com.fasterxml.jackson.dataformat.yaml.YAMLMapper yamlMapper) Factory method for create a newYAMLMapper
- Parameters:
yamlMapper
- theYAMLMapper
object- Returns:
- the new
YAMLMapper
-