Class JsonValue

java.lang.Object
org.apache.jena.atlas.json.JsonValue
All Implemented Interfaces:
org.apache.jena.atlas.io.Printable
Direct Known Subclasses:
JsonArray, JsonObject, JsonPrimitive

public abstract class JsonValue extends Object implements org.apache.jena.atlas.io.Printable
  • Constructor Details

    • JsonValue

      public JsonValue()
  • Method Details

    • isObject

      public boolean isObject()
    • getAsObject

      public JsonObject getAsObject()
    • isArray

      public boolean isArray()
    • getAsArray

      public JsonArray getAsArray()
    • isPrimitive

      public boolean isPrimitive()
    • isNull

      public boolean isNull()
    • isNumber

      public boolean isNumber()
    • getAsNumber

      public JsonNumber getAsNumber()
    • isString

      public boolean isString()
    • getAsString

      public JsonString getAsString()
    • isBoolean

      public boolean isBoolean()
    • getAsBoolean

      public JsonBoolean getAsBoolean()
    • hashCode

      public abstract int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public abstract boolean equals(Object other)
      Overrides:
      equals in class Object
    • visit

      public abstract void visit(JsonVisitor visitor)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • output

      public void output(org.apache.jena.atlas.io.IndentedWriter out)
      Specified by:
      output in interface org.apache.jena.atlas.io.Printable