Package dev.harrel.jsonschema.providers
Class JacksonNode.Factory
java.lang.Object
dev.harrel.jsonschema.providers.JacksonNode.Factory
- All Implemented Interfaces:
JsonNodeFactory
- Enclosing class:
- JacksonNode
-
Constructor Details
-
Factory
public Factory() -
Factory
public Factory(com.fasterxml.jackson.databind.ObjectMapper mapper)
-
-
Method Details
-
wrap
Description copied from interface:JsonNodeFactoryWraps provider specific JSON node intoJsonNode. Main purpose of this method is to avoid additional JSON parsing.- Specified by:
wrapin interfaceJsonNodeFactory- Parameters:
node- provider specific representation of JSON node- Returns:
- wrapped node
-
create
Description copied from interface:JsonNodeFactoryCreatesJsonNodefrom raw JSON string.- Specified by:
createin interfaceJsonNodeFactory- Parameters:
rawJson- JSON in string form- Returns:
- created node
-