Package adams.core

Class VariableNameValuePair

    • Constructor Detail

      • VariableNameValuePair

        public VariableNameValuePair()
        Initializes the string with length 0.
      • VariableNameValuePair

        public VariableNameValuePair​(String key,
                                     String value)
        Initializes the object with the key/value pair.
        Parameters:
        key - the key to use
        value - the value to use
      • VariableNameValuePair

        public VariableNameValuePair​(String s)
        Initializes the object with the string to parse.
        Parameters:
        s - the string to parse
    • Method Detail

      • isValid

        public boolean isValid​(String value)
        Checks whether the string value is a valid presentation for this class.
        Overrides:
        isValid in class AbstractBaseString
        Parameters:
        value - the string value to check
        Returns:
        true if non-null
      • getTipText

        public String getTipText()
        Returns a tool tip for the GUI editor (ignored if null is returned).
        Specified by:
        getTipText in class AbstractBaseString
        Returns:
        the tool tip
      • pairValue

        public String pairValue()
        Returns the backquoted String pair.
        Returns:
        the backquoted pair
      • varName

        public VariableName varName()
        Returns the variable name.
        Returns:
        the key
      • varValue

        public String varValue()
        Returns the variable value.
        Returns:
        the value