01: package liquibase.parser.visitor;
02:
03: import liquibase.ChangeSet;
04: import liquibase.exception.LiquibaseException;
05:
06: import java.util.ArrayList;
07: import java.util.List;
08:
09: public class ListVisitor implements ChangeSetVisitor {
10:
11: private List<ChangeSet> seenChangeSets = new ArrayList<ChangeSet>();
12:
13: public List<ChangeSet> getSeenChangeSets() {
14: return seenChangeSets;
15: }
16:
17: public Direction getDirection() {
18: return ChangeSetVisitor.Direction.FORWARD;
19: }
20:
21: public void visit(ChangeSet changeSet) throws LiquibaseException {
22: seenChangeSets.add(changeSet);
23: }
24: }
|