| java.lang.Object org.cougaar.tools.csmart.util.ArgValue
ArgValue | public class ArgValue implements Serializable(Code) | | An argument name (a String), and its value, an arbitrary object (possibly null).
Construct one with the arg name and the Object value. Alternatively, a convenience
constructor allows you to supply a string, and a separator in that string
which separates the Arg and the Value.
Note that the argument cannot be null, and in this case the value is a String
See Also: Serializable |
ArgValue | public ArgValue(String arg, Object value)(Code) | | Creates a new ArgValue instance.
Parameters: arg - a String argument (non-null) Parameters: value - an Object value |
ArgValue | public ArgValue(String pair, String sep)(Code) | | Creates a new ArgValue instance.
The pair is a string with both arg and value in it, with an arbitrary separator.
Note that this works only for the case where the value is a String
Parameters: pair - a String Containing both Arg and Value Parameters: sep - a String that separates Arg and Value |
ArgValue | public ArgValue(String pair)(Code) | | Creates a new ArgValue instance.
Take a string containg both the argument and the value
Assume the separator is " = "
Note that this works only for the case where the value is a String
Parameters: pair - a String with arg and value |
equals | public boolean equals(Object o)(Code) | | Two ArgValues are equal if BOTH the Argument and the value are String.equals
Parameters: o - an Object to compare a boolean , true if equal |
getValue | public Object getValue()(Code) | | an Object Value, possibly null |
setValue | public void setValue(Object val)(Code) | | Override the current value for this ArgValue pair with a new value
Use with caution!
Parameters: val - an Object value for this ArgValue pair |
|
|