private GrammarInfo getGrammarInfo(Application app, List<SchemaInfo> schemaElements) { if (schemaElements == null || schemaElements.isEmpty()) { return new GrammarInfo(); } Map<String, String> nsMap = new HashMap<>(); NamedNodeMap attrMap = app.getAppElement().getAttributes(); for (int i = 0; i < attrMap.getLength(); i++) { Node node = attrMap.item(i); String nodeName = node.getNodeName(); if (nodeName.startsWith("xmlns:")) { String nsValue = node.getNodeValue(); nsMap.put(nodeName.substring(6), nsValue); } } Map<String, String> elementTypeMap = new HashMap<>(); for (SchemaInfo schemaEl : schemaElements) { populateElementTypeMap(app, schemaEl.getElement(), schemaEl.getSystemId(), elementTypeMap); } boolean noTargetNamespace = schemaElements.size() == 1 && schemaElements.get(0).getNamespaceURI().isEmpty(); return new GrammarInfo(nsMap, elementTypeMap, noTargetNamespace); }
is.setPublicId(key); compiler.getOptions().addGrammar(is); compiler.parseSchema(key, schema.getElement());
Element ele = sci.getElement(); if (context.fullValidateWSDL()) { validateSchema(ele, sci.getSystemId(), catalog, schemaCollection);
Element ele = sci.getElement(); if (context.fullValidateWSDL()) { validateSchema(ele, sci.getSystemId(), catalog, schemaCollection);
continue; Element ele = sci.getElement(); ele = removeImportElement(ele, key, catalog, done, notDone); if (ele != null) {
Element el = imp.getValue().getElement(); updateImports(el, imports); FileWriterUtil fileWriterUtil =
schema.setDocumentBaseURI(name); schema.setElement(schemaInfo.getElement());
Element el = imp.getValue().getElement(); updateImports(el, imports); FileWriterUtil fileWriterUtil =
schema.setDocumentBaseURI(name); schema.setElement(schemaInfo.getElement());
schema.setDocumentBaseURI(name); schema.setElement(schemaInfo.getElement());
try { for (SchemaInfo si : serviceInfo.getSchemas()) { Element el = si.getElement(); unsetReadonly(el); String baseURI = null; String s = StaxUtils.toString(schemaInfo.getElement(), 4); LOG.log(Level.INFO, "Schema for: " + schemaInfo.getNamespaceURI() + "\n" + s);
try { for (SchemaInfo si : serviceInfo.getSchemas()) { Element el = si.getElement(); unsetReadonly(el); String baseURI = null; String s = StaxUtils.toString(schemaInfo.getElement(), 4); LOG.log(Level.INFO, "Schema for: " + schemaInfo.getNamespaceURI() + "\n" + s);
try { for (SchemaInfo si : serviceInfo.getSchemas()) { Element el = si.getElement(); unsetReadonly(el); String baseURI = null; String s = XMLUtils.toString(schemaInfo.getElement(), 4); LOG.log(Level.INFO, "Schema for: " + schemaInfo.getNamespaceURI() + "\n" + s);
try { for (SchemaInfo si : serviceInfo.getSchemas()) { Element el = si.getElement(); unsetReadonly(el); String baseURI = null; String s = XMLUtils.toString(schemaInfo.getElement(), 4); LOG.log(Level.INFO, "Schema for: " + schemaInfo.getNamespaceURI() + "\n" + s);
Element serialized = schemaInfo.getElement(); String schemaSystemId = sch.getSourceURI(); if (null == schemaSystemId) {
addSchema(sources, sch, schemaInfo.getElement());
addSchema(sources, sch, schemaInfo.getElement());
schemaImpl.setRequired(true); schemaImpl.setElementType(WSDLConstants.QNAME_SCHEMA); schemaImpl.setElement(schemaInfo.getElement()); for (XmlSchemaExternal ext : schemaInfo.getSchema().getExternals()) { if (ext.getSchema() == null) {
schemaImpl.setRequired(true); schemaImpl.setElementType(WSDLConstants.QNAME_SCHEMA); schemaImpl.setElement(schemaInfo.getElement()); for (XmlSchemaExternal ext : schemaInfo.getSchema().getExternals()) { if (ext.getSchema() == null) {
schemaImpl.setRequired(true); schemaImpl.setElementType(WSDLConstants.QNAME_SCHEMA); schemaImpl.setElement(schemaInfo.getElement()); for (XmlSchemaExternal ext : schemaInfo.getSchema().getExternals()) { if (ext.getSchema() == null) {