Class SimpleEditorExtension
java.lang.Object
ca.phon.app.opgraph.editor.SimpleEditorExtension
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionSimpleEditorExtension(List<ca.phon.opgraph.nodes.general.MacroNode> macroNodes) -
Method Summary
Modifier and TypeMethodDescriptionList<ca.phon.opgraph.nodes.general.MacroNode> booleanbooleanread(ca.phon.opgraph.io.xml.XMLSerializerFactory serializerFactory, ca.phon.opgraph.OpGraph graph, Object parent, Document doc, Element elem) voidwrite(ca.phon.opgraph.io.xml.XMLSerializerFactory serializerFactory, Document doc, Element parentElem, Object obj)
-
Constructor Details
-
SimpleEditorExtension
public SimpleEditorExtension() -
SimpleEditorExtension
-
-
Method Details
-
getMacroNodes
-
write
public void write(ca.phon.opgraph.io.xml.XMLSerializerFactory serializerFactory, Document doc, Element parentElem, Object obj) throws IOException - Specified by:
writein interfaceca.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:
readin interfaceca.phon.opgraph.io.xml.XMLSerializer- Throws:
IOException
-
handles
- Specified by:
handlesin interfaceca.phon.opgraph.io.xml.XMLSerializer
-
handles
- Specified by:
handlesin interfaceca.phon.opgraph.io.xml.XMLSerializer
-