|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.moremotion.config.ConfigParameter
public class ConfigParameter
Represents a Configuration Parameter and provides methods to convert the value of the
parameter to String, Password String, Expression
, int, double, boolan and char. If the value of this parameter contains
embedded MScript functions resolve()
method can be used to obtain a ConfigParameter object with a resolved value.
Constructor Summary | |
---|---|
ConfigParameter(java.lang.String name,
java.lang.String value)
|
Method Summary | |
---|---|
boolean |
booleanValue()
|
boolean |
booleanValue(boolean defValue)
|
char |
charValue()
|
char |
charValue(char defValue)
|
double |
doubleValue()
|
double |
doubleValue(double defValue)
|
Expression |
expressionValue()
|
Expression |
expressionValue(Expression defValue)
|
boolean |
hasMScript()
|
boolean |
hasValue()
|
int |
intValue()
Returns the value of the parameter as integer. |
int |
intValue(int defValue)
Returns the value of the parameter as integer. |
boolean |
isEmpty()
|
java.lang.String |
passwordValue()
Decrypts and returns the value |
java.lang.String |
passwordValue(java.lang.String defValue)
Decrypts and returns the value. |
ConfigParameter |
resolve(MoreMotionRequest request)
If the parameter value does not contain embedded MScript funcions this method simply return this object. |
java.lang.String |
stringValue()
|
java.lang.String |
stringValue(java.lang.String defValue)
|
java.lang.String |
toString()
|
java.lang.String |
toString(java.lang.Object object)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConfigParameter(java.lang.String name, java.lang.String value)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isEmpty()
public boolean hasValue()
public boolean hasMScript()
public ConfigParameter resolve(MoreMotionRequest request) throws ConfigParameterException
request
- The MoreMotionRequest object required to resolve the MScript functions.
ConfigParameterException
public java.lang.String stringValue() throws ConfigParameterException
ConfigParameterException
public java.lang.String stringValue(java.lang.String defValue)
public java.lang.String passwordValue() throws ConfigParameterException
ConfigParameterException
public java.lang.String passwordValue(java.lang.String defValue) throws ConfigParameterException
defValue
- The defult value to return in case of the parameter has no value.
ConfigParameterException
public Expression expressionValue() throws ConfigParameterException
ConfigParameterException
public Expression expressionValue(Expression defValue)
public int intValue() throws ConfigParameterException
ConfigParameterException
public int intValue(int defValue) throws ConfigParameterException
defValue
- The defult value to return in case of the parameter has no value.
ConfigParameterException
public double doubleValue() throws ConfigParameterException
ConfigParameterException
public double doubleValue(double defValue) throws ConfigParameterException
ConfigParameterException
public boolean booleanValue() throws ConfigParameterException
ConfigParameterException
public boolean booleanValue(boolean defValue) throws ConfigParameterException
ConfigParameterException
public char charValue() throws ConfigParameterException
ConfigParameterException
public char charValue(char defValue) throws ConfigParameterException
ConfigParameterException
public java.lang.String toString(java.lang.Object object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |