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

com.buschmais.jqassistant.plugin.common.api.scanner.AbstractResourceScannerPlugin Maven / Gradle / Ivy

The newest version!
package com.buschmais.jqassistant.plugin.common.api.scanner;

import com.buschmais.jqassistant.core.store.api.model.Descriptor;

/**
 * Abstract base implementation for plugins handling file or directory
 * resources.
 * 
 * @param 
 *            The resource item type.
 * @param 
 *            The descriptor type representing the item type.
 */
public abstract class AbstractResourceScannerPlugin
        extends AbstractScannerPlugin {

    @Override
    public Class getType() {
        return getTypeParameter(AbstractResourceScannerPlugin.class, 0);
    }

    @Override
    public Class getDescriptorType() {
        return getTypeParameter(AbstractResourceScannerPlugin.class, 1);
    }

    /**
     *
     * @param path
     * @return
     */
    protected String slashify(String path) {
        return path.replace('\\', '/');
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy