Package liquibase.serializer.core.xml
Class XMLChangeLogSerializer
java.lang.Object
liquibase.serializer.core.xml.XMLChangeLogSerializer
- All Implemented Interfaces:
ChangeLogSerializer
,LiquibaseSerializer
,PrioritizedService
-
Field Summary
Fields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected String
checkString
(String text) Catch any characters that will cause problems when parsing the XML down the road.createNode
(String nodeNamespace, String nodeName, String nodeContent) createNode
(ColumnConfig columnConfig) createNode
(LiquibaseSerializable object) 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
String[]
serialize
(DatabaseChangeLog databaseChangeLog) serialize
(LiquibaseSerializable object, boolean pretty) void
setCurrentChangeLogFileDOM
(Document currentChangeLogFileDOM) <T extends ChangeLogChild>
voidwrite
(List<T> children, OutputStream out)
-
Field Details
-
INVALID_STRING_ENCODING_MESSAGE
- See Also:
-
-
Constructor Details
-
XMLChangeLogSerializer
public XMLChangeLogSerializer() -
XMLChangeLogSerializer
-
-
Method Details
-
setCurrentChangeLogFileDOM
-
getValidFileExtensions
- Specified by:
getValidFileExtensions
in interfaceLiquibaseSerializer
-
serialize
-
serialize
- Specified by:
serialize
in interfaceLiquibaseSerializer
-
write
- Specified by:
write
in interfaceChangeLogSerializer
- Throws:
IOException
-
append
- Specified by:
append
in interfaceChangeLogSerializer
- Throws:
IOException
-
createNode
-
checkString
Catch any characters that will cause problems when parsing the XML down the road.- Throws:
UnexpectedLiquibaseException
- with the messageINVALID_STRING_ENCODING_MESSAGE
if an issue is found.
-
createNode
-
createNode
-
getPriority
public int getPriority()- Specified by:
getPriority
in interfacePrioritizedService
-
escapeXml
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.
-