use of org.talend.hl7.Field in project atlasmap by atlasmap.
the class BaseMappingTest method getAtlasMappingWithLookupTables.
protected AtlasMapping getAtlasMappingWithLookupTables(String... names) {
AtlasMapping mapping = this.getAtlasMappingFullValid();
LookupTables lookupTables = new LookupTables();
mapping.setLookupTables(lookupTables);
for (String name : names) {
LookupTable lookupTable = new LookupTable();
lookupTable.setName(name);
lookupTable.setDescription("desc_".concat(name));
lookupTables.getLookupTable().add(lookupTable);
Mapping lookupFieldMapping = AtlasModelFactory.createMapping(MappingType.LOOKUP);
lookupFieldMapping.setDescription("field_desc_".concat(name));
lookupFieldMapping.setLookupTableName(name);
Field inputField = createInputJavaField("inputName");
Field outputField = createInputJavaField("outputName");
lookupFieldMapping.getInputField().add(inputField);
lookupFieldMapping.getOutputField().add(outputField);
mapping.getMappings().getMapping().add(lookupFieldMapping);
}
return mapping;
}
use of org.talend.hl7.Field in project atlasmap by atlasmap.
the class BaseDefaultAtlasContextTest method populateSourceField.
protected Field populateSourceField(Mapping mapping, FieldType type, Object value, int index) {
Field field = populateSourceField(mapping, type, value);
field.setIndex(index);
return field;
}
use of org.talend.hl7.Field in project atlasmap by atlasmap.
the class BaseDefaultAtlasContextTest method populateSourceField.
protected Field populateSourceField(Mapping mapping, String docId, FieldType type, Object value) {
Field field = populateSourceField(mapping, type, value);
field.setDocId(docId);
return field;
}
use of org.talend.hl7.Field in project atlasmap by atlasmap.
the class BaseDefaultAtlasContextTest method populateSourceField.
protected Field populateSourceField(Mapping mapping, String docId, FieldType type, Object value, int index) {
Field field = populateSourceField(mapping, type, value);
field.setDocId(docId);
field.setIndex(index);
return field;
}
use of org.talend.hl7.Field in project atlasmap by atlasmap.
the class BaseDefaultAtlasContextTest method prepareTargetField.
protected Field prepareTargetField(Mapping mapping, String path) {
Field field = new SimpleField();
field.setPath(path);
mapping.getOutputField().add(field);
return field;
}
Aggregations