use of org.raml.v2.api.model.v10.api.Library in project raml-for-jax-rs by mulesoft-labs.
the class V10Finder method goThroughLibraries.
private void goThroughLibraries(Set<String> visitedLibraries, List<Library> libraries, GFinderListener listener) {
for (Library library : libraries) {
if (visitedLibraries.contains(library.name())) {
continue;
} else {
visitedLibraries.add(library.name());
}
goThroughLibraries(visitedLibraries, library.uses(), listener);
for (TypeDeclaration typeDeclaration : library.types()) {
V10GType type = createTypeFromLibraryPart(typeDeclaration);
listener.newTypeDeclaration(type);
}
}
}
Aggregations