Search in sources :

Example 11 with Properties

use of io.atlasmap.v2.Properties in project atlasmap by atlasmap.

the class BaseMarshallerTest method generatePropertyReferenceMapping.

protected AtlasMapping generatePropertyReferenceMapping() {
    AtlasMapping mapping = generateAtlasMapping();
    PropertyField inputField = new PropertyField();
    inputField.setName("foo");
    Mapping fm = (Mapping) mapping.getMappings().getMapping().get(0);
    fm.getInputField().add(inputField);
    Property p = new Property();
    p.setName("foo");
    p.setValue("bar");
    mapping.setProperties(new Properties());
    mapping.getProperties().getProperty().add(p);
    return mapping;
}
Also used : AtlasMapping(io.atlasmap.v2.AtlasMapping) PropertyField(io.atlasmap.v2.PropertyField) Mapping(io.atlasmap.v2.Mapping) AtlasMapping(io.atlasmap.v2.AtlasMapping) Properties(io.atlasmap.v2.Properties) Property(io.atlasmap.v2.Property)

Aggregations

Properties (io.atlasmap.v2.Properties)7 Property (io.atlasmap.v2.Property)5 AtlasMapping (io.atlasmap.v2.AtlasMapping)4 JsonProcessingException (com.fasterxml.jackson.core.JsonProcessingException)2 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)2 JsonDataSource (io.atlasmap.json.v2.JsonDataSource)2 DataSource (io.atlasmap.v2.DataSource)2 LookupTables (io.atlasmap.v2.LookupTables)2 Mapping (io.atlasmap.v2.Mapping)2 Mappings (io.atlasmap.v2.Mappings)2 XmlDataSource (io.atlasmap.xml.v2.XmlDataSource)2 Test (org.junit.jupiter.api.Test)2 AtlasSession (io.atlasmap.api.AtlasSession)1 ADMArchiveHandler (io.atlasmap.core.ADMArchiveHandler)1 ClassInspectionRequest (io.atlasmap.java.v2.ClassInspectionRequest)1 ClassInspectionResponse (io.atlasmap.java.v2.ClassInspectionResponse)1 AtlasService (io.atlasmap.service.AtlasService)1 BaseMapping (io.atlasmap.v2.BaseMapping)1 DataSourceMetadata (io.atlasmap.v2.DataSourceMetadata)1 Json (io.atlasmap.v2.Json)1