public List<Impt> getImports(final String arg0) { return this.wsdl.getImports(arg0); }
public NamespaceMapperImpl getNamespaces() { return this.wsdl.getNamespaces(); }
public T getTypes() { T types = null; if(typesImpl != null) { try { final Constructor c = typesImpl.getConstructors()[0]; types = (T) c.newInstance(this.wsdl.getTypes()); } catch (IllegalArgumentException e) { // do nothing e.printStackTrace(); } catch (InstantiationException e) { // do nothing e.printStackTrace(); } catch (IllegalAccessException e) { // do nothing e.printStackTrace(); } catch (InvocationTargetException e) { // do nothing e.printStackTrace(); } } else { types = this.wsdl.getTypes(); } return types; }
this.convertServices(odlDesc.getServices(), simpl, newDesc); for (final Object service : newDesc.getServices()) { if (service instanceof AbsItfService) { this.convertInternalElmtsInService((AbsItfService) service, eimpl); this.convertBindings(odlDesc.getBindings(), bimpl, newDesc); for (final Object binding : newDesc.getBindings()) { if (binding instanceof AbsItfBinding) { this.convertInternalElmtsInBinding((AbsItfBinding) binding, boimpl, binimpl, this.convertInterfaces(odlDesc.getInterfaces(), iimpl, newDesc); for (final Object itf : newDesc.getInterfaces()) { if (itf instanceof AbsItfInterfaceType) { this.convertInternalElmtsInInterface((AbsItfInterfaceType) itf, oimpl, inimpl, this.convertIncludes(odlDesc.getIncludes(), inclimpl, newDesc); this.convertImports(odlDesc.getImports(), imptimpl, newDesc); newDesc.setTypes(this.convertTypes(odlDesc.getTypes(), timpl)); for (final AbsItfSchema s : (List<AbsItfSchema>) odlDesc.getTypes().getSchemas()) { newSchemas.add(this.schemaConverter.convertSchema(s)); newDesc.getTypes().getSchemas().clear(); newDesc.getTypes().getSchemas().addAll(newSchemas); .getTypes().getImportedSchemas()) { newImportedSchemas.add(this.schemaConverter.convertImport(impt));
protected void addIncludeElementsInAllList() { for (final Incl incl : this.includes) { if (incl.getDescription() != null) { this.services.addAll(incl.getDescription().getServices()); this.bindings.addAll(incl.getDescription().getBindings()); this.interfaces.addAll(incl.getDescription().getInterfaces()); if (this.types != null) { this.types.getSchemas().addAll(incl.getDescription().getTypes().getSchemas()); } else { this.types = (T) incl.getDescription().getTypes(); } } } }
org.ow2.easywsdl.schema.api.Import impt = null; try { impt = new org.ow2.easywsdl.schema.impl.ImportImpl(this.desc.getDocumentBaseURIString(), (org.ow2.easywsdl.schema.org.w3._2001.xmlschema.Import) item, Util.convertWSDLFeatures2SchemaFeature(this.desc), imports, (SchemaReaderImpl) reader.getSchemaReader()); } catch (SchemaException e) { throw new WSDLException(e); this.schemas.add(new org.ow2.easywsdl.schema.impl.SchemaImpl(this.desc.getDocumentURI(), schema, this.desc.getNamespaces(), ((AbstractDescriptionImpl) this.desc).getSchemaLocator(), features, imports, (SchemaReaderImpl) reader.getSchemaReader()));
private Collection<? extends org.ow2.easywsdl.schema.api.Element> findElementsInAllSchema( final AbsItfDescription desc, final QName element) { final List<org.ow2.easywsdl.schema.api.Element> res = new ArrayList<org.ow2.easywsdl.schema.api.Element>(); if(desc.getTypes() != null) { for(final AbsItfSchema schema: (List<AbsItfSchema>)desc.getTypes().getSchemas()) { res.addAll(schema.findElementsInAllSchema(element)); } } for(final org.ow2.easywsdl.wsdl.api.Import impt: (List<org.ow2.easywsdl.wsdl.api.Import>)desc.getImports()) { if(impt.getDescription() != null) { res.addAll(this.findElementsInAllSchema(impt.getDescription(), element)); } } return res; }
public Binding createDefaultSoapBinding(String bindingName, Endpoint endpoint, InterfaceType itf) { Binding binding = (Binding) ((AbstractInterfaceTypeImpl) itf).getDescription().createBinding(); binding.setQName(new QName(((AbstractInterfaceTypeImpl) itf).getDescription().getTargetNamespace(), bindingName)); binding.setInterface(itf); try {
public void addNamespace(final String arg0, final String arg1) { this.wsdl.addNamespace(arg0, arg1); }
public B createBinding() { return this.wsdl.createBinding(); }
public void addImport(final Impt arg0) { this.wsdl.addImport(arg0); }
public void addBinding(final B arg0) { this.wsdl.addBinding(arg0); }
public void addService(final S arg0) { this.wsdl.addService(arg0); }
public void addInclude(final Incl arg0) throws WSDLException { this.wsdl.addInclude(arg0); }
public void addInterface(final I interfaceType) { this.wsdl.addInterface(interfaceType); }
protected void addImportElementsInAllList() { for (final Impt impt : this.imports) { if (impt.getDescription() != null) { this.services.addAll(impt.getDescription().getServices()); this.bindings.addAll(impt.getDescription().getBindings()); this.interfaces.addAll(impt.getDescription().getInterfaces()); if (this.types != null) { if (impt.getDescription().getTypes() != null) { this.types.getSchemas().addAll(impt.getDescription().getTypes().getSchemas()); } } else { this.types = (T) impt.getDescription().getTypes(); } } } }
try { impt = new org.ow2.easywsdl.schema.impl.ImportImpl(this.desc.getDocumentBaseURIString(), (org.ow2.easywsdl.schema.org.w3._2001.xmlschema.Import) item, Util.convertWSDLFeatures2SchemaFeature(this.desc), imports, (SchemaReaderImpl) reader.getSchemaReader()); } catch (SchemaException e) { throw new WSDLException(e); this.schemas.add(new org.ow2.easywsdl.schema.impl.SchemaImpl(this.desc.getDocumentURI(), schema, this.desc.getNamespaces(), ((AbstractDescriptionImpl) this.desc).getSchemaLocator(), features, imports, (SchemaReaderImpl) reader.getSchemaReader()));
public Binding createDefaultSoapBinding(String bindingName, Endpoint endpoint, InterfaceType itf) { Binding binding = (Binding) ((AbstractInterfaceTypeImpl) itf).getDescription().createBinding(); binding.setQName(new QName(((AbstractInterfaceTypeImpl) itf).getDescription().getTargetNamespace(), bindingName)); binding.setInterface(itf); try {
protected void setAllNamespacesInAllSchemas() { for (final Schema schema : this.schemas) { final Map<String, String> ns = ((org.ow2.easywsdl.schema.api.extensions.NamespaceMapperImpl) this.desc .getNamespaces()).getNamespaces(); for (final Entry<String, String> entry : ns.entrySet()) { ((org.ow2.easywsdl.schema.api.extensions.NamespaceMapperImpl) schema .getAllNamespaces()).addNamespace(entry.getKey(), entry.getValue()); } } }
public List<Impt> getImports() { return this.wsdl.getImports(); }