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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected org.yaml.snakeyaml.YamlFields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectconvertToMap(List valueAsList, int index) protected org.yaml.snakeyaml.DumperOptionsprotected org.yaml.snakeyaml.Yamlprotected Comparator<String>getComparator(LiquibaseSerializable object) protected YamlSerializer.LiquibaseRepresentergetLiquibaseRepresenter(org.yaml.snakeyaml.DumperOptions options) protected YamlSerializer.LiquibaseResolverString[]protected booleanisJson()static Stringserialize(LiquibaseSerializable object, boolean pretty) protected ObjecttoMap(LiquibaseSerializable object) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface liquibase.servicelocator.PrioritizedService
getPriority
-
Field Details
-
yaml
protected org.yaml.snakeyaml.Yaml yaml -
EMPTY_MAP_DO_NOT_SERIALIZE
-
noSnapshotIdFound
protected boolean noSnapshotIdFound
-
-
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:
getValidFileExtensionsin interfaceLiquibaseSerializer
-
serialize
- Specified by:
serializein interfaceLiquibaseSerializer
-
getSerializableObjectFields
-
toMap
-
convertToMap
-
getComparator
-
removeClassTypeMarksFromSerializedJson
-