• Home
  • Raw
  • Download

Lines Matching full:yaml

24 import org.yaml.snakeyaml.DumperOptions;
25 import org.yaml.snakeyaml.Yaml;
26 import org.yaml.snakeyaml.constructor.AbstractConstruct;
27 import org.yaml.snakeyaml.constructor.Constructor;
28 import org.yaml.snakeyaml.constructor.SafeConstructor;
29 import org.yaml.snakeyaml.nodes.Node;
30 import org.yaml.snakeyaml.nodes.ScalarNode;
31 import org.yaml.snakeyaml.nodes.Tag;
32 import org.yaml.snakeyaml.representer.Represent;
33 import org.yaml.snakeyaml.representer.Representer;
40 Yaml yaml = new Yaml(options); in testRepresenter() local
41 String output = yaml.dump(dice); in testRepresenter()
49 Yaml yaml = new Yaml(new DiceRepresenter(), new DumperOptions()); in testDiceRepresenter() local
50 String output = yaml.dump(data); in testDiceRepresenter()
86 Yaml yaml = new Yaml(new DiceConstructor()); in testConstructor() local
87 Object data = yaml.load("{initial hit points: !dice '8d4'}"); in testConstructor()
95 Yaml yaml = new Yaml(new DiceConstructor(), new DiceRepresenter()); in testImplicitResolver() local
97 yaml.addImplicitResolver(new Tag("!dice"), Pattern.compile("\\d+d\\d+"), "123456789"); in testImplicitResolver()
101 String output = yaml.dump(treasure); in testImplicitResolver()
104 Object data = yaml.load("{damage: 5d10}"); in testImplicitResolver()
112 Yaml yaml = new Yaml(new DiceConstructor(), new DiceRepresenter()); in testImplicitResolverWithNull() local
114 yaml.addImplicitResolver(new Tag("!dice"), Pattern.compile("\\d+d\\d+"), null); in testImplicitResolverWithNull()
118 String output = yaml.dump(treasure); in testImplicitResolverWithNull()
121 Object data = yaml.load("{damage: 5d10}"); in testImplicitResolverWithNull()
149 Yaml yaml = new Yaml(new DiceConstructor(), new DiceRepresenter()); in testImplicitResolverJavaBean() local
151 yaml.addImplicitResolver(new Tag("!dice"), Pattern.compile("\\d+d\\d+"), "123456789"); in testImplicitResolverJavaBean()
155 String output = yaml.dump(bean); in testImplicitResolverJavaBean()
158 Object loaded = yaml.load(output); in testImplicitResolverJavaBean()