Package liquibase.serializer.core.xml
Class XMLChangeLogSerializer
java.lang.Object
liquibase.serializer.core.xml.XMLChangeLogSerializer
- All Implemented Interfaces:
ChangeLogSerializer,LiquibaseSerializer,PrioritizedService
-
Field Summary
FieldsFields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected StringcheckString(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.intString[]serialize(DatabaseChangeLog databaseChangeLog) serialize(LiquibaseSerializable object, boolean pretty) voidsetCurrentChangeLogFileDOM(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:
getValidFileExtensionsin interfaceLiquibaseSerializer
-
serialize
-
serialize
- Specified by:
serializein interfaceLiquibaseSerializer
-
write
- Specified by:
writein interfaceChangeLogSerializer- Throws:
IOException
-
append
- Specified by:
appendin 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_MESSAGEif an issue is found.
-
createNode
-
createNode
-
getPriority
public int getPriority()- Specified by:
getPriorityin 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.
-