001package jmri.jmrix.roco.z21.configurexml; 002 003import org.jdom2.Element; 004import org.slf4j.Logger; 005import org.slf4j.LoggerFactory; 006 007/** 008 * Provides load and store functionality for configuring Z21ReporterManagers. 009 * <p> 010 * Uses the store method from the abstract base class, but provides a load 011 * method here. 012 * 013 * @author Bob Jacobsen Copyright: Copyright (c) 2008 014 * @author Matthew Harris Copyright (C) 2011 015 * @author Paul Bender Copyright (C) 2016 016 * @since 4.5.4 017 */ 018public class Z21ReporterManagerXml extends jmri.managers.configurexml.AbstractReporterManagerConfigXML { 019 020 public Z21ReporterManagerXml() { 021 super(); 022 } 023 024 @Override 025 public void setStoreElementClass(Element sensors) { 026 sensors.setAttribute("class", this.getClass().getName()); 027 } 028 029 @Override 030 public void load(Element element, Object o) { 031 log.error("Invalid method called"); 032 } 033 034 @Override 035 public boolean load(Element shared, Element perNode) { 036 // load individual sensors 037 return loadReporters(shared); 038 } 039 040 private static final Logger log = LoggerFactory.getLogger(Z21ReporterManagerXml.class); 041}