Top Inners Fields Constructors Methods
liquibase.serializer.core.yaml

public abstract Class YamlSerializer

extends Object
implements LiquibaseSerializer
Class Inheritance
All Implemented Interfaces
liquibase.serializer.LiquibaseSerializer, liquibase.servicelocator.PrioritizedService
Known Direct Subclasses
liquibase.serializer.core.yaml.YamlSnapshotSerializer, liquibase.serializer.core.yaml.YamlChangeLogSerializer
Imports
liquibase.change.Change, .ConstraintsConfig, liquibase.changelog.ChangeSet, .RollbackContainer, liquibase.exception.UnexpectedLiquibaseException, liquibase.parser.core.yaml.YamlParser, liquibase.serializer.LiquibaseSerializable, .LiquibaseSerializer, liquibase.statement.DatabaseFunction, .SequenceCurrentValueFunction, .SequenceNextValueFunction, liquibase.structure.core.Column, .DataType, org.yaml.snakeyaml.DumperOptions, .Yaml, org.yaml.snakeyaml.constructor.SafeConstructor, org.yaml.snakeyaml.introspector.GenericProperty, .Property, org.yaml.snakeyaml.nodes.Node, .Tag, org.yaml.snakeyaml.representer.Represent, .Representer, org.yaml.snakeyaml.resolver.Resolver, java.lang.annotation.Annotation, java.lang.reflect.Type, java.util.*

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class

Field Summary

Modifier and TypeField and Description
protected Yaml

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Object
convertToMap(List<E> valueAsList, int index)

protected DumperOptions
protected Yaml
protected Comparator<String>
protected YamlSerializer.LiquibaseRepresenter
protected YamlSerializer.LiquibaseResolver
protected Set<String>
public String[]
protected boolean
public static String
public String
protected Object
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

yamlback to summary
protected Yaml yaml

Constructor Detail

YamlSerializerback to summary
public YamlSerializer()

Method Detail

convertToMapback to summary
protected Object convertToMap(List<E> valueAsList, int index)
createDumperOptionsback to summary
protected DumperOptions createDumperOptions()
createYamlback to summary
protected Yaml createYaml()
getComparatorback to summary
protected Comparator<String> getComparator(LiquibaseSerializable object)
getLiquibaseRepresenterback to summary
protected YamlSerializer.LiquibaseRepresenter getLiquibaseRepresenter(DumperOptions options)
getLiquibaseResolverback to summary
protected YamlSerializer.LiquibaseResolver getLiquibaseResolver()
getSerializableObjectFieldsback to summary
protected Set<String> getSerializableObjectFields(LiquibaseSerializable object)
getValidFileExtensionsback to summary
public String[] getValidFileExtensions()

Implements liquibase.serializer.LiquibaseSerializer.getValidFileExtensions.

Annotations
@Override
isJsonback to summary
protected boolean isJson()
removeClassTypeMarksFromSerializedJsonback to summary
public static String removeClassTypeMarksFromSerializedJson(String json)
serializeback to summary
public String serialize(LiquibaseSerializable object, boolean pretty)

Implements liquibase.serializer.LiquibaseSerializer.serialize.

Annotations
@Override
toMapback to summary
protected Object toMap(LiquibaseSerializable object)
liquibase.serializer.core.yaml back to summary

public Class YamlSerializer.LiquibaseRepresenter

extends Representer
Class Inheritance
Known Direct Subclasses
liquibase.serializer.core.yaml.YamlSnapshotSerializer.SnapshotLiquibaseRepresenter

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
private static class

Field Summary

Inherited from org.yaml.snakeyaml.representer.Representer:
typeDefinitions

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Set<Property>
getProperties(Class<? extends Object>
- JavaBean to inspect the properties
type
)

Overrides org.yaml.snakeyaml.representer.Representer.getProperties.

Get JavaBean properties to be serialised.

protected void
init()

Inherited from org.yaml.snakeyaml.representer.Representer:
addTypeDescriptioncheckGlobalTagrepresentJavaBeanrepresentJavaBeanPropertysetPropertyUtils

Constructor Detail

LiquibaseRepresenterback to summary
public LiquibaseRepresenter(DumperOptions options)

Method Detail

getPropertiesback to summary
protected Set<Property> getProperties(Class<? extends Object> type)

Overrides org.yaml.snakeyaml.representer.Representer.getProperties.

Doc from org.yaml.snakeyaml.representer.Representer.getProperties.

Get JavaBean properties to be serialised. The order is respected. This method may be overridden to provide custom property selection or order.

Parameters
type:Class<? extends Object>

- JavaBean to inspect the properties

Returns:Set<Property>

properties to serialise

Annotations
@Override
initback to summary
protected void init()
liquibase.serializer.core.yaml back to summary

private Class YamlSerializer.LiquibaseRepresenter.AsStringRepresenter

extends Object
implements Represent
Class Inheritance
  • java.lang.Object
  • liquibase.serializer.core.yaml.YamlSerializer.LiquibaseRepresenter.AsStringRepresenter
All Implemented Interfaces
org.yaml.snakeyaml.representer.Represent

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Node
representData(Object
the instance to represent
data
)

Implements org.yaml.snakeyaml.representer.Represent.representData.

Create a Node

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AsStringRepresenterback to summary
private AsStringRepresenter()

Method Detail

representDataback to summary
public Node representData(Object data)

Implements org.yaml.snakeyaml.representer.Represent.representData.

Doc from org.yaml.snakeyaml.representer.Represent.representData.

Create a Node

Parameters
data:Object

the instance to represent

Returns:Node

Node to dump

Annotations
@Override
liquibase.serializer.core.yaml back to summary

private Class YamlSerializer.LiquibaseRepresenter.LiquibaseProperty

extends GenericProperty
Class Inheritance

Constructor Summary

AccessConstructor and Description
private
LiquibaseProperty(String name, Class<?> aClass, Type aType)

Method Summary

Modifier and TypeMethod and Description
public Object
public <A extends Annotation> A
getAnnotation(Class<A>
the type of the annotation to be returned
annotationType
)

Implements abstract org.yaml.snakeyaml.introspector.Property.getAnnotation.

Returns property's annotation for the given type or null if it's not present.

public List<Annotation>
getAnnotations()

Implements abstract org.yaml.snakeyaml.introspector.Property.getAnnotations.

Returns the annotations that are present on this property or empty List if there're no annotations.

public void
Inherited from org.yaml.snakeyaml.introspector.GenericProperty:
getActualTypeArguments

Constructor Detail

LiquibasePropertyback to summary
private LiquibaseProperty(String name, Class<?> aClass, Type aType)

Method Detail

getback to summary
public Object get(Object object)

Implements abstract org.yaml.snakeyaml.introspector.Property.get.

Annotations
@Override
getAnnotationback to summary
public <A extends Annotation> A getAnnotation(Class<A> annotationType)

Implements abstract org.yaml.snakeyaml.introspector.Property.getAnnotation.

Doc from org.yaml.snakeyaml.introspector.Property.getAnnotation.

Returns property's annotation for the given type or null if it's not present.

Parameters
<A>
class of the annotation
annotationType:Class<A>

the type of the annotation to be returned

Returns:A

property's annotation for the given type or null if it's not present

Annotations
@Override
getAnnotationsback to summary
public List<Annotation> getAnnotations()

Implements abstract org.yaml.snakeyaml.introspector.Property.getAnnotations.

Doc from org.yaml.snakeyaml.introspector.Property.getAnnotations.

Returns the annotations that are present on this property or empty List if there're no annotations.

Returns:List<Annotation>

the annotations that are present on this property or empty List if there're no annotations

Annotations
@Override
setback to summary
public void set(Object object, Object value) throws Exception

Implements abstract org.yaml.snakeyaml.introspector.Property.set.

Annotations
@Override
liquibase.serializer.core.yaml back to summary

public Class YamlSerializer.LiquibaseResolver

extends Resolver
Class Inheritance

Field Summary

Inherited from org.yaml.snakeyaml.resolver.Resolver:
BOOLEMPTYFLOATINTMERGENULLTIMESTAMPVALUEYAMLyamlImplicitResolvers

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
Inherited from org.yaml.snakeyaml.resolver.Resolver:
addImplicitResolveraddImplicitResolverresolve

Constructor Detail

LiquibaseResolverback to summary
public LiquibaseResolver()

Method Detail

addImplicitResolversback to summary
protected void addImplicitResolvers()

Overrides org.yaml.snakeyaml.resolver.Resolver.addImplicitResolvers.

Annotations
@Override