001package jmri.jmrix.lenz.configurexml; 002 003import jmri.jmrix.configurexml.AbstractSerialConnectionConfigXml; 004import jmri.jmrix.lenz.AbstractXNetSerialConnectionConfig; 005 006/** 007 * Abstract base class to Handle XML persistance of layout connections 008 * by persistening an XpressNetSerial Adapter (and connections). Note this is 009 * named as the XML version of an AbstraxtXNetSerialConnectionConfig object, 010 * but it's actually persisting the XpressNet Serial Adapter. 011 * <p> 012 * This class is invoked from jmrix.JmrixConfigPaneXml on write, 013 * as that class is the one actually registered. Reads are brought 014 * here directly via the class attribute in the XML. 015 * 016 * @author Paul Bender Copyright: Copyright (c) 2015 017 */ 018public abstract class AbstractXNetSerialConnectionConfigXml extends AbstractSerialConnectionConfigXml { 019 020 public AbstractXNetSerialConnectionConfigXml() { 021 super(); 022 } 023 024 @Override 025 protected void getInstance(Object object) { 026 adapter=((AbstractXNetSerialConnectionConfig) object).getAdapter(); 027 } 028 029}