Class JsonNodeFactory
java.lang.Object
cz.cvut.kbss.jsonld.serialization.JsonNodeFactory
Factory for constructing
JsonNode
instances.-
Method Summary
Modifier and TypeMethodDescriptionstatic BooleanLiteralNode
createBooleanLiteralNode
(String name, Boolean value) static CollectionNode<?>
createCollectionNode
(String name, Collection<?> value) Creates collection node with the specified name, for the specified collection.static SetNode
static LiteralNode<?>
createLiteralNode
(Object value) static LiteralNode<?>
createLiteralNode
(String name, Object value) static NumericLiteralNode<Number>
createNumericLiteralNode
(String name, Number value) static ObjectIdNode
createObjectIdNode
(String name, Object id) static ObjectNode
static ObjectNode
createObjectNode
(String name) static SetNode
createSetNode
(String name) static StringLiteralNode
createStringLiteralNode
(String name, String value)
-
Method Details
-
createLiteralNode
-
createLiteralNode
-
createBooleanLiteralNode
-
createNumericLiteralNode
-
createStringLiteralNode
-
createCollectionNode
Creates collection node with the specified name, for the specified collection.- Parameters:
name
- Name of the node (attribute)value
- The collection. It is used only to determine the type of the target node, no values are added to the result- Returns:
- An empty collection node
-
createSetNode
-
createCollectionNodeFromArray
-
createObjectNode
-
createObjectNode
-
createObjectIdNode
-