Class SimpleEditorExtension

java.lang.Object
ca.phon.app.opgraph.editor.SimpleEditorExtension
All Implemented Interfaces:
ca.phon.opgraph.io.xml.XMLSerializer

public class SimpleEditorExtension extends Object implements ca.phon.opgraph.io.xml.XMLSerializer
Extension for OpGraphs created using the SimpleEditorPanel. Retains a map of names -> MacroNodes used to re-open a document created by the SimpleEditorPanel and allow continued editing.
  • Constructor Details

    • SimpleEditorExtension

      public SimpleEditorExtension()
    • SimpleEditorExtension

      public SimpleEditorExtension(List<ca.phon.opgraph.nodes.general.MacroNode> macroNodes)
  • Method Details

    • getMacroNodes

      public List<ca.phon.opgraph.nodes.general.MacroNode> getMacroNodes()
    • write

      public void write(ca.phon.opgraph.io.xml.XMLSerializerFactory serializerFactory, Document doc, Element parentElem, Object obj) throws IOException
      Specified by:
      write in interface ca.phon.opgraph.io.xml.XMLSerializer
      Throws:
      IOException
    • read

      public Object read(ca.phon.opgraph.io.xml.XMLSerializerFactory serializerFactory, ca.phon.opgraph.OpGraph graph, Object parent, Document doc, Element elem) throws IOException
      Specified by:
      read in interface ca.phon.opgraph.io.xml.XMLSerializer
      Throws:
      IOException
    • handles

      public boolean handles(Class<?> cls)
      Specified by:
      handles in interface ca.phon.opgraph.io.xml.XMLSerializer
    • handles

      public boolean handles(QName name)
      Specified by:
      handles in interface ca.phon.opgraph.io.xml.XMLSerializer