Package dev.harrel.jsonschema.providers
Class SnakeYamlNode.Factory
java.lang.Object
dev.harrel.jsonschema.providers.SnakeYamlNode.Factory
- All Implemented Interfaces:
JsonNodeFactory
- Enclosing class:
SnakeYamlNode
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Factory
public Factory() -
Factory
public Factory(org.yaml.snakeyaml.Yaml yaml)
-
-
Method Details
-
wrap
Description copied from interface:JsonNodeFactoryWraps provider specific JSON node intoJsonNode. The returned node is considered a root node and all further JSON pointers will be calculated from this node. Main purpose of this method is to avoid additional JSON parsing. It can also be used to convert any instance ofJsonNodeto a root node.- Specified by:
wrapin interfaceJsonNodeFactory- Parameters:
node- provider specific representation of JSON node- Returns:
- wrapped node
-
create
Description copied from interface:JsonNodeFactoryCreatesJsonNodefrom raw JSON string. The returned node is considered a root node and all further JSON pointers will be calculated from this node.- Specified by:
createin interfaceJsonNodeFactory- Parameters:
rawJson- JSON in string form- Returns:
- created node
-