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 Details

    • LIQUIBASE_SCHEMA_VERSION

      public static final String LIQUIBASE_SCHEMA_VERSION
    • SUPPORTED_EXTENSIONS

      public static final Set<String> SUPPORTED_EXTENSIONS
  • Constructor Details

    • XMLChangeLogSAXParser

      public XMLChangeLogSAXParser()
  • Method Details

    • getPriority

      public int getPriority()
    • getSchemaVersion

      public static String getSchemaVersion()
    • supports

      public boolean supports(String changeLogFile, ResourceAccessor resourceAccessor)
      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 file
      resourceAccessor - 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:
      parseToNode in class AbstractChangeLogParser
      Throws:
      ChangeLogParseException