private SchemaInfo createSchemaInfo(Element schemaEl, String systemId) { SchemaInfo info = new SchemaInfo(schemaEl.getAttribute("targetNamespace")); info.setElement(schemaEl); info.setSystemId(systemId); // Lets try to read the schema to deal with the possible // eviction of the DOM element from the memory try { XmlSchema xmlSchema = schemaCollection.read(schemaEl, systemId); info.setSchema(xmlSchema); } catch (Exception ex) { // may be due to unsupported resolvers for protocols like // classpath: or not the valid schema definition, may not be critical // for the purpose of the schema compilation. } return info; }
private XmlSchemaElement createXsElement(XmlSchema schema, MessagePartInfo part, QName typeName, SchemaInfo schemaInfo) { XmlSchemaElement el = new XmlSchemaElement(schema, true); el.setName(part.getElementQName().getLocalPart()); el.setNillable(true); el.setSchemaTypeName(typeName); part.setXmlSchema(el); schemaInfo.setElement(null); return el; }
xmlSchema = col.read(d, systemId); schema.setSchema(xmlSchema); schema.setElement(d.getDocumentElement());
xmlSchema = col.read(d, systemId); schema.setSchema(xmlSchema); schema.setElement(d.getDocumentElement());
xmlSchema = col.read(d, systemId); schema.setSchema(xmlSchema); schema.setElement(d.getDocumentElement());
schemaInfo.setSchema(xmlSchema); schemaInfo.setSystemId(systemId); schemaInfo.setElement(schemaElem); schemaInfos.add(schemaInfo); schemaCount++;
schemaInfo.setSchema(xmlSchema); schemaInfo.setSystemId(systemId); schemaInfo.setElement(schemaElem); schemaInfos.add(schemaInfo); schemaCount++;
schemaInfo.setSchema(xmlSchema); schemaInfo.setSystemId(systemId); schemaInfo.setElement(schemaElem); schemaInfos.add(schemaInfo); schemaCount++;
schemaInfo.setSchema(xmlSchema); schemaInfo.setSystemId(systemId); schemaInfo.setElement(schemaElem); schemaInfos.add(schemaInfo); schemaCount++;
schemaInfo.setSchema(xmlSchema); schemaInfo.setSystemId(systemId); schemaInfo.setElement(schemaElem); schemaInfos.add(schemaInfo); schemaCount++;
el.setNillable(true); schemaInfo.setElement(null); el.setName(part.getElementQName().getLocalPart()); schemaInfo.setElement(null);
schemaInfo.setElement(null); //cached element is now invalid XmlSchemaElement el = new XmlSchemaElement(schema, true); el.setName(qname.getLocalPart());
schemaInfo.setElement(null); //cached element is now invalid XmlSchemaElement el = new XmlSchemaElement(schema, true); el.setName(qname.getLocalPart());
schemaInfo.setElement(null); //cached element is now invalid XmlSchemaElement el = new XmlSchemaElement(schema, true); el.setName(qname.getLocalPart());
protected void checkForElement(ServiceInfo serviceInfo, MessagePartInfo mpi) { SchemaInfo si = getOrCreateSchema(serviceInfo, mpi.getElementQName().getNamespaceURI(), getQualifyWrapperSchema()); XmlSchemaElement e = si.getSchema().getElementByName(mpi.getElementQName().getLocalPart()); if (e != null) { mpi.setXmlSchema(e); return; } XmlSchema schema = si.getSchema(); si.setElement(null); //cached element is now invalid XmlSchemaElement el = new XmlSchemaElement(schema, true); el.setName(mpi.getElementQName().getLocalPart()); el.setNillable(true); XmlSchemaType tp = (XmlSchemaType)mpi.getXmlSchema(); if (tp == null) { throw new ServiceConstructionException(new Message("INTRACTABLE_PART", LOG, mpi.getName(), mpi.getMessageInfo().getName())); } el.setSchemaTypeName(tp.getQName()); mpi.setXmlSchema(el); }
protected void checkForElement(ServiceInfo serviceInfo, MessagePartInfo mpi) { SchemaInfo si = getOrCreateSchema(serviceInfo, mpi.getElementQName().getNamespaceURI(), getQualifyWrapperSchema()); XmlSchemaElement e = si.getSchema().getElementByName(mpi.getElementQName().getLocalPart()); if (e != null) { mpi.setXmlSchema(e); return; } XmlSchema schema = si.getSchema(); si.setElement(null); //cached element is now invalid XmlSchemaElement el = new XmlSchemaElement(schema, true); el.setName(mpi.getElementQName().getLocalPart()); el.setNillable(true); XmlSchemaType tp = (XmlSchemaType)mpi.getXmlSchema(); if (tp == null) { throw new ServiceConstructionException(new Message("INTRACTABLE_PART", LOG, mpi.getName(), mpi.getMessageInfo().getName())); } el.setSchemaTypeName(tp.getQName()); mpi.setXmlSchema(el); }
protected void checkForElement(ServiceInfo serviceInfo, MessagePartInfo mpi) { SchemaInfo si = getOrCreateSchema(serviceInfo, mpi.getElementQName().getNamespaceURI(), getQualifyWrapperSchema()); XmlSchemaElement e = si.getSchema().getElementByName(mpi.getElementQName().getLocalPart()); if (e != null) { mpi.setXmlSchema(e); return; } XmlSchema schema = si.getSchema(); si.setElement(null); //cached element is now invalid XmlSchemaElement el = new XmlSchemaElement(schema, true); el.setName(mpi.getElementQName().getLocalPart()); el.setNillable(true); XmlSchemaType tp = (XmlSchemaType)mpi.getXmlSchema(); if (tp == null) { throw new ServiceConstructionException(new Message("INTRACTABLE_PART", LOG, mpi.getName(), mpi.getMessageInfo().getName())); } el.setSchemaTypeName(tp.getQName()); mpi.setXmlSchema(el); }
info.setElement(null); // the cached schema will be no good XmlSchemaElement el = new XmlSchemaElement(schema, true); el.setName(wrapperName.getLocalPart());
info.setElement(null); // the cached schema will be no good XmlSchemaElement el = new XmlSchemaElement(schema, true); el.setName(wrapperName.getLocalPart());
info.setElement(null); // the cached schema will be no good XmlSchemaElement el = new XmlSchemaElement(schema, true); el.setName(wrapperName.getLocalPart());