20 lines
446 B
Java
20 lines
446 B
Java
package org.gcube.vremanagement.vremodeler.stubs;
|
|
|
|
import java.io.StringReader;
|
|
|
|
import org.gcube.vremanagement.vremodeler.stubs.deployreport.DeployReport;
|
|
|
|
import com.thoughtworks.xstream.XStream;
|
|
|
|
public class Utils {
|
|
|
|
public static String toXML(DeployReport report){
|
|
return new XStream().toXML(report);
|
|
}
|
|
|
|
public static DeployReport fromXML(String report){
|
|
return (DeployReport) new XStream().fromXML(new StringReader(report));
|
|
}
|
|
|
|
}
|