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