public abstract class YamlSerializer extends Object implements LiquibaseSerializer
Modifier and Type | Class and Description |
---|---|
static class |
YamlSerializer.LiquibaseRepresenter |
static class |
YamlSerializer.LiquibaseResolver |
Modifier and Type | Field and Description |
---|---|
protected org.yaml.snakeyaml.Yaml |
yaml |
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
Constructor and Description |
---|
YamlSerializer() |
Modifier and Type | Method and Description |
---|---|
protected Object |
convertToMap(List valueAsList,
int index) |
protected org.yaml.snakeyaml.DumperOptions |
createDumperOptions() |
protected org.yaml.snakeyaml.Yaml |
createYaml() |
protected Comparator<String> |
getComparator(LiquibaseSerializable object) |
protected YamlSerializer.LiquibaseRepresenter |
getLiquibaseRepresenter(org.yaml.snakeyaml.DumperOptions options) |
protected YamlSerializer.LiquibaseResolver |
getLiquibaseResolver() |
protected Set<String> |
getSerializableObjectFields(LiquibaseSerializable object) |
String[] |
getValidFileExtensions() |
protected boolean |
isJson() |
static String |
removeClassTypeMarksFromSerializedJson(String json) |
String |
serialize(LiquibaseSerializable object,
boolean pretty) |
protected Object |
toMap(LiquibaseSerializable object) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPriority
protected org.yaml.snakeyaml.DumperOptions createDumperOptions()
protected org.yaml.snakeyaml.Yaml createYaml()
protected YamlSerializer.LiquibaseRepresenter getLiquibaseRepresenter(org.yaml.snakeyaml.DumperOptions options)
protected YamlSerializer.LiquibaseResolver getLiquibaseResolver()
protected boolean isJson()
public String[] getValidFileExtensions()
getValidFileExtensions
in interface LiquibaseSerializer
public String serialize(LiquibaseSerializable object, boolean pretty)
serialize
in interface LiquibaseSerializer
protected Set<String> getSerializableObjectFields(LiquibaseSerializable object)
protected Object toMap(LiquibaseSerializable object)
protected Comparator<String> getComparator(LiquibaseSerializable object)
Copyright © 2023 Liquibase.org. All rights reserved.