Class AbstractChangeLogParser

java.lang.Object
liquibase.parser.core.xml.AbstractChangeLogParser
All Implemented Interfaces:
ChangeLogParser, LiquibaseParser, PrioritizedService
Direct Known Subclasses:
XMLChangeLogSAXParser

public abstract class AbstractChangeLogParser extends Object implements ChangeLogParser
  • Constructor Details

    • AbstractChangeLogParser

      public AbstractChangeLogParser()
  • Method Details

    • parse

      public DatabaseChangeLog parse(String physicalChangeLogLocation, ChangeLogParameters changeLogParameters, ResourceAccessor resourceAccessor) throws ChangeLogParseException
      Description copied from interface: ChangeLogParser
      Parses a Liquibase database changelog and returns the parsed form as an object.
      Specified by:
      parse in interface ChangeLogParser
      Parameters:
      physicalChangeLogLocation - the physical location of the changelog. The exact file formats and locations where can load changelog files from depend on the implementations and capabilities of the implementing parsers.
      changeLogParameters - parameters given by the end user that should be applied while parsing the changelog (i.e. replacement of ${placeholders} inside the changelogs with user-defined content)
      resourceAccessor - a Java resource accessor
      Returns:
      the parsed ChangeLog in object form
      Throws:
      ChangeLogParseException - if an error occurs during parsing of the ChangeLog
    • parseToNode

      protected abstract ParsedNode parseToNode(String physicalChangeLogLocation, ChangeLogParameters changeLogParameters, ResourceAccessor resourceAccessor) throws ChangeLogParseException
      Throws:
      ChangeLogParseException