use of io.atlasmap.json.v2.JsonField in project atlasmap by atlasmap.
the class JsonFieldWriterTest method write.
private void write(Path path, String fieldPath, Object testObject, FieldType fieldType) throws Exception, IOException, JsonGenerationException, JsonMappingException {
JsonField field = AtlasJsonModelFactory.createJsonField();
field.setPath(fieldPath);
field.setValue(testObject);
field.setFieldType(fieldType);
write(field);
writer.getObjectMapper().writeValue(path.toFile(), writer.getRootNode());
}
use of io.atlasmap.json.v2.JsonField in project atlasmap by atlasmap.
the class JsonFieldWriterTest method writeString.
public void writeString(String path, String value) throws Exception {
JsonField field = AtlasJsonModelFactory.createJsonField();
field.setValue(value);
field.setStatus(FieldStatus.SUPPORTED);
field.setFieldType(FieldType.STRING);
field.setPath(path);
write(field);
}
use of io.atlasmap.json.v2.JsonField in project atlasmap by atlasmap.
the class JsonJsonFieldActionsTest method createField.
protected Field createField(String path) {
JsonField f = new JsonField();
f.setPath(path);
f.setFieldType(FieldType.STRING);
return f;
}
use of io.atlasmap.json.v2.JsonField in project atlasmap by atlasmap.
the class XmlJsonFlatMappingTest method generateJsonField.
protected JsonField generateJsonField(String path) {
JsonField jsonField = AtlasJsonModelFactory.createJsonField();
jsonField.setPath(path);
return jsonField;
}
use of io.atlasmap.json.v2.JsonField in project atlasmap by atlasmap.
the class JsonJsonFlatMappingTest method generateJsonField.
protected JsonField generateJsonField(String path) {
JsonField field = AtlasJsonModelFactory.createJsonField();
field.setPath(path);
return field;
}
Aggregations