001package jmri.jmrix.lenz.hornbyelite;
002
003import jmri.jmrix.ConnectionTypeList;
004import org.openide.util.lookup.ServiceProvider;
005
006/**
007 * Returns a list of valid lenz XpressNet Connection Types.
008 *
009 * @author Bob Jacobsen Copyright (C) 2010
010 * @author Kevin Dickerson Copyright (C) 2010
011 */
012@ServiceProvider(service = ConnectionTypeList.class)
013public class EliteConnectionTypeList implements jmri.jmrix.ConnectionTypeList {
014
015    public static final String HORNBY = "Hornby"; // NOI18N
016
017    @Override
018    public String[] getAvailableProtocolClasses() {
019        String[] masterList = new jmri.jmrix.lenz.LenzConnectionTypeList().getAvailableProtocolClasses();
020
021        String[] tempList = new String[masterList.length + 1];
022        tempList[0] = "jmri.jmrix.lenz.hornbyelite.ConnectionConfig";
023        int x = 1;
024        for (String s : masterList) {
025            tempList[x] = s;
026            x++;
027        }
028        return tempList;
029    }
030
031    @Override
032    public String[] getManufacturers() {
033        return new String[]{HORNBY};
034    }
035
036}