Package jmri.jmrit.decoderdefn
Class NameCheckAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.jmrit.decoderdefn.NameCheckAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
public class NameCheckAction extends javax.swing.AbstractAction
Check the names in an XML decoder file against the names.xml definitions- See Also:
XmlFile
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NameCheckAction(java.lang.String s, javax.swing.JPanel who)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
(package private) org.jdom2.Element
readFile(java.io.File file)
Read and verify an XML file.-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
NameCheckAction
public NameCheckAction(java.lang.String s, javax.swing.JPanel who)
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
-
readFile
org.jdom2.Element readFile(java.io.File file) throws org.jdom2.JDOMException, java.io.IOException
Read and verify an XML file.- Parameters:
file
- the file to read- Returns:
- the root element in the file
- Throws:
org.jdom2.JDOMException
- if the file cannot be parsedjava.io.IOException
- if the file cannot be read
-
-