001package javax.visrec.spi;
002
003/**
004 * Returns information about the used implementation of visual recognition API
005 * @author Kevin Berendsen
006 * @since 1.0
007 */
008public abstract class ImplementationService {
009
010    /**
011     * Get the name of the implementation
012     * @return name as {@code String}
013     */
014    public abstract String getName();
015
016    /**
017     * Get the version of the implementation
018     * @return version as {@code String}
019     */
020    public abstract String getVersion();
021
022    /**
023     * Returns the name, major and minor version of the implementation
024     * @return combined information in a {@code String}
025     */
026    @Override
027    public final String toString() {
028        return getName() + " " + getVersion();
029    }
030}