XmlTypeReferenceModel fileLocation = fileLocationService.create(); String sourceSnippit = XmlUtil.nodeToString(node); fileLocation.setSourceSnippit(sourceSnippit); fileLocation.setLineNumber(lineNumber); fileLocation.setColumnNumber(columnNumber); fileLocation.setLength(node.toString().length()); fileLocation.setFile(xml); fileLocation.setXpath(xpathString); GraphService<NamespaceMetaModel> metaModelService = new GraphService<NamespaceMetaModel>( graphContext, metaModel.setSchemaLocation(namespace.getValue()); metaModel.addXmlResource(xml); fileLocation.addNamespace(metaModel);
XmlTypeReferenceModel fileLocation = fileLocationService.create(); String sourceSnippit = XmlUtil.nodeToString(node); fileLocation.setSourceSnippit(sourceSnippit); fileLocation.setLineNumber(lineNumber); fileLocation.setColumnNumber(columnNumber); fileLocation.setLength(node.toString().length()); fileLocation.setFile(xml); fileLocation.setXpath(xpathString); GraphService<NamespaceMetaModel> metaModelService = new GraphService<>( event.getGraphContext(), metaModel.setSchemaLocation(namespace.getValue()); metaModel.addXmlResource(xml); fileLocation.addNamespace(metaModel);