Interface JsonValue

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean asBoolean()
      Convert the underlying value to boolean
      double asNumber()
      Convert the underlying value to a number
      String asString()
      Convert the underlying value to a String
      JsonType getType()
      Returns an enumeration representing the fundamental JSON type.
      boolean isEmpty()
      Check if the json has no value stored.
      String toJson()
      Returns a serialized JSON string representing this value.
      void traverse​(org.dashbuilder.json.JsonVisitor visitor, org.dashbuilder.json.JsonContext ctx)
      Visitor interface
    • Method Detail

      • asBoolean

        boolean asBoolean()
        Convert the underlying value to boolean
      • asNumber

        double asNumber()
        Convert the underlying value to a number
      • asString

        String asString()
        Convert the underlying value to a String
      • isEmpty

        boolean isEmpty()
        Check if the json has no value stored.
      • getType

        JsonType getType()
        Returns an enumeration representing the fundamental JSON type.
      • toJson

        String toJson()
        Returns a serialized JSON string representing this value.
      • traverse

        void traverse​(org.dashbuilder.json.JsonVisitor visitor,
                      org.dashbuilder.json.JsonContext ctx)
        Visitor interface