Package liquibase.serializer.core.yaml
Class YamlSerializer
java.lang.Object
liquibase.serializer.core.yaml.YamlSerializer
- All Implemented Interfaces:
LiquibaseSerializer
,PrioritizedService
- Direct Known Subclasses:
YamlChangeLogSerializer
,YamlSnapshotSerializer
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Fields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
convertToMap
(List valueAsList, int index) protected org.yaml.snakeyaml.DumperOptions
protected org.yaml.snakeyaml.Yaml
protected Comparator<String>
getComparator
(LiquibaseSerializable object) protected YamlSerializer.LiquibaseRepresenter
getLiquibaseRepresenter
(org.yaml.snakeyaml.DumperOptions options) protected YamlSerializer.LiquibaseResolver
String[]
protected boolean
isJson()
static String
serialize
(LiquibaseSerializable object, boolean pretty) protected Object
toMap
(LiquibaseSerializable object) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface liquibase.servicelocator.PrioritizedService
getPriority
-
Field Details
-
yaml
protected org.yaml.snakeyaml.Yaml yaml
-
-
Constructor Details
-
YamlSerializer
public YamlSerializer()
-
-
Method Details
-
createDumperOptions
protected org.yaml.snakeyaml.DumperOptions createDumperOptions() -
createYaml
protected org.yaml.snakeyaml.Yaml createYaml() -
getLiquibaseRepresenter
protected YamlSerializer.LiquibaseRepresenter getLiquibaseRepresenter(org.yaml.snakeyaml.DumperOptions options) -
getLiquibaseResolver
-
isJson
protected boolean isJson() -
getValidFileExtensions
- Specified by:
getValidFileExtensions
in interfaceLiquibaseSerializer
-
serialize
- Specified by:
serialize
in interfaceLiquibaseSerializer
-
getSerializableObjectFields
-
toMap
-
convertToMap
-
getComparator
-
removeClassTypeMarksFromSerializedJson
-