Package liquibase.parser.core.xml
Class XMLChangeLogSAXParser
java.lang.Object
liquibase.parser.core.xml.AbstractChangeLogParser
liquibase.parser.core.xml.XMLChangeLogSAXParser
- All Implemented Interfaces:
ChangeLogParser
,LiquibaseParser
,PrioritizedService
-
Field Summary
Fields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
protected SAXParserFactory
static String
protected ParsedNode
parseToNode
(String physicalChangeLogLocation, ChangeLogParameters changeLogParameters, ResourceAccessor resourceAccessor) void
setShouldWarnOnMismatchedXsdVersion
(boolean shouldWarnOnMismatchedXsdVersion) When set to true, a warning will be printed to the console if the XSD version used does not match the version of Liquibase.boolean
supports
(String changeLogFile, ResourceAccessor resourceAccessor) Checks if the file format is supported by an implementing ChangeLogParser and returns true if that is the case.Methods inherited from class liquibase.parser.core.xml.AbstractChangeLogParser
parse
-
Field Details
-
LIQUIBASE_SCHEMA_VERSION
-
SUPPORTED_EXTENSIONS
-
-
Constructor Details
-
XMLChangeLogSAXParser
public XMLChangeLogSAXParser()
-
-
Method Details
-
getPriority
public int getPriority() -
getSchemaVersion
-
supports
Description copied from interface:ChangeLogParser
Checks if the file format is supported by an implementing ChangeLogParser and returns true if that is the case.- Parameters:
changeLogFile
- the location of the changelog fileresourceAccessor
- the resource accessor- Returns:
- true if the file format is supported, false if it is not.
-
getSaxParserFactory
-
setShouldWarnOnMismatchedXsdVersion
public void setShouldWarnOnMismatchedXsdVersion(boolean shouldWarnOnMismatchedXsdVersion) When set to true, a warning will be printed to the console if the XSD version used does not match the version of Liquibase. If "latest" is used as the XSD version, no warning is printed. -
parseToNode
protected ParsedNode parseToNode(String physicalChangeLogLocation, ChangeLogParameters changeLogParameters, ResourceAccessor resourceAccessor) throws ChangeLogParseException - Specified by:
parseToNode
in classAbstractChangeLogParser
- Throws:
ChangeLogParseException
-