public List<String> getAllExcludes() { List<String> result = new ArrayList<String>(); if (parentSpec != null) { result.addAll(parentSpec.getAllExcludes()); } result.addAll(getExcludes()); return result; }
public List<ReadableCopySpec> getAllSpecs() { List<ReadableCopySpec> result = new ArrayList<ReadableCopySpec>(); result.add(this); for (ReadableCopySpec childSpec : childSpecs) { result.addAll(childSpec.getAllSpecs()); } return result; }