Lines Matching refs:Wrapper
27 * Example: using wrapper object for static fields
32 * use wrapper with global tag
41 String output = yaml.dump(new Wrapper(bean));
44 "!!examples.staticstate.Wrapper {age: -47, color: Violet, name: Bahrack, type: Type3}\n",
47 Wrapper wrapper = (Wrapper) yaml.load(output);
48 JavaBeanWithStaticState bean2 = wrapper.createBean();
54 * use wrapper with local tag
63 repr.addClassTag(Wrapper.class, new Tag("!mybean"));
65 String output = yaml.dump(new Wrapper(bean));
70 TypeDescription description = new TypeDescription(Wrapper.class, new Tag("!mybean"));
73 Wrapper wrapper = (Wrapper) yaml.load(output);
74 JavaBeanWithStaticState bean2 = wrapper.createBean();
80 * use wrapper with no tag
89 String output = yaml.dumpAsMap(new Wrapper(bean));
94 Wrapper wrapper = loader.loadAs(output, Wrapper.class);
95 JavaBeanWithStaticState bean2 = wrapper.createBean();