Class InfoMapString
java.lang.Object
com.tivoli.am.fim.authsvc.action.authenticator.infomap.InfoMapString
Wrapper for a Java String passed into an InfoMap JavaScript mapping rule.
Standard assignment operations will not work within the JavaScript context,
only use the setValue method to update the value of this object.
InfoMapString objects should only ever be created within the Java context.
-
Constructor Summary
ConstructorDescriptionInfoMapString
(String value) Creates a new instance and sets the internal String value. -
Method Summary
-
Constructor Details
-
InfoMapString
Creates a new instance and sets the internal String value.- Parameters:
value
- : The internal String value.
-
-
Method Details
-
setValue
Sets the internal String value. Normal assignment operations will not work within the JavaScript context, this method must be used to change value.- Parameters:
value
- : The new value to be help by this wrapper.
-
getValue
Returns the internal String value.- Returns:
- The internal String value.
-
toString
Convenience toString() so that we can read the internal value in our JavaScript context when expecting a String without needing to call getValue(). For instance, imagine a JavaScript snippet where we have an InfoMapString named testVal. The following two lines are equivalent: var newVal = "test "+testVal; var newVal = "test "+testVal.getValue();
-