Search in sources :

Example 46 with XmlField

use of io.atlasmap.xml.v2.XmlField in project atlasmap by atlasmap.

the class XmlXmlFieldActionsTest method createField.

protected Field createField(String path) {
    XmlField f = new XmlField();
    f.setPath(path);
    f.setFieldType(FieldType.STRING);
    return f;
}
Also used : XmlField(io.atlasmap.xml.v2.XmlField)

Example 47 with XmlField

use of io.atlasmap.xml.v2.XmlField in project atlasmap by atlasmap.

the class XmlJsonFlatMappingTest method generateXmlField.

protected XmlField generateXmlField(String parent, String path) {
    XmlField xmlField = AtlasXmlModelFactory.createXmlField();
    xmlField.setPath(parent + "@" + path);
    return xmlField;
}
Also used : XmlField(io.atlasmap.xml.v2.XmlField)

Example 48 with XmlField

use of io.atlasmap.xml.v2.XmlField in project atlasmap by atlasmap.

the class XmlJavaFlatMappingTest method generateXmlField.

protected XmlField generateXmlField(String parent, String path) {
    XmlField xmlField = AtlasXmlModelFactory.createXmlField();
    xmlField.setPath(parent + "@" + path);
    return xmlField;
}
Also used : XmlField(io.atlasmap.xml.v2.XmlField)

Aggregations

XmlField (io.atlasmap.xml.v2.XmlField)46 Test (org.junit.Test)31 AtlasInternalSession (io.atlasmap.spi.AtlasInternalSession)21 Head (io.atlasmap.spi.AtlasInternalSession.Head)21 XmlComplexType (io.atlasmap.xml.v2.XmlComplexType)11 XmlDocument (io.atlasmap.xml.v2.XmlDocument)8 AtlasMapping (io.atlasmap.v2.AtlasMapping)7 Mapping (io.atlasmap.v2.Mapping)7 Field (io.atlasmap.v2.Field)6 XmlNamespace (io.atlasmap.xml.v2.XmlNamespace)6 File (java.io.File)6 Validation (io.atlasmap.v2.Validation)4 FieldType (io.atlasmap.v2.FieldType)3 Restriction (io.atlasmap.xml.v2.Restriction)3 List (java.util.List)3 Collectors (java.util.stream.Collectors)3 AtlasMappingUtil (io.atlasmap.core.AtlasMappingUtil)2 DefaultAtlasConversionService (io.atlasmap.core.DefaultAtlasConversionService)2 AtlasModuleDetail (io.atlasmap.spi.AtlasModuleDetail)2 AtlasModuleMode (io.atlasmap.spi.AtlasModuleMode)2