Package manifold.api.yaml.rt
Class Yaml
- java.lang.Object
-
- manifold.api.yaml.rt.Yaml
-
public class Yaml extends Object
-
-
Constructor Summary
Constructors Constructor Description Yaml()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectfromYaml(String yaml)Parse the YAML string as a manifold.rt.api.Bindings instance.static ObjectfromYaml(String yaml, boolean withBigNumbers, boolean withTokens)static voidtoYaml(Object jsonValue, StringBuilder target)Serializes a JSON value to a YAML 1.2 formatted StringBuildertargetwith the specifiedindentof spaces.
-
-
-
Method Detail
-
fromYaml
public static Object fromYaml(String yaml)
Parse the YAML string as a manifold.rt.api.Bindings instance.- Parameters:
yaml- A Standard YAML 1.2 formatted string- Returns:
- A manifold.rt.api.Bindings instance
-
toYaml
public static void toYaml(Object jsonValue, StringBuilder target)
Serializes a JSON value to a YAML 1.2 formatted StringBuildertargetwith the specifiedindentof spaces.- Parameters:
target- AStringBuilderto write the YAML in
-
-