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

org.xmlresolver.catalog.query.QueryDocument Maven / Gradle / Ivy

There is a newer version: 6.0.11
Show newest version
package org.xmlresolver.catalog.query;

import org.xmlresolver.CatalogManager;
import org.xmlresolver.catalog.entry.Entry;
import org.xmlresolver.catalog.entry.EntryCatalog;
import org.xmlresolver.catalog.entry.EntryDocument;

/**
 * Query for document catalog entries.
 */
public class QueryDocument extends QueryCatalog {
    @Override
    protected QueryResult lookup(CatalogManager manager, EntryCatalog catalog) {
        // 
        for (Entry raw : catalog.entries(Entry.Type.DOCUMENT)) {
            EntryDocument entry = (EntryDocument) raw;
            return new QueryResult(entry.uri);
        }

        return QueryResult.EMPTY_RESULT;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy