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

ch.software_atelier.simpleflex.interfaces.file.TestInterface Maven / Gradle / Ivy

There is a newer version: 2.2.2
Show newest version
package ch.software_atelier.simpleflex.interfaces.file;
import ch.software_atelier.simpleflex.SimpleFlexAccesser;
import java.util.HashMap;
import java.util.Set;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class TestInterface implements FileInterface{
    
    static Logger LOG = LogManager.getLogger(TestInterface.class);

    @Override
    public boolean process(SimpleFlexAccesser sfa, HashMap config){
        Set keys = config.keySet();
        for (String key:keys){
            LOG.info(key+"="+config.get(key));
        }
        String proc = (String)config.get("PROC");
        
        if (proc==null)
            return false;
        else
            return (proc.equalsIgnoreCase("TRUE"));
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy