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
FieldsFields inherited from interface liquibase.parser.ChangeLogParser
DATABASE_CHANGE_LOGFields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintprotected SAXParserFactorystatic Stringprotected InputStreamopenChangeLogFile(String physicalChangeLogLocation, ResourceAccessor resourceAccessor) 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 Details
-
LIQUIBASE_SCHEMA_VERSION
-
-
Constructor Details
-
XMLChangeLogSAXParser
public XMLChangeLogSAXParser()
-
-
Method Details
-
getPriority
public int getPriority() -
getSchemaVersion
-
supports
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
-
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
-
openChangeLogFile
protected InputStream openChangeLogFile(String physicalChangeLogLocation, ResourceAccessor resourceAccessor) throws IOException - Throws:
IOException
-