net.sourceforge.toscanaj.util.xmlize
Interface XMLizable

All Known Subinterfaces:
Concept, Datatype, Diagram2D, WriteableDiagram2D
All Known Implementing Classes:
AbstractDatatype, Column, ConceptImplementation, ConceptualSchema, DatabaseInfo, DatabaseSchema, DatabaseViewerManager, DiagramLine, DiagramNode, FCAElementImplementation, LabelInfo, ManyValuedContextImplementation, Query, SimpleLineDiagram, StateRing, Table, TransitionArrow, TupleConceptInterpreter

public interface XMLizable

This serialization interface is used for the model. All elements of the model support this interface and in addition have a constructor that callls readXML.

To do:
separate this aspect of the code from the model. Turning the model into XML and back should not be part of the models interface but of some other classes, maybe using introspection and some kind of mapping information.

Method Summary
 void readXML(org.jdom.Element elem)
          Read this element as the content of elem.
 org.jdom.Element toXML()
          Write this element as the content of elem.
 

Method Detail

toXML

public org.jdom.Element toXML()
Write this element as the content of elem.


readXML

public void readXML(org.jdom.Element elem)
             throws XMLSyntaxError
Read this element as the content of elem.

Throws:
XMLSyntaxError


The ToscanaJ project