use of com.evolveum.midpoint.prism.lex.json.yaml.MidpointYAMLFactory in project midpoint by Evolveum.
the class YamlLexicalProcessor method createJacksonGenerator.
public YAMLGenerator createJacksonGenerator(StringWriter out) throws SchemaException {
try {
MidpointYAMLFactory factory = new MidpointYAMLFactory();
MidpointYAMLGenerator generator = (MidpointYAMLGenerator) factory.createGenerator(out);
generator.setPrettyPrinter(new DefaultPrettyPrinter());
generator.setCodec(configureMapperForSerialization());
return generator;
} catch (IOException ex) {
throw new SchemaException("Schema error during serializing to JSON.", ex);
}
}
Aggregations