Class JsonBoolean

    • Constructor Detail

      • JsonBoolean

        public JsonBoolean​(boolean bool)
    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Description copied from interface: JsonValue
        Check if the json has no value stored.
        Specified by:
        isEmpty in interface JsonValue
      • asBoolean

        public boolean asBoolean()
        Description copied from interface: JsonValue
        Convert the underlying value to boolean
        Specified by:
        asBoolean in interface JsonValue
      • asNumber

        public double asNumber()
        Description copied from interface: JsonValue
        Convert the underlying value to a number
        Specified by:
        asNumber in interface JsonValue
      • asString

        public String asString()
        Description copied from interface: JsonValue
        Convert the underlying value to a String
        Specified by:
        asString in interface JsonValue
      • getBoolean

        public boolean getBoolean()
      • getType

        public JsonType getType()
        Description copied from interface: JsonValue
        Returns an enumeration representing the fundamental JSON type.
        Specified by:
        getType in interface JsonValue
      • traverse

        public void traverse​(org.dashbuilder.json.JsonVisitor visitor,
                             org.dashbuilder.json.JsonContext ctx)
        Description copied from interface: JsonValue
        Visitor interface
        Specified by:
        traverse in interface JsonValue