001package jmri.jmrit.logixng.actions;
002
003import java.util.AbstractMap;
004import java.util.Map;
005import java.util.Set;
006import jmri.jmrit.logixng.Base;
007import jmri.jmrit.logixng.Category;
008import jmri.jmrit.logixng.StringActionFactory;
009import org.openide.util.lookup.ServiceProvider;
010
011/**
012 * The factory for StringAction classes.
013 */
014@ServiceProvider(service = StringActionFactory.class)
015public class StringFactory implements StringActionFactory {
016
017    @Override
018    public Set<Map.Entry<Category, Class<? extends Base>>> getClasses() {
019        Set<Map.Entry<Category, Class<? extends Base>>> stringActionClasses =
020                Set.of(
021                        new AbstractMap.SimpleEntry<>(Category.ITEM, StringActionMemory.class),
022                        new AbstractMap.SimpleEntry<>(Category.ITEM, StringActionStringIO.class),
023                        new AbstractMap.SimpleEntry<>(Category.COMMON, StringMany.class)
024                );
025        
026        return stringActionClasses;
027    }
028
029}