001package jmri.jmrit.logixng.implementation;
002
003import java.util.*;
004
005import jmri.jmrit.logixng.*;
006
007/**
008 * Default implementation of FemaleAnySocket
009 * 
010 * @author Daniel Bergqvist (C) 2020
011 */
012public class DefaultFemaleAnySocket extends AbstractFemaleSocket implements FemaleAnySocket {
013
014    public DefaultFemaleAnySocket(Base parent, FemaleSocketListener listener, String name) {
015        super(parent, listener, name);
016    }
017    
018    @Override
019    public void disposeMe() {
020        throw new UnsupportedOperationException("Not supported");
021    }
022
023    @Override
024    public boolean isCompatible(MaleSocket socket) {
025        return true;
026    }
027
028    @Override
029    public Map<Category, List<Class<? extends Base>>> getConnectableClasses() {
030        return new HashMap<>();
031    }
032
033    @Override
034    public String getShortDescription(Locale locale) {
035        return Bundle.getMessage(locale, "DefaultAnySocket_Short");
036    }
037
038    @Override
039    public String getLongDescription(Locale locale) {
040        return Bundle.getMessage(locale, "DefaultAnySocket_Long", getName());
041    }
042    
043}