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
public class XMLChangeLogSAXParser extends AbstractChangeLogParser
-
-
Field Summary
Fields Modifier and Type Field Description static StringLIQUIBASE_SCHEMA_VERSION-
Fields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
-
-
Constructor Summary
Constructors Constructor Description XMLChangeLogSAXParser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPriority()protected SAXParserFactorygetSaxParserFactory()static StringgetSchemaVersion()protected ParsedNodeparseToNode(String physicalChangeLogLocation, ChangeLogParameters changeLogParameters, ResourceAccessor resourceAccessor)voidsetShouldWarnOnMismatchedXsdVersion(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.booleansupports(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 Detail
-
LIQUIBASE_SCHEMA_VERSION
public static final String LIQUIBASE_SCHEMA_VERSION
-
-
Method Detail
-
getPriority
public int getPriority()
-
getSchemaVersion
public static String getSchemaVersion()
-
supports
public boolean supports(String changeLogFile, ResourceAccessor resourceAccessor)
Description copied from interface:ChangeLogParserChecks 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
protected SAXParserFactory 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:
parseToNodein classAbstractChangeLogParser- Throws:
ChangeLogParseException
-
-