liquibase.serializer.core.yaml
Class YamlSerializer
java.lang.Object
liquibase.serializer.core.yaml.YamlSerializer
- All Implemented Interfaces:
- LiquibaseSerializer, PrioritizedService
- Direct Known Subclasses:
- YamlChangeLogSerializer, YamlSnapshotSerializer
public abstract class YamlSerializer
- extends Object
- implements LiquibaseSerializer
Field Summary |
protected org.yaml.snakeyaml.Yaml |
yaml
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
yaml
protected org.yaml.snakeyaml.Yaml yaml
YamlSerializer
public YamlSerializer()
createYaml
protected org.yaml.snakeyaml.Yaml createYaml()
getLiquibaseRepresenter
protected YamlSerializer.LiquibaseRepresenter getLiquibaseRepresenter()
isJson
protected boolean isJson()
getValidFileExtensions
public String[] getValidFileExtensions()
- Specified by:
getValidFileExtensions
in interface LiquibaseSerializer
serialize
public String serialize(LiquibaseSerializable object,
boolean pretty)
- Specified by:
serialize
in interface LiquibaseSerializer
toMap
protected Object toMap(LiquibaseSerializable object)
getComparator
protected Comparator<String> getComparator(LiquibaseSerializable object)
Copyright © 2016 Liquibase.org. All rights reserved.