package com.ebmwebsourcing.petals.services.filetransfer.generated; import com.sun.java.xml.ns.jbi.AbstractEndpoint; /****************************************************************************** * Copyright (c) 2008-2013, Linagora * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Linagora - initial API and implementation *******************************************************************************/ /** * This class was generated by EMF JET. * <b>DO NOT MODIFY IT!</b> * @author Adrien LOUIS - EBM WebSourcing */ public class WriteWsdl24 { protected static String nl; public static synchronized WriteWsdl24 create(String lineSeparator) { nl = lineSeparator; WriteWsdl24 result = new WriteWsdl24(); nl = null; return result; } public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; protected final String TEXT_1 = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + NL + "<wsdl:definitions name=\""; protected final String TEXT_2 = "\"" + NL + " xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\"" + NL + " xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\"" + NL + " xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"" + NL + " xmlns:tns=\""; protected final String TEXT_3 = "\"" + NL + " targetNamespace=\""; protected final String TEXT_4 = "\">" + NL + "\t" + NL + "\t<!-- Messages -->" + NL + "\t<wsdl:message name=\"writeRequest\">" + NL + "\t\t<wsdl:part name=\"writePartRequest\" type=\"xsd:anyType\" />" + NL + "\t</wsdl:message>" + NL + "\t" + NL + "\t<!-- Port Type -->" + NL + "\t<wsdl:portType name=\"WriteFiles\">" + NL + "\t\t<wsdl:operation name=\"write\">" + NL + "\t\t\t<wsdl:input message=\"tns:writeRequest\" />" + NL + "\t\t</wsdl:operation>" + NL + "\t</wsdl:portType>" + NL + " " + NL + " <!-- Binding -->" + NL + "\t<wsdl:binding name=\"WriteBinding\" type=\"tns:WriteFiles\">" + NL + "\t\t<soap:binding style=\"document\" transport=\"http://schemas.xmlsoap.org/soap/http\" />" + NL + "\t\t\t" + NL + "\t\t<wsdl:operation name=\"write\">" + NL + "\t\t\t<wsdl:input>" + NL + "\t\t\t\t<soap:body use=\"literal\" />" + NL + "\t\t\t</wsdl:input>" + NL + "\t\t</wsdl:operation>" + NL + " </wsdl:binding>" + NL + "" + NL + " <!-- Service -->" + NL + " <wsdl:service name=\""; protected final String TEXT_5 = "\">" + NL + " <wsdl:port binding=\"tns:WriteBinding\" name=\""; protected final String TEXT_6 = "\">" + NL + " <soap:address location=\"http://petals.does.not.care\"/>" + NL + " </wsdl:port>" + NL + " </wsdl:service>" + NL + "</wsdl:definitions>"; protected final String TEXT_7 = NL; public String generate( Object argument ) { final StringBuffer stringBuffer = new StringBuffer(); AbstractEndpoint data = (AbstractEndpoint) argument; stringBuffer.append(TEXT_1); stringBuffer.append(data.getInterfaceName()); stringBuffer.append(TEXT_2); stringBuffer.append(data.getInterfaceName().getNamespaceURI() ); stringBuffer.append(TEXT_3); stringBuffer.append(data.getInterfaceName().getNamespaceURI() ); stringBuffer.append(TEXT_4); stringBuffer.append(data.getServiceName().getLocalPart() ); stringBuffer.append(TEXT_5); stringBuffer.append(data.getEndpointName()); stringBuffer.append(TEXT_6); stringBuffer.append(TEXT_7); return stringBuffer.toString(); } }