|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ace.moab.api.variables.Variable
public class Variable
This class represents a variable used for attaching miscellaneous information to an object in Moab.
| Constructor Summary | |
|---|---|
Variable(java.lang.String name,
java.lang.String value)
Initializes a new variable. |
|
| Method Summary | |
|---|---|
int |
compareTo(Variable o)
If the other variable is null, -1 is returned or else the names of the variables are compared lexographically. |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getName()
Returns the name of the variable. |
java.lang.String |
getValue()
Returns the value of the variable. |
java.lang.String |
toMoabString()
Creates a String suitable for building a command to send to Moab. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Variable(java.lang.String name,
java.lang.String value)
throws java.lang.NullPointerException
name - the name of the variable. Cannot be null.value - the associated value of the variable.
java.lang.NullPointerException - thrown if name is null.| Method Detail |
|---|
public int compareTo(Variable o)
compareTo in interface java.lang.Comparable<Variable>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String getName()
public java.lang.String getValue()
public java.lang.String toMoabString()
Creates a String suitable for building a command to send to Moab.
For example, if the name is "os" and the value is "rhel3", the String to be returned is "os=rhel3".
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||