All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.antidot.api.upload.DocumentManager Maven / Gradle / Ivy

The newest version!
package net.antidot.api.upload;

import java.util.ArrayList;
import java.util.Iterator;

/** Document manager.
 * 

* Manages various type of documents which implement {@link DocumentInterface}. */ public class DocumentManager { private ArrayList docs = new ArrayList(); /** Adds new document to the list of managed documents. * @param doc [in] new document to manage * @return manager itself. */ public DocumentManager addDocument(DocumentInterface doc) { this.docs.add(doc); return this; } /** Checks whether at least one document is managed. * @return true when at lest one document is managed, false otherwise. */ public boolean hasDocument() { return !docs.isEmpty(); } /** Retrieves iterator on list of documents. * @return document iterator. */ public Iterator getDocumentIterator() { return this.docs.iterator(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy