blob: 96c77d52a2ff0521d7f3da1b86018fde752ff946 (
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
|
package org.openslx.libvirt.capabilities.cpu;
import org.openslx.libvirt.xml.LibvirtXmlNode;
/**
* Implementation of a host CPU feature as part of the Libvirt capabilities XML document.
*
* @author Manuel Bentele
* @version 1.0
*/
public class Feature extends LibvirtXmlNode
{
/**
* Creates an empty host CPU feature instance.
*/
public Feature()
{
super();
}
/**
* Creates an host CPU feature representing an existing Libvirt XML host CPU feature element.
*
* @param xmlNode existing Libvirt XML host CPU feature element.
*/
public Feature( LibvirtXmlNode xmlNode )
{
super( xmlNode );
}
/**
* Returns the name of the host CPU feature.
*
* @return name of the host CPU feature.
*/
public String getName()
{
return this.getXmlElementAttributeValue( "name" );
}
/**
* Creates an host CPU feature representing an existing Libvirt XML host CPU feature element.
*
* @param xmlNode existing Libvirt XML host CPU feature element.
* @return host CPU feature instance.
*/
public static Feature newInstance( LibvirtXmlNode xmlNode )
{
return new Feature( xmlNode );
}
}
|