liquibase.serializer.core.yaml.YamlChangeLogSerializer Maven / Gradle / Ivy
package liquibase.serializer.core.yaml;
import liquibase.changelog.ChangeLogChild;
import liquibase.changelog.ChangeSet;
import liquibase.configuration.GlobalConfiguration;
import liquibase.configuration.LiquibaseConfiguration;
import liquibase.serializer.ChangeLogSerializer;
import liquibase.serializer.LiquibaseSerializable;
import java.io.*;
import java.util.*;
public class YamlChangeLogSerializer extends YamlSerializer implements ChangeLogSerializer {
protected Comparator getComparator(LiquibaseSerializable object) {
if (object instanceof ChangeSet) {
return new ChangeSetComparator();
} else {
return super.getComparator(object);
}
}
@Override
public void write(List children, OutputStream out) throws IOException {
List