liquibase.serializer.core.yaml
Class YamlChangeLogSerializer

java.lang.Object
  extended by liquibase.serializer.core.yaml.YamlChangeLogSerializer
All Implemented Interfaces:
ChangeLogSerializer
Direct Known Subclasses:
JsonChangeLogSerializer

public class YamlChangeLogSerializer
extends Object
implements ChangeLogSerializer


Nested Class Summary
static class YamlChangeLogSerializer.LiquibaseRepresenter
           
 
Field Summary
protected  org.yaml.snakeyaml.Yaml yaml
           
 
Constructor Summary
YamlChangeLogSerializer()
           
 
Method Summary
 void append(ChangeSet changeSet, File changeLogFile)
           
protected  org.yaml.snakeyaml.Yaml createYaml()
           
 String[] getValidFileExtensions()
           
 String serialize(LiquibaseSerializable object, boolean pretty)
           
protected  Map<String,Object> toMap(LiquibaseSerializable object)
           
 void write(List<ChangeSet> changeSets, OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

yaml

protected org.yaml.snakeyaml.Yaml yaml
Constructor Detail

YamlChangeLogSerializer

public YamlChangeLogSerializer()
Method Detail

createYaml

protected org.yaml.snakeyaml.Yaml createYaml()

getValidFileExtensions

public String[] getValidFileExtensions()
Specified by:
getValidFileExtensions in interface ChangeLogSerializer

serialize

public String serialize(LiquibaseSerializable object,
                        boolean pretty)
Specified by:
serialize in interface ChangeLogSerializer

toMap

protected Map<String,Object> toMap(LiquibaseSerializable object)

write

public void write(List<ChangeSet> changeSets,
                  OutputStream out)
           throws IOException
Specified by:
write in interface ChangeLogSerializer
Throws:
IOException

append

public void append(ChangeSet changeSet,
                   File changeLogFile)
            throws IOException
Specified by:
append in interface ChangeLogSerializer
Throws:
IOException


Copyright © 2013 Liquibase.org. All Rights Reserved.