001package jmri.jmrit.logixng.expressions;
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.StringExpressionFactory;
009import org.openide.util.lookup.ServiceProvider;
010
011/**
012 * The factory for DigitalAction classes.
013 */
014@ServiceProvider(service = StringExpressionFactory.class)
015public class StringFactory implements StringExpressionFactory {
016
017    @Override
018    public Set<Map.Entry<Category, Class<? extends Base>>> getClasses() {
019        Set<Map.Entry<Category, Class<? extends Base>>> stringExpressionClasses =
020                Set.of(
021                        new AbstractMap.SimpleEntry<>(Category.ITEM, StringExpressionConstant.class),
022                        new AbstractMap.SimpleEntry<>(Category.ITEM, StringExpressionMemory.class),
023                        new AbstractMap.SimpleEntry<>(Category.COMMON, StringFormula.class)
024                );
025        
026        return stringExpressionClasses;
027    }
028
029}