Class InfoMapString


  • public class InfoMapString
    extends java.lang.Object
    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

      Constructors 
      Constructor Description
      InfoMapString​(java.lang.String value)
      Creates a new instance and sets the internal String value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getValue()
      Returns the internal String value.
      void setValue​(java.lang.String value)
      Sets the internal String value.
      java.lang.String toString()
      Convenience toString() so that we can read the internal value in our JavaScript context when expecting a String without needing to call getValue().
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • InfoMapString

        public InfoMapString​(java.lang.String value)
        Creates a new instance and sets the internal String value.
        Parameters:
        value - : The internal String value.
    • Method Detail

      • setValue

        public void setValue​(java.lang.String value)
        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

        public java.lang.String getValue()
        Returns the internal String value.
        Returns:
        The internal String value.
      • toString

        public java.lang.String 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();
        Overrides:
        toString in class java.lang.Object
        Returns:
        The internal String value.