Class JsonSmartNode.Factory

java.lang.Object
dev.harrel.jsonschema.providers.JsonSmartNode.Factory
All Implemented Interfaces:
JsonNodeFactory
Enclosing class:
JsonSmartNode

public static final class JsonSmartNode.Factory extends Object
  • Constructor Details

    • Factory

      public Factory()
    • Factory

      public Factory(net.minidev.json.parser.JSONParser parser)
  • Method Details

    • wrap

      public JsonSmartNode wrap(Object node)
      Description copied from interface: JsonNodeFactory
      Wraps provider specific JSON node into JsonNode. Main purpose of this method is to avoid additional JSON parsing. If passed object is already JsonNode it should be returned directly.
      Parameters:
      node - provider specific representation of JSON node
      Returns:
      wrapped node
    • create

      public JsonSmartNode create(String rawJson)
      Description copied from interface: JsonNodeFactory
      Creates JsonNode from raw JSON string.
      Parameters:
      rawJson - JSON in string form
      Returns:
      created node