001package jmri.jmrit.logixng;
002
003/**
004 * How should a named bean be addressed by an action or expression?
005 * 
006 * @author Daniel Bergqvist Copyright 2020
007 */
008public enum NamedBeanAddressing {
009    
010    /**
011     * Direct addressing, by entering the name of the named bean
012     */
013    Direct(Bundle.getMessage("NamedBeanAddressing_Direct")),
014    
015    /**
016     * Addresssing by reference, by entering a reference that points to the named bean.
017     */
018    Reference(Bundle.getMessage("NamedBeanAddressing_Reference")),
019    
020    /**
021     * Addresssing by local variable, by entering a local variable that points to the named bean.
022     */
023    LocalVariable(Bundle.getMessage("NamedBeanAddressing_LocalVariable")),
024    
025    /**
026     * Addresssing by formula, by entering a formula that points to the named bean.
027     */
028    Formula(Bundle.getMessage("NamedBeanAddressing_Formula"));
029    
030    private final String _text;
031
032    private NamedBeanAddressing(String text) {
033        this._text = text;
034    }
035
036    @Override
037    public String toString() {
038        return _text;
039    }
040    
041}