Search in sources :

Example 1 with XmlFields

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

the class BaseXmlInspectionServiceTest method debugFields.

protected void debugFields(Fields xmlFields) {
    for (Field field : xmlFields.getField()) {
        Assert.assertTrue(field instanceof XmlField);
        XmlField xmlField = (XmlField) field;
        printXmlField(xmlField);
        if (xmlField instanceof XmlComplexType) {
            debugFields(((XmlComplexType) xmlField).getXmlFields());
        }
    }
}
Also used : Field(io.atlasmap.v2.Field) XmlField(io.atlasmap.xml.v2.XmlField) XmlComplexType(io.atlasmap.xml.v2.XmlComplexType) XmlField(io.atlasmap.xml.v2.XmlField)

Example 2 with XmlFields

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

the class SchemaInspector method getXmlComplexType.

private XmlComplexType getXmlComplexType() {
    XmlComplexType rootComplexType = XmlComplexTypeFactory.createXmlComlexField();
    rootComplexType.setFieldType(FieldType.COMPLEX);
    rootComplexType.setXmlFields(new XmlFields());
    return rootComplexType;
}
Also used : XmlFields(io.atlasmap.xml.v2.XmlFields) XmlComplexType(io.atlasmap.xml.v2.XmlComplexType)

Example 3 with XmlFields

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

the class InstanceInspector method getXmlComplexType.

private XmlComplexType getXmlComplexType(Node childNode) {
    XmlComplexType childComplexType = XmlComplexTypeFactory.createXmlComlexField();
    childComplexType.setXmlFields(new XmlFields());
    childComplexType.setName(childNode.getNodeName());
    StringBuffer stringBuffer = new StringBuffer();
    getXmlPath(childNode, stringBuffer);
    childComplexType.setPath(stringBuffer.toString());
    return childComplexType;
}
Also used : XmlFields(io.atlasmap.xml.v2.XmlFields) XmlComplexType(io.atlasmap.xml.v2.XmlComplexType)

Aggregations

XmlComplexType (io.atlasmap.xml.v2.XmlComplexType)3 XmlFields (io.atlasmap.xml.v2.XmlFields)2 Field (io.atlasmap.v2.Field)1 XmlField (io.atlasmap.xml.v2.XmlField)1