use of org.simpleframework.xml.core.Persister in project netxms by netxms.
the class WebPageConfig method createXml.
/**
* @see org.netxms.ui.eclipse.dashboard.widgets.internal.DashboardElementConfig#createXml()
*/
@Override
public String createXml() throws Exception {
Serializer serializer = new Persister();
Writer writer = new StringWriter();
serializer.write(this, writer);
return writer.toString();
}
use of org.simpleframework.xml.core.Persister in project netxms by netxms.
the class SnmpTrapMonitorConfig method createXml.
/**
* @see org.netxms.ui.eclipse.dashboard.widgets.internal.DashboardElementConfig#createXml()
*/
@Override
public String createXml() throws Exception {
Serializer serializer = new Persister();
Writer writer = new StringWriter();
serializer.write(this, writer);
return writer.toString();
}
use of org.simpleframework.xml.core.Persister in project netxms by netxms.
the class LinkConfig method createXml.
/**
* Create XML from configuration.
*
* @return XML document
* @throws Exception if the schema for the object is not valid
*/
public String createXml() throws Exception {
Serializer serializer = new Persister();
Writer writer = new StringWriter();
serializer.write(this, writer);
return writer.toString();
}
use of org.simpleframework.xml.core.Persister in project netxms by netxms.
the class SensorRegistrationConfig method createXml.
/**
* Create XML from configuration.
*
* @return XML document
* @throws Exception if the schema for the object is not valid
*/
public String createXml() throws Exception {
Serializer serializer = new Persister();
Writer writer = new StringWriter();
serializer.write(this, writer);
return writer.toString();
}
use of org.simpleframework.xml.core.Persister in project netxms by netxms.
the class SensorConfig method createXml.
/**
* Create XML from configuration.
*
* @return XML document
* @throws Exception if the schema for the object is not valid
*/
public String createXml() throws Exception {
Serializer serializer = new Persister();
Writer writer = new StringWriter();
serializer.write(this, writer);
return writer.toString();
}
Aggregations