View Javadoc

1   /*
2    *  soapUI, copyright (C) 2004-2009 eviware.com 
3    *
4    *  soapUI is free software; you can redistribute it and/or modify it under the 
5    *  terms of version 2.1 of the GNU Lesser General Public License as published by 
6    *  the Free Software Foundation.
7    *
8    *  soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without 
9    *  even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
10   *  See the GNU Lesser General Public License for more details at gnu.org.
11   */
12  
13  package com.eviware.soapui.impl.wsdl;
14  
15  import java.io.IOException;
16  
17  import org.apache.xmlbeans.XmlException;
18  
19  import com.eviware.soapui.impl.WorkspaceImpl;
20  import com.eviware.soapui.model.project.ProjectFactory;
21  import com.eviware.soapui.model.workspace.Workspace;
22  import com.eviware.soapui.support.SoapUIException;
23  
24  public class WsdlProjectFactory implements ProjectFactory<WsdlProject>
25  {
26  
27  	public static final String WSDL_TYPE = "wsdl";
28  
29  	public WsdlProject createNew() throws XmlException, IOException, SoapUIException
30  	{
31  		return new WsdlProject();
32  	}
33  
34  	public WsdlProject createNew( String path ) throws XmlException, IOException, SoapUIException
35  	{
36  		return new WsdlProject( path );
37  	}
38  
39  	public WsdlProject createNew( String projectFile, String projectPassword )
40  	{
41  		return new WsdlProject( projectFile, ( WorkspaceImpl )null, true, true, null, projectPassword );
42  	}
43  
44  	public WsdlProject createNew( Workspace workspace )
45  	{
46  		return new WsdlProject( null, ( WorkspaceImpl )workspace, true );
47  	}
48  
49  	public WsdlProject createNew( String path, Workspace workspace )
50  	{
51  		return new WsdlProject( path, ( WorkspaceImpl )workspace, true );
52  	}
53  
54  	public WsdlProject createNew( String path, Workspace workspace, boolean create )
55  	{
56  		return new WsdlProject( path, ( WorkspaceImpl )workspace, create, true, null, null );
57  	}
58  
59  	public WsdlProject createNew( String path, Workspace workspace, boolean create, boolean open, String tempName,
60  			String projectPassword )
61  	{
62  		return new WsdlProject( path, ( WorkspaceImpl )workspace, create, open, tempName, projectPassword );
63  	}
64  
65  }