public class XMLChangeLogSerializer extends Object implements ChangeLogSerializer
Modifier and Type | Field and Description |
---|---|
static String |
INVALID_STRING_ENCODING_MESSAGE |
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
Modifier | Constructor and Description |
---|---|
|
XMLChangeLogSerializer() |
protected |
XMLChangeLogSerializer(Document currentChangeLogFileDOM) |
Modifier and Type | Method and Description |
---|---|
void |
append(ChangeSet changeSet,
File changeLogFile) |
protected String |
checkString(String text)
Catch any characters that will cause problems when parsing the XML down the road.
|
Element |
createNode(ColumnConfig columnConfig) |
Element |
createNode(LiquibaseSerializable object) |
Element |
createNode(String nodeNamespace,
String nodeName,
String nodeContent) |
String |
escapeXml(String valueToEscape)
Provided as a way for sub-classes to override and be able to convert a string
that might have XML reserved characters to an XML-escaped version of that string.
|
int |
getPriority() |
String[] |
getValidFileExtensions() |
String |
serialize(DatabaseChangeLog databaseChangeLog) |
String |
serialize(LiquibaseSerializable object,
boolean pretty) |
void |
setCurrentChangeLogFileDOM(Document currentChangeLogFileDOM) |
<T extends ChangeLogChild> |
write(List<T> children,
OutputStream out) |
public static final String INVALID_STRING_ENCODING_MESSAGE
public XMLChangeLogSerializer()
protected XMLChangeLogSerializer(Document currentChangeLogFileDOM)
public void setCurrentChangeLogFileDOM(Document currentChangeLogFileDOM)
public String[] getValidFileExtensions()
getValidFileExtensions
in interface LiquibaseSerializer
public String serialize(DatabaseChangeLog databaseChangeLog)
public String serialize(LiquibaseSerializable object, boolean pretty)
serialize
in interface LiquibaseSerializer
public <T extends ChangeLogChild> void write(List<T> children, OutputStream out) throws IOException
write
in interface ChangeLogSerializer
IOException
public void append(ChangeSet changeSet, File changeLogFile) throws IOException
append
in interface ChangeLogSerializer
IOException
public Element createNode(LiquibaseSerializable object)
protected String checkString(String text) throws UnexpectedLiquibaseException
UnexpectedLiquibaseException
- with the message INVALID_STRING_ENCODING_MESSAGE
if an issue is found.public Element createNode(ColumnConfig columnConfig)
public int getPriority()
getPriority
in interface PrioritizedService
Copyright © 2022 Liquibase.org. All rights reserved.