summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/libvirt/domain/device/InterfaceNetwork.java
blob: ae1fd40c055b9cb6984125cac29b4bc66155a99d (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 interface device node in a Libvirt domain XML document.
 * 
 * @author Manuel Bentele
 * @version 1.0
 */
public class InterfaceNetwork extends Interface
{
	/**
	 * Creates an empty network interface device.
	 */
	public InterfaceNetwork()
	{
		super();
	}

	/**
	 * Creates a network interface device representing an existing Libvirt XML network interface
	 * device element.
	 * 
	 * @param xmlNode existing Libvirt XML network interface device element.
	 */
	public InterfaceNetwork( LibvirtXmlNode xmlNode )
	{
		super( xmlNode );
	}

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

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