liquibase.serializer.core.yaml
Class YamlSerializer

java.lang.Object
  extended by liquibase.serializer.core.yaml.YamlSerializer
All Implemented Interfaces:
LiquibaseSerializer, PrioritizedService
Direct Known Subclasses:
YamlChangeLogSerializer, YamlSnapshotSerializer

public abstract class YamlSerializer
extends Object
implements LiquibaseSerializer


Nested Class Summary
static class YamlSerializer.LiquibaseRepresenter
           
 
Field Summary
protected  org.yaml.snakeyaml.Yaml yaml
           
 
Fields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
 
Constructor Summary
YamlSerializer()
           
 
Method Summary
protected  org.yaml.snakeyaml.Yaml createYaml()
           
protected  Comparator<String> getComparator(LiquibaseSerializable object)
           
protected  YamlSerializer.LiquibaseRepresenter getLiquibaseRepresenter()
           
 String[] getValidFileExtensions()
           
protected  boolean isJson()
           
 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 Detail

yaml

protected org.yaml.snakeyaml.Yaml yaml
Constructor Detail

YamlSerializer

public YamlSerializer()
Method Detail

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.