blob: f5956994359d2fc73b9220cb8f0501ad7dcc221a (
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 VNC device node in a Libvirt domain XML document.
*
* @author Manuel Bentele
* @version 1.0
*/
public class GraphicsVnc extends Graphics
{
/**
* Creates an empty graphics VNC device.
*/
public GraphicsVnc()
{
super();
}
/**
* Creates a graphics VNC device representing an existing Libvirt XML graphics VNC device
* element.
*
* @param xmlNode existing Libvirt XML graphics VNC device element.
*/
public GraphicsVnc( LibvirtXmlNode xmlNode )
{
super( xmlNode );
}
/**
* Creates a non-existent graphics VNC device as Libvirt XML device element.
*
* @param xmlNode Libvirt XML node of the Libvirt XML device that is created.
* @return created graphics VNC device instance.
*/
public static GraphicsVnc createInstance( LibvirtXmlNode xmlNode )
{
return GraphicsVnc.newInstance( xmlNode );
}
/**
* Creates a graphics VNC device representing an existing Libvirt XML graphics VNC device
* element.
*
* @param xmlNode existing Libvirt XML graphics VNC device element.
* @return graphics VNC device instance.
*/
public static GraphicsVnc newInstance( LibvirtXmlNode xmlNode )
{
return new GraphicsVnc( xmlNode );
}
}
|