Search in sources :

Example 6 with Properties

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

the class BaseMarshallerTest method generateProperties.

private void generateProperties(AtlasMapping atlasMapping) {
    Property p = new Property();
    p.setName("foo");
    p.setValue("bar");
    p.setFieldType(FieldType.INTEGER);
    atlasMapping.setProperties(new Properties());
    atlasMapping.getProperties().getProperty().add(p);
}
Also used : Properties(io.atlasmap.v2.Properties) Property(io.atlasmap.v2.Property)

Example 7 with Properties

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

the class BaseMarshallerTest method generateProperties.

private void generateProperties(AtlasMapping mapping) {
    Property p = new Property();
    p.setName("foo");
    p.setValue("bar");
    p.setFieldType(FieldType.INTEGER);
    mapping.setProperties(new Properties());
    mapping.getProperties().getProperty().add(p);
}
Also used : Properties(io.atlasmap.v2.Properties) Property(io.atlasmap.v2.Property)

Example 8 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)6 Property (io.atlasmap.v2.Property)5 AtlasMapping (io.atlasmap.v2.AtlasMapping)2 JsonProcessingException (com.fasterxml.jackson.core.JsonProcessingException)1 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 JsonDataSource (io.atlasmap.json.v2.JsonDataSource)1 Audits (io.atlasmap.v2.Audits)1 DataSource (io.atlasmap.v2.DataSource)1 LookupTables (io.atlasmap.v2.LookupTables)1 Mapping (io.atlasmap.v2.Mapping)1 Mappings (io.atlasmap.v2.Mappings)1 PropertyField (io.atlasmap.v2.PropertyField)1 Validations (io.atlasmap.v2.Validations)1 XmlDataSource (io.atlasmap.xml.v2.XmlDataSource)1 Step (io.syndesis.common.model.integration.Step)1 DataMapperStepDefinition (io.syndesis.qe.bdd.entities.DataMapperStepDefinition)1 Method (java.lang.reflect.Method)1 Parameter (java.lang.reflect.Parameter)1 Map (java.util.Map)1 Entry (java.util.Map.Entry)1