summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/libvirt/domain/device/GraphicsSdl.java
blob: c77f56d1cb67edc998ea08ec16101a2e62a1413d (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package org.openslx.libvirt.domain.device;

import org.openslx.libvirt.xml.LibvirtXmlNode;

/**
 * A graphics SDL device node in a Libvirt domain XML document.
 * 
 * @author Manuel Bentele
 * @version 1.0
 */
public class GraphicsSdl extends Graphics
{
	/**
	 * Creates an empty graphics SDL device.
	 */
	public GraphicsSdl()
	{
		super();
	}

	/**
	 * Creates a graphics SDL device representing an existing Libvirt XML graphics SDL device
	 * element.
	 * 
	 * @param xmlNode existing Libvirt XML graphics SDL device element.
	 */
	public GraphicsSdl( LibvirtXmlNode xmlNode )
	{
		super( xmlNode );
	}

	/**
	 * Creates a non-existent graphics SDL device as Libvirt XML device element.
	 * 
	 * @param xmlNode Libvirt XML node of the Libvirt XML device that is created.
	 * @return created graphics SDL device instance.
	 */
	public static GraphicsSdl createInstance( LibvirtXmlNode xmlNode )
	{
		return GraphicsSdl.newInstance( xmlNode );
	}

	/**
	 * Creates a graphics SDL device representing an existing Libvirt XML graphics SDL device
	 * element.
	 * 
	 * @param xmlNode existing Libvirt XML graphics SDL device element.
	 * @return graphics SDL device instance.
	 */
	public static GraphicsSdl newInstance( LibvirtXmlNode xmlNode )
	{
		return new GraphicsSdl( xmlNode );
	}
}