public abstract class MachineInfo extends Invocation
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
mAttributeMap
An internal maps that is indexed by attribute keys.
|
| Constructor and Description |
|---|
MachineInfo()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(java.lang.String key,
java.lang.String value)
Adds an attribute.
|
void |
addAttributes(java.util.List keys,
java.util.List values)
Add multiple attributes to the machine info element.
|
java.lang.String |
get(java.lang.String key)
Returns attribute value for a key
|
java.util.Iterator<java.lang.String> |
getAttributeKeysIterator()
Returns Iterator for attribute keys.
|
abstract java.lang.String |
getElementName()
Returns the name of the xml element corresponding to the object.
|
void |
toString(java.io.Writer stream)
Converts the active state into something meant for human consumption.
|
void |
toXML(java.io.Writer stream,
java.lang.String indent,
java.lang.String namespace)
Dump the state of the current element as XML output.
|
protected java.util.Map<java.lang.String,java.lang.String> mAttributeMap
public abstract java.lang.String getElementName()
public void addAttribute(java.lang.String key,
java.lang.String value)
key - the attribute keyvalue - the attribute valuepublic void addAttributes(java.util.List keys,
java.util.List values)
keys - List of keysvalues - Corresponding List of valuespublic java.util.Iterator<java.lang.String> getAttributeKeysIterator()
public java.lang.String get(java.lang.String key)
key - public void toString(java.io.Writer stream)
throws java.io.IOException
toString in class org.griphyn.vdl.Chimerastream - is a stream opened and ready for writing. This can also
be a string stream for efficient output.java.io.IOException - if something fishy happens to the stream.public void toXML(java.io.Writer stream,
java.lang.String indent,
java.lang.String namespace)
throws java.io.IOException
toXML in class org.griphyn.vdl.Chimerastream - is a stream opened and ready for writing. This can also
be a string stream for efficient output.indent - is a String of spaces used for pretty
printing. The initial amount of spaces should be an empty string.
The parameter is used internally for the recursive traversal.
If a null value is specified, no indentation nor
linefeeds will be generated.namespace - is the XML schema namespace prefix. If neither
empty nor null, each element will be prefixed with this prefix,
and the root element will map the XML namespace.java.io.IOException - if something fishy happens to the stream.BufferedWriter