Search in sources :

Example 11 with TechInfoSet

use of de.catma.document.source.TechInfoSet in project catma by forTEXT.

the class TeiSourceDocumentInfoSerializationHandler method deserialize.

private SourceDocumentInfo deserialize(TeiDocument teiDocument) {
    ContentInfoSet contentInfoSet = teiDocument.getContentInfoSet();
    TechInfoSet techInfoSet = teiDocument.getTechInfoset();
    IndexInfoSet indexInfoSet = teiDocument.getIndexInfoSet();
    return new SourceDocumentInfo(indexInfoSet, contentInfoSet, techInfoSet);
}
Also used : ContentInfoSet(de.catma.document.source.ContentInfoSet) SourceDocumentInfo(de.catma.document.source.SourceDocumentInfo) IndexInfoSet(de.catma.document.source.IndexInfoSet) TechInfoSet(de.catma.document.source.TechInfoSet)

Aggregations

TechInfoSet (de.catma.document.source.TechInfoSet)11 SourceDocumentInfo (de.catma.document.source.SourceDocumentInfo)9 IndexInfoSet (de.catma.document.source.IndexInfoSet)8 File (java.io.File)8 FileInputStream (java.io.FileInputStream)8 ContentInfoSet (de.catma.document.source.ContentInfoSet)6 IDGenerator (de.catma.util.IDGenerator)6 XML2ContentHandler (de.catma.document.source.contenthandler.XML2ContentHandler)4 JGitRepoManager (de.catma.repository.git.managers.JGitRepoManager)4 ArrayList (java.util.ArrayList)4 EventBus (com.google.common.eventbus.EventBus)3 BackgroundService (de.catma.backgroundservice.BackgroundService)3 SourceDocument (de.catma.document.source.SourceDocument)3 TermExtractor (de.catma.indexer.TermExtractor)3 GitLabServerManagerTest (de.catma.repository.git.managers.GitLabServerManagerTest)3 List (java.util.List)3 UsernamePasswordCredentialsProvider (org.eclipse.jgit.transport.UsernamePasswordCredentialsProvider)3 Test (org.junit.jupiter.api.Test)3 Notification (com.vaadin.ui.Notification)2 Type (com.vaadin.ui.Notification.Type)2