Commit de6b9391 authored by R.W.Majeed's avatar R.W.Majeed
Browse files

make concepts available to external code

parent 6184ce7c
......@@ -28,4 +28,13 @@ public class Concept {
c.notation = notation;
return c;
public String getIRI(){
return iri;
public String getNotation(){
return notation;
public String getWildcardNotation(){
return wildcardNotation;
......@@ -61,4 +61,8 @@ public class ExportDescriptor {
public static ExportDescriptor parse(InputStream xml){
return JAXB.unmarshal(xml, ExportDescriptor.class);
public Iterable<Concept> allConcepts(){
return concepts.allConcepts();
......@@ -4,6 +4,15 @@ import java.util.Iterator;
import java.util.NoSuchElementException;
import java.util.function.Function;
* Iterate over objects which are contained in {@link Iterable}s each contained in other indirect
* objects. Simply put, iterable over iterable, extracting the iterable from the indirect objects.
* @author R.W.Majeed
* @param <T> desired type which will be should be iterated over
* @param <U> indirect type which contains iterators to the desired type
class IterableIterable<T,U> implements Iterable<T>{
Function<U, Iterator<T>> extractor;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment