Package ca.phon.app.opgraph.editor
Class SimpleEditorExtension
java.lang.Object
ca.phon.app.opgraph.editor.SimpleEditorExtension
- All Implemented Interfaces:
ca.phon.opgraph.io.xml.XMLSerializer
Extension for
OpGraph
s created using the SimpleEditorPanel
.
Retains a map of names -> MacroNode
s used to re-open a document
created by the SimpleEditorPanel
and allow continued editing.-
Constructor Summary
ConstructorDescriptionSimpleEditorExtension
(List<ca.phon.opgraph.nodes.general.MacroNode> macroNodes) -
Method Summary
Modifier and TypeMethodDescriptionList<ca.phon.opgraph.nodes.general.MacroNode>
boolean
boolean
read
(ca.phon.opgraph.io.xml.XMLSerializerFactory serializerFactory, ca.phon.opgraph.OpGraph graph, Object parent, Document doc, Element elem) void
write
(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:
write
in 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:
read
in interfaceca.phon.opgraph.io.xml.XMLSerializer
- Throws:
IOException
-
handles
- Specified by:
handles
in interfaceca.phon.opgraph.io.xml.XMLSerializer
-
handles
- Specified by:
handles
in interfaceca.phon.opgraph.io.xml.XMLSerializer
-