org.erasmusmc.data_mining.ontology.api.CallbackHandler Maven / Gradle / Ivy
The newest version!
/**
* Peregrine is an indexing engine that can recognize concepts in human readable
* text, based on a database (thesaurus) of known terms.
*
* Copyright 2005-2011 Erasmus University Medical Centre (EMC)
* Copyright 2009-2011 Netherlands Bioinformatics Centre (NBIC)
*
* Contact us at: [email protected]
*
* This file is part of Peregrine. Peregrine is free software: you can
* redistribute it and/or modify it under the terms of the GNU Affero General
* Public License as published by the Free Software Foundation, either version 3
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
package org.erasmusmc.data_mining.ontology.api;
/**
* The interface defines a callback handler for processing an ontology.
*
* @param The type of object this handler can process.
*/
public interface CallbackHandler {
/**
* Callback handler to process the loading of the given object in the
* in-memory ontology.
*
* @param object the object to process, this must be a fully populated
* instance.
*
* @return true if the processing should continue with the next object or
* false if processing should be aborted.
*/
boolean process(T object);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy