summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/libvirt/xml/LibvirtXmlCreatable.java
blob: e799ace18ff9ea09b9a15234d545a02adb6a2b74 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package org.openslx.libvirt.xml;

import org.w3c.dom.Node;

/**
 * Serializability of a Libvirt XML object from/to its XML representation.
 * 
 * @author Manuel Bentele
 * @version 1.0
 */
public interface LibvirtXmlCreatable
{
	/**
	 * Serializing an object from its XML representation.
	 * 
	 * @param xmlNode The object's XML representation.
	 */
	void fromXmlNode( Node xmlNode );

	/**
	 * Serializing the object to its XML representation.
	 * 
	 * @return XML representation of the object.
	 */
	Node toXmlNode();
}