@Test public void testHeader() throws Exception { for (Version version : Version.values()) { final JCas jcas = process(true, version); final FSIterator<Annotation> i = jcas .getAnnotationIndex(Header.type).iterator(); final Set<Header> header = new HashSet<>(); while (i.hasNext()) header.add((Header) i.next()); assertEquals(1, header.size()); final Header h = header.iterator().next(); assertEquals("Des Knaben Wunderhorn", h.getTitle()); assertEquals("Alte deutsche Lieder", h.getSubtitle()); assertEquals("1", h.getVolume()); assertEquals(2, h.getAuthors().size()); assertEquals(version == Version.v2017 ? 8 : 6, h.getEditors().size()); final PersonInfo arnim = (PersonInfo) h.getAuthors().get(0); assertEquals("Arnim", arnim.getSurename()); assertEquals("Achim von", arnim.getForename()); assertEquals("http: final FSArray classes = h.getClassifications(); assertEquals(version == Version.v2017 ? 2 : 3, classes.size()); assertTrue(containsClassification(classes, DTABelletristik.class)); assertTrue( containsClassification(classes, DWDS1Belletristik.class)); if (version == Version.v2017) assertFalse(containsClassification(classes, DWDS2Wissenschaft.class)); else assertTrue(containsClassification(classes, DWDS2Wissenschaft.class)); assertTrue(h.getIsCoreCorpus()); assertEquals("1806", h.getYear()); assertEquals("Heidelberg", h.getPublicationPlaces(0)); assertEquals("Frankfurt", h.getPublicationPlaces(1)); assertEquals("Mohr u: Zimmer", h.getPublishers().get(0)); } }
@Override public boolean hasNext() throws IOException, CollectionException { return counter < inputFiles.size(); }
DTAFileReader extends CollectionReader_ImplBase { @Override public boolean hasNext() throws IOException, CollectionException { return counter < inputFiles.size(); } }
DTAFileReader extends CollectionReader_ImplBase { @Override public boolean hasNext() throws IOException, CollectionException { return counter < inputFiles.size(); }  }
DTAFileReader extends CollectionReader_ImplBase { @Override public boolean hasNext() throws IOException, CollectionException { return counter < inputFiles.size(); }  @Override void close(); @Override void getNext(final CAS aCAS); @Override Progress[] getProgress(); @Override boolean hasNext(); @Override void initialize(); }
DTAFileReader extends CollectionReader_ImplBase { @Override public boolean hasNext() throws IOException, CollectionException { return counter < inputFiles.size(); }  @Override void close(); @Override void getNext(final CAS aCAS); @Override Progress[] getProgress(); @Override boolean hasNext(); @Override void initialize(); static final String PARAM_INPUTFILE; static final String PARAM_NORMALIZE; static final String PARAM_FORMAT_2017; }