Class JsonNodeFactory
java.lang.Object
cz.cvut.kbss.jsonld.serialization.JsonNodeFactory
Factory for constructing
JsonNode instances.-
Method Summary
Modifier and TypeMethodDescriptionstatic SetNodestatic BooleanLiteralNodecreateBooleanLiteralNode(String name, Boolean value) static CollectionNode<?>createCollectionNode(String name, Collection<?> value) Creates collection node with the specified name, for the specified collection.static SetNodestatic LiteralNode<?>createLiteralNode(Object value) static LiteralNode<?>createLiteralNode(String name, Object value) static NumericLiteralNode<Number>createNumericLiteralNode(String name, Number value) static ObjectIdNodecreateObjectIdNode(String name, Object id) static ObjectNodestatic ObjectNodecreateObjectNode(String name) static SetNodecreateSetNode(String name) static StringLiteralNodecreateStringLiteralNode(String value) static StringLiteralNodecreateStringLiteralNode(String name, String value)
-
Method Details
-
createLiteralNode
-
createLiteralNode
-
createBooleanLiteralNode
-
createNumericLiteralNode
-
createStringLiteralNode
-
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
-
createArrayNode
-
createObjectNode
-
createObjectNode
-
createObjectIdNode
-