org.jupe.uml2model
Class UML2ModelSerializer
java.lang.Object
org.jupe.uml2model.UML2ModelSerializer
public class UML2ModelSerializer
- extends java.lang.Object
Class used to convert the UML2 model to an XML stream and back. Will be used
in saving and loading from file.
- Author:
- jourdan
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UML2ModelSerializer
public UML2ModelSerializer()
convertUML2toXML
public static java.lang.String convertUML2toXML(UML2ModelRoot modelRoot)
- Create a XML stream that corresponds to the given modelRoot, in the form
of a stream.
- Parameters:
modelRoot
- The modelRoot which represents the UML2 model to be
transformed into xml.
- Returns:
- The XML stream in the form of a String object.
convertXMLtoUML2
public static UML2ModelRoot convertXMLtoUML2(java.lang.String xml)
- Create a modelRoot from the data contained in an XML flow.
- Parameters:
xml
- The XML flow from which the data will be read.
- Returns:
- The modelRoot created from the data in the XML flow.