/** * Look for a element by its qname. Searches through all the schemas * @param name * @return the element. */ public XmlSchemaElement getElementByName(QName name) { return this.getElementByName(name, true, null); }
/** * Look for a element by its qname. Searches through all the schemas * @param name * @return the element. */ public XmlSchemaElement getElementByName(QName name) { return this.getElementByName(name, true, null); }
private boolean isExistSchemaElement(XmlSchema schema, QName qn) { return schema.getElementByName(qn) != null; }
public XmlSchemaElement getSchemaElement(QName elementQName) { XmlSchemaElement element; for (int i = 0; i < schemaList.size(); i++) { XmlSchema schema = (XmlSchema) schemaList.get(i); if (schema != null) { element = schema.getElementByName(elementQName); if (element != null) { return element; } } } return null; }
public XmlSchemaElement getSchemaElement(QName elementQName) { XmlSchemaElement element; for (int i = 0; i < schemaList.size(); i++) { XmlSchema schema = (XmlSchema) schemaList.get(i); if (schema != null) { element = schema.getElementByName(elementQName); if (element != null) { return element; } } } return null; }
public XmlSchema getSchemaForElement(QName name) { for (XmlSchema schema : schemaCollection.getXmlSchemas()) { if (name.getNamespaceURI().equals(schema.getTargetNamespace())) { if (schema.getElementByName(name.getLocalPart()) != null) { return schema; } else if (schema.getElementByName(name) != null) { return schema; } } } return null; }
public XmlSchema getSchemaForElement(QName name) { for (XmlSchema schema : schemaCollection.getXmlSchemas()) { if (name.getNamespaceURI().equals(schema.getTargetNamespace())) { if (schema.getElementByName(name.getLocalPart()) != null) { return schema; } else if (schema.getElementByName(name) != null) { return schema; } } } return null; }
/** * get an element by the name in the local schema * * @param name * @return the element. */ public XmlSchemaElement getElementByName(String name) { QName nameToSearchFor = new QName(this.getTargetNamespace(),name); return this.getElementByName(nameToSearchFor, false, null); }
public XmlSchema getSchemaForElement(QName name) { for (XmlSchema schema : schemaCollection.getXmlSchemas()) { if (name.getNamespaceURI().equals(schema.getTargetNamespace())) { if (schema.getElementByName(name.getLocalPart()) != null) { return schema; } else if (schema.getElementByName(name) != null) { return schema; } } } return null; }
public XmlSchema getSchemaForElement(QName name) { for (XmlSchema schema : schemaCollection.getXmlSchemas()) { if (name.getNamespaceURI().equals(schema.getTargetNamespace())) { if (schema.getElementByName(name.getLocalPart()) != null) { return schema; } else if (schema.getElementByName(name) != null) { return schema; } } } return null; }
public XmlSchema getSchemaForElement(QName name) { for (XmlSchema schema : schemaCollection.getXmlSchemas()) { if (name.getNamespaceURI().equals(schema.getTargetNamespace())) { if (schema.getElementByName(name.getLocalPart()) != null) { return schema; } else if (schema.getElementByName(name) != null) { return schema; } } } return null; }
/** * get an element by the name in the local schema * * @param name * @return the element. */ public XmlSchemaElement getElementByName(String name) { QName nameToSearchFor = new QName(this.getTargetNamespace(),name); return this.getElementByName(nameToSearchFor, false, null); }
public XmlSchemaElement getElementByQName(QName qname) { String uri = qname.getNamespaceURI(); for (Iterator iter = schemas.entrySet().iterator(); iter.hasNext(); ) { Map.Entry entry = (Map.Entry) iter.next(); if (((SchemaKey) entry.getKey()).getNamespace().equals(uri)) { XmlSchemaElement element = ((XmlSchema) entry.getValue()).getElementByName(qname); if (element != null) { return element; } } } return null; }
public XmlSchemaElement getElementByQName(QName qname) { String uri = qname.getNamespaceURI(); if (schema != null && schema.getTargetNamespace() != null && schema.getTargetNamespace().equals(uri)) { return schema.getElementByName(qname); } return null; }
public XmlSchemaElement getElementByQName(QName qname) { String uri = qname.getNamespaceURI(); if (schema != null && schema.getTargetNamespace() != null && schema.getTargetNamespace().equals(uri)) { return schema.getElementByName(qname); } return null; }
public XmlSchemaElement getElementByQName(QName qname) { String uri = qname.getNamespaceURI(); if (schema != null && schema.getTargetNamespace() != null && schema.getTargetNamespace().equals(uri)) { return schema.getElementByName(qname); } return null; }
public XmlSchemaElement getElementByQName(QName qname) { String uri = qname.getNamespaceURI(); if (schema != null && schema.getTargetNamespace() != null && schema.getTargetNamespace().equals(uri)) { return schema.getElementByName(qname); } return null; }
private static XmlSchemaElement getSchemaObject(WSDLToCorbaBinding wsdlToCorbaBinding, QName typeName) { SchemaCollection schemaList = wsdlToCorbaBinding.getHelper().getXMLSchemaList(); for (XmlSchema s : schemaList.getXmlSchemas()) { XmlSchemaElement e = s.getElementByName(typeName); if (e != null) { return e; } } return null; }
private XmlSchemaElement getElement(QName elementName) { XmlSchemaElement element = wsdlDefinition.getXmlSchemaElement(elementName); if (element == null) { XSDefinition definition = xsdFactory.createXSDefinition(); definition.setUnresolved(true); definition.setNamespace(elementName.getNamespaceURI()); definition = resolver.resolveModel(XSDefinition.class, definition, context); if (definition.getSchema() != null) { element = definition.getSchema().getElementByName(elementName); } } return element; }
private XmlSchemaElement getElement(QName elementName) { XmlSchemaElement element = wsdlDefinition.getXmlSchemaElement(elementName); if (element == null) { XSDefinition definition = xsdFactory.createXSDefinition(); definition.setUnresolved(true); definition.setNamespace(elementName.getNamespaceURI()); definition = resolver.resolveModel(XSDefinition.class, definition, context); if (definition.getSchema() != null) { element = definition.getSchema().getElementByName(elementName); } } return element; }