01: package liquibase.preconditions;
02:
03: import java.util.ArrayList;
04: import java.util.List;
05:
06: /**
07: * Marker interface for precondition logic tags (and,or, not)
08: */
09: public abstract class PreconditionLogic implements Precondition {
10: private List<Precondition> nestedPreconditions = new ArrayList<Precondition>();
11:
12: public List<Precondition> getNestedPreconditions() {
13: return this .nestedPreconditions;
14: }
15:
16: public void addNestedPrecondition(Precondition precondition) {
17: nestedPreconditions.add(precondition);
18: }
19:
20: }
|