Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
easyWSDL - easyWSDL toolbox Platform. Copyright (c) 2008, eBM Websourcing All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the University of California, Berkeley nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 package org.ow2.easywsdl.wsdl.decorator;
 
 import java.net.URI;
 import java.util.List;
 import java.util.Map;
 
 

Author(s):
Nicolas Salatge - eBM WebSourcing
 
 @SuppressWarnings("unchecked")
 public class DecoratorDescriptionImpl<S extends AbsItfService, E extends AbsItfEndpoint, B extends AbsItfBinding, I extends AbsItfInterfaceType, Incl extends AbsItfInclude, Impt extends AbsItfImport, T extends AbsItfTypesextends AbstractWSDLElementImpl implements Decorator {

 
 	private static final long serialVersionUID = 1L;
 
 	protected AbsItfDescription<S, E, B, I, Incl, Impt, T> wsdl;
 
 	private Class<? extends DecoratorTypesImpltypesImpl;
 
 	public DecoratorDescriptionImpl(final AbsItfDescription<S, E, B, I, Incl, Impt, T> wsdlClass<? extends DecoratorTypesImpltypesImpl)
 	throws WSDLException {
 		final AbsItfDescription wsdlT = wsdl;
 		this. = wsdlT;
 		this. = typesImpl;
 	}
 
 		Description res = null;
 		AbsItfDescription tmp = this.;
 		while ((tmp != null) && (tmp instanceof DecoratorDescriptionImpl)) {
 		}
 		if (tmp instanceof Description) {
 			res = (Descriptiontmp;
 		}
 		return res;
 	}
 
 	public void addBinding(final B arg0) {
 		this..addBinding(arg0);
 	}
 
 	public void addImport(final Impt arg0) {
 		this..addImport(arg0);
	}
	public void addInclude(final Incl arg0throws WSDLException {
		this..addInclude(arg0);
	}
	public void addNamespace(final String arg0final String arg1) {
		this..addNamespace(arg0arg1);
	}
	public void addService(final S arg0) {
		this..addService(arg0);
	}
	public B createBinding() {
		return this..createBinding();
	}
	public Impt createImport() throws WSDLExceptionWSDLImportException {
		return this..createImport();
	}
	public S createService() {
		return this..createService();
	}
	public T createTypes() {
		return this..createTypes();
	}
	public B getBinding(final QName arg0) {
		return this..getBinding(arg0);
	}
	public List<B> getBindings() {
		return this..getBindings();
	}
	}
	public List<Impt> getImports() {
		return this..getImports();
	}
	public List<Impt> getImports(final String arg0) {
		return this..getImports(arg0);
	}
	public List<Incl> getIncludes() {
		return this..getIncludes();
	}
	public List<Incl> getIncludes(final String arg0) {
		return this..getIncludes(arg0);
	}
    public Incl getInclude(final URI arg0) {
        return this..getInclude(arg0);
    }
		return this..getNamespaces();
	}
	public QName getQName() throws WSDLException {
		return this..getQName();
	}
		return this..getSchemaLocation();
	}
	public S getService(final QName arg0) {
		return this..getService(arg0);
	}
	public List<S> getServices() {
		return this..getServices();
	}
		return this..getTargetNamespace();
	}
/*	public T getTypes() {
		return this.wsdl.getTypes();
	}*/
	public T getTypes() {
types = null;
		if( != null) {
			try {
				types = (T) c.newInstance(this..getTypes());
catch (IllegalArgumentException e) {
				// do nothing
catch (InstantiationException e) {
				// do nothing
catch (IllegalAccessException e) {
				// do nothing
catch (InvocationTargetException e) {
				// do nothing
			}
else {
			types = this..getTypes();
		}
		return types;
	}
		return this..getVersion();
	}
	public B removeBinding(final QName arg0) {
		return this..removeBinding(arg0);
	}
	public Impt removeImport(final Impt arg0) {
		return this..removeImport(arg0);
	}
	public Incl removeInclude(final Incl arg0throws WSDLException {
		return this..removeInclude(arg0);
	}
	public String removeNamespace(final String arg0) {
		return this..removeNamespace(arg0);
	}
	public S removeService(final QName arg0) {
		return this..removeService(arg0);
	}
	public void setDocumentURI(final URI arg0) {
	}
    public void setDocumentBaseURI(final URI arg0) {
        this..setDocumentBaseURI(arg0);
    }
    
	public void setQName(final QName arg0throws WSDLException {
		this..setQName(arg0);
	}
	public void setTargetNamespace(final String arg0) {
	}
	public void setTypes(final T type) {
		if((type instanceof DecoratorTypesImpl)&&(this. instanceof AbstractDescriptionImpl)) {
else {
			this..setTypes(type);
		}
	}
		return this..createDocumentation();
	}
		return this..getDocumentation();
	}
		return this..getOtherAttributes();
	}
	public List<ElementgetOtherElements() throws XmlException {
		return this..getOtherElements();
	}
	public void setDocumentation(final Documentation arg0) {
	}
	public I createInterface() {
		return this..createInterface();
	}
	public I getInterface(final QName name) {
		return this..getInterface(name);
	}
	public List<I> getInterfaces() {
		return this..getInterfaces();
	}
	public I removeInterface(final QName name) {
		return this..removeInterface(name);
	}
	public void addInterface(final I interfaceType) {
		this..addInterface(interfaceType);
	}
	public B createDefaultSoapBinding(String bindingName,
endpoint, I itf) {
		return this..createDefaultSoapBinding(bindingNameendpointitf);
	}
	}
	public Object getModel() {
	}
	}
		return this.;
	}
	public URI getDocumentURI() {
		return this.getDocumentBaseURI();
	}
    public URI getDocumentBaseURI() {
        return this..getDocumentBaseURI();
    }
	public String toString() {
		String res = null;
		if(this.getDecorator() != null) {
			res = this.getDecorator().toString();
		}
		return res;
	}
New to GrepCode? Check out our FAQ X