Class ValueUtils
java.lang.Object
cz.cvut.kbss.jsonld.deserialization.util.ValueUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic jakarta.json.JsonValuegetValue(jakarta.json.JsonValue jsonNode) Extracts the value of theJsonLd.VALUEattribute from the specified JSON object.static ObjectliteralValue(jakarta.json.JsonValue value) static StringstringValue(jakarta.json.JsonValue value) Returns a string representation of the specified JSON value.
-
Method Details
-
getValue
public static jakarta.json.JsonValue getValue(jakarta.json.JsonValue jsonNode) Extracts the value of theJsonLd.VALUEattribute 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@valueattribute
-
stringValue
Returns a string representation of the specified JSON value.- Parameters:
value- Value to stringify- Returns:
- String value
-
literalValue
-