public class CPU extends MachineInfo implements HasText
Modifier and Type | Field and Description |
---|---|
static String |
ELEMENT_NAME
The element name
|
private StringBuffer |
mValue
The text value
|
mAttributeMap
Constructor and Description |
---|
CPU()
The default constructor
|
CPU(String value)
Constructs a piece of data.
|
Modifier and Type | Method and Description |
---|---|
void |
appendValue(String fragment)
Appends a piece of text to the existing text.
|
String |
getElementName()
Returns the name of the xml element corresponding to the object.
|
String |
getValue()
Accessor
|
void |
setValue(String value)
Accessor.
|
addAttribute, addAttributes, get, getAttributeKeysIterator, toString, toXML
private StringBuffer mValue
public static final String ELEMENT_NAME
public CPU()
public CPU(String value)
value
- is the data to remember. The string may be empty,
but it must not be null
.NullPointerException
- if the argument was null.public String getElementName()
getElementName
in class MachineInfo
public void appendValue(String fragment)
appendValue
in interface HasText
fragment
- is a piece of text to append to existing text.
Appending null
is a noop.public String getValue()
getValue
in interface HasText
setValue(String)
public void setValue(String value)
setValue
in interface HasText
value
- is the new value to set.getValue()