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

org.biojava.nbio.structure.io.cif.CifFileConsumer Maven / Gradle / Ivy

There is a newer version: 7.1.3
Show newest version
package org.biojava.nbio.structure.io.cif;

/**
 * Defines a rather generic interface which allows to populate some data structure with data parsed from a CIF file.
 * @param  the type of container an implementing class will return
 * @author Sebastian Bittrich
 * @since 5.3.0
 */
public interface CifFileConsumer {
    /**
     * Setup routine which initializes a new container.
     */
    void prepare();

    /**
     * Ultimate setup which can include steps which require several categories to be available and integrate them into
     * the final container.
     */
    void finish();

    /**
     * Retrieve the created container representing a CIF file.
     * @return all desired information wrapped as object of type S
     */
    S getContainer();
}