001package jmri.jmrit.logixng.util; 002 003import java.util.Locale; 004import java.util.Map; 005 006import jmri.JmriException; 007import jmri.jmrit.logixng.Base; 008import jmri.jmrit.logixng.implementation.AbstractBase; 009 010/** 011 * Implements a null Base 012 * @author Daniel Bergqvist (C) 2022 013 */ 014public class NullBase extends AbstractBase { 015 016 public NullBase() throws BadSystemNameException { 017 super(""); 018 } 019 020 @Override 021 public void setState(int s) throws JmriException { 022 throw new UnsupportedOperationException("Not supported"); 023 } 024 025 @Override 026 public int getState() { 027 throw new UnsupportedOperationException("Not supported"); 028 } 029 030 @Override 031 public String getBeanType() { 032 throw new UnsupportedOperationException("Not supported"); 033 } 034 035 @Override 036 public Base getDeepCopy(Map<String, String> systemNames, Map<String, String> userNames) throws JmriException { 037 throw new UnsupportedOperationException("Not supported"); 038 } 039 040 @Override 041 public String getShortDescription(Locale locale) { 042 throw new UnsupportedOperationException("Not supported"); 043 } 044 045 @Override 046 public String getLongDescription(Locale locale) { 047 throw new UnsupportedOperationException("Not supported"); 048 } 049 050 @Override 051 public Base getParent() { 052 throw new UnsupportedOperationException("Not supported"); 053 } 054 055 @Override 056 public void setParent(Base parent) { 057 throw new UnsupportedOperationException("Not supported"); 058 } 059 060 @Override 061 public void setup() { 062 throw new UnsupportedOperationException("Not supported"); 063 } 064 065}