Class ValueUtils

java.lang.Object
cz.cvut.kbss.jsonld.deserialization.util.ValueUtils

public class ValueUtils extends Object
  • Method Details

    • getValue

      public static jakarta.json.JsonValue getValue(jakarta.json.JsonValue jsonNode)
      Extracts the value of the JsonLd.VALUE attribute from the specified JSON object.
      Parameters:
      jsonNode - JSON object from which to extract the value
      Returns:
      Extracted value
      Throws:
      JsonLdDeserializationException - If the specified node is not a JSON object or if it does not contain a @value attribute
    • stringValue

      public static String stringValue(jakarta.json.JsonValue value)
      Returns a string representation of the specified JSON value.
      Parameters:
      value - Value to stringify
      Returns:
      String value
    • literalValue

      public static Object literalValue(jakarta.json.JsonValue value)