public List<Incl> getIncludes(final URI locationUri) { final List<Incl> res = new ArrayList<Incl>(); for (final Incl incl : this.includes) { if (incl.getLocationURI().equals(locationUri)) { res.add(incl); } } return res; }
public void addIncludeElementsInAllList() { for (final Incl incl : this.includes) { if (incl.getSchema() != null) { this.types.addAll(incl.getSchema().getTypes()); this.elements.addAll(incl.getSchema().getElements()); this.attributes.addAll(incl.getSchema().getAttributes()); } } }