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());
}
}
}
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;
}
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;
}
Aggregations