org.xmlresolver.catalog.query.QueryDocument Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xmlresolver Show documentation
Show all versions of xmlresolver Show documentation
An XML entity/uri resolver
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