Class JSONStringValue


  • public class JSONStringValue
    extends JSONValue
    JSON value class representing a string value.
    • Method Detail

      • fromString

        public static JSONStringValue fromString​(java.lang.String stringValue)
        Factory method to create a JSONStringValue and initialize it with given string.
        Parameters:
        stringValue - The string value used for initializing this instance.
        Returns:
        Newly created JSONStringValue or null if argument is null.
      • isString

        public boolean isString()
        Description copied from class: JSONValue
        Get a boolean indicating whether this instance represents a JSON string value or not.
        Overrides:
        isString in class JSONValue
        Returns:
        true for objects representing a string value, false otherwise.
      • getValue

        public java.lang.String getValue()
        Get the underlying string.
        Returns:
        String value.