| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| PreconditionLogic |
|
| 1.0;1 |
| 1 | package liquibase.precondition; | |
| 2 | ||
| 3 | import java.util.ArrayList; | |
| 4 | import java.util.List; | |
| 5 | ||
| 6 | /** | |
| 7 | * Marker interface for precondition logic tags (and,or, not) | |
| 8 | */ | |
| 9 | 76 | public abstract class PreconditionLogic implements Precondition { |
| 10 | 76 | private List<Precondition> nestedPreconditions = new ArrayList<Precondition>(); |
| 11 | ||
| 12 | public List<Precondition> getNestedPreconditions() { | |
| 13 | 30 | return this.nestedPreconditions; |
| 14 | } | |
| 15 | ||
| 16 | public void addNestedPrecondition(Precondition precondition) { | |
| 17 | 13 | nestedPreconditions.add(precondition); |
| 18 | 13 | } |
| 19 | ||
| 20 | } |