com.eviware.soapui.impl.wsdl
Class WsdlProject

java.lang.Object
  extended by com.eviware.soapui.model.support.AbstractModelItem
      extended by com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem<T>
          extended by com.eviware.soapui.impl.wsdl.AbstractTestPropertyHolderWsdlModelItem<com.eviware.soapui.config.ProjectConfig>
              extended by com.eviware.soapui.impl.wsdl.WsdlProject
All Implemented Interfaces:
MutableTestPropertyHolder, ModelItem, Project, TestModelItem, TestPropertyHolder, PropertyChangeNotifier

public class WsdlProject
extends AbstractTestPropertyHolderWsdlModelItem<com.eviware.soapui.config.ProjectConfig>
implements Project

WSDL project implementation

Author:
Ole.Matzura

Field Summary
static java.lang.String AFTER_LOAD_SCRIPT_PROPERTY
           
static java.lang.String BEFORE_SAVE_SCRIPT_PROPERTY
           
 
Fields inherited from interface com.eviware.soapui.model.project.Project
JBOSSWS_NATURE_ID, SOAPUI_NATURE_ID
 
Fields inherited from interface com.eviware.soapui.model.ModelItem
DESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTY
 
Constructor Summary
WsdlProject()
           
WsdlProject(java.lang.String path)
           
WsdlProject(java.lang.String path, WorkspaceImpl workspace)
           
WsdlProject(java.lang.String path, WorkspaceImpl workspace, boolean create)
           
WsdlProject(java.lang.String path, WorkspaceImpl workspace, boolean create, boolean open, java.lang.String tempName)
           
WsdlProject(WorkspaceImpl workspace)
           
 
Method Summary
 WsdlInterface addNewInterface(java.lang.String name)
           
 WsdlMockService addNewMockService(java.lang.String name)
           
 WsdlTestSuite addNewTestSuite(java.lang.String name)
           
 void addProjectListener(ProjectListener listener)
           
 void afterLoad()
           
 void beforeSave()
           
 void fireInterfaceAdded(WsdlInterface iface)
           
 void fireInterfaceRemoved(WsdlInterface iface)
           
 void fireInterfaceUpdated(WsdlInterface iface)
           
 void fireMockServiceAdded(WsdlMockService mockService)
           
 void fireMockServiceRemoved(WsdlMockService mockService)
           
 void fireTestSuiteAdded(WsdlTestSuite testSuite)
           
 void fireTestSuiteRemoved(WsdlTestSuite testSuite)
           
 java.lang.String getAfterLoadScript()
           
 java.lang.String getBeforeSaveScript()
           
 java.util.List<? extends ModelItem> getChildren()
           
 PropertyExpansionContext getContext()
           
 java.lang.String getDescription()
           
 EndpointStrategy getEndpointStrategy()
           
 javax.swing.ImageIcon getIcon()
           
 WsdlInterface getInterfaceAt(int index)
           
 WsdlInterface getInterfaceByBindingName(javax.xml.namespace.QName bindingName)
           
 WsdlInterface getInterfaceByName(java.lang.String interfaceName)
           
 int getInterfaceCount()
           
 java.util.List<Interface> getInterfaceList()
           
 java.util.Map<java.lang.String,Interface> getInterfaces()
           
 WsdlMockService getMockServiceAt(int index)
           
 WsdlMockService getMockServiceByName(java.lang.String mockServiceName)
           
 int getMockServiceCount()
           
 java.util.List<MockService> getMockServiceList()
           
 java.util.Map<java.lang.String,MockService> getMockServices()
           
 java.lang.String getPath()
           
 WsdlTestSuite getTestSuiteAt(int index)
           
 WsdlTestSuite getTestSuiteByName(java.lang.String testSuiteName)
           
 int getTestSuiteCount()
           
 java.util.List<TestSuite> getTestSuiteList()
           
 java.util.Map<java.lang.String,TestSuite> getTestSuites()
           
 WorkspaceImpl getWorkspace()
           
 DefaultWssContainer getWssContainer()
           
 boolean hasNature(java.lang.String natureId)
           
 WsdlInterface importInterface(WsdlInterface iface, boolean importEndpoints, boolean createCopy)
           
 WsdlMockService importMockService(WsdlMockService mockService, java.lang.String name, boolean createCopy)
           
 WsdlTestSuite importTestSuite(WsdlTestSuite testSuite, java.lang.String name, boolean createCopy)
           
 WsdlInterface[] importWsdl(java.lang.String url, boolean createRequests)
           
 WsdlInterface[] importWsdl(java.lang.String url, boolean createRequests, javax.xml.namespace.QName bindingName, WsdlLoader wsdlLoader)
           
 WsdlInterface[] importWsdl(java.lang.String url, boolean createRequests, WsdlLoader wsdlLoader)
           
 boolean isCacheDefinitions()
           
 boolean isDisabled()
           
 boolean isOpen()
           
 boolean isRemote()
           
 void release()
           
 void reload()
           
 void reload(java.lang.String path)
           
 void removeInterface(WsdlInterface iface)
           
 void removeMockService(WsdlMockService mockService)
           
 void removeProjectListener(ProjectListener listener)
           
 void removeTestSuite(WsdlTestSuite testSuite)
           
 java.lang.Object runAfterLoadScript()
           
 java.lang.Object runBeforeSaveScript()
           
 boolean save()
           
 boolean saveTo(java.lang.String fileName)
           
 void setAfterLoadScript(java.lang.String script)
           
 void setBeforeSaveScript(java.lang.String script)
           
 void setCacheDefinitions(boolean cacheDefinitions)
           
 
Methods inherited from class com.eviware.soapui.impl.wsdl.AbstractTestPropertyHolderWsdlModelItem
addProperty, addTestPropertyListener, getModelItem, getProperties, getProperty, getPropertyNames, getPropertyValue, hasProperty, removeProperty, removeTestPropertyListener, renameProperty, setPropertiesConfig, setPropertyValue
 
Methods inherited from class com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem
afterLoad, getConfig, getId, getName, getParent, getSettings, getWsdlModelItemByName, setConfig, setDescription, setIcon, setName, setSettings
 
Methods inherited from class com.eviware.soapui.model.support.AbstractModelItem
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.eviware.soapui.model.ModelItem
getId, getName, getParent, getSettings
 
Methods inherited from interface com.eviware.soapui.support.PropertyChangeNotifier
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from interface com.eviware.soapui.model.TestPropertyHolder
addTestPropertyListener, getModelItem, getProperties, getProperty, getPropertyNames, getPropertyValue, hasProperty, removeTestPropertyListener, setPropertyValue
 

Field Detail

AFTER_LOAD_SCRIPT_PROPERTY

public static final java.lang.String AFTER_LOAD_SCRIPT_PROPERTY

BEFORE_SAVE_SCRIPT_PROPERTY

public static final java.lang.String BEFORE_SAVE_SCRIPT_PROPERTY
Constructor Detail

WsdlProject

public WsdlProject()
            throws org.apache.xmlbeans.XmlException,
                   java.io.IOException,
                   SoapUIException
Throws:
org.apache.xmlbeans.XmlException
java.io.IOException
SoapUIException

WsdlProject

public WsdlProject(java.lang.String path)
            throws org.apache.xmlbeans.XmlException,
                   java.io.IOException,
                   SoapUIException
Throws:
org.apache.xmlbeans.XmlException
java.io.IOException
SoapUIException

WsdlProject

public WsdlProject(WorkspaceImpl workspace)

WsdlProject

public WsdlProject(java.lang.String path,
                   WorkspaceImpl workspace)

WsdlProject

public WsdlProject(java.lang.String path,
                   WorkspaceImpl workspace,
                   boolean create)

WsdlProject

public WsdlProject(java.lang.String path,
                   WorkspaceImpl workspace,
                   boolean create,
                   boolean open,
                   java.lang.String tempName)
Method Detail

isRemote

public boolean isRemote()

afterLoad

public void afterLoad()
               throws java.lang.Exception
Overrides:
afterLoad in class AbstractWsdlModelItem<com.eviware.soapui.config.ProjectConfig>
Throws:
java.lang.Exception

getIcon

public javax.swing.ImageIcon getIcon()
Specified by:
getIcon in interface ModelItem
Overrides:
getIcon in class AbstractWsdlModelItem<com.eviware.soapui.config.ProjectConfig>

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface ModelItem
Overrides:
getDescription in class AbstractWsdlModelItem<com.eviware.soapui.config.ProjectConfig>

getWorkspace

public WorkspaceImpl getWorkspace()
Specified by:
getWorkspace in interface Project

getInterfaceAt

public WsdlInterface getInterfaceAt(int index)
Specified by:
getInterfaceAt in interface Project

getInterfaceByName

public WsdlInterface getInterfaceByName(java.lang.String interfaceName)
Specified by:
getInterfaceByName in interface Project

getInterfaceByBindingName

public WsdlInterface getInterfaceByBindingName(javax.xml.namespace.QName bindingName)

getInterfaceCount

public int getInterfaceCount()
Specified by:
getInterfaceCount in interface Project

getPath

public java.lang.String getPath()
Specified by:
getPath in interface Project

save

public boolean save()
             throws java.io.IOException
Specified by:
save in interface Project
Throws:
java.io.IOException

beforeSave

public void beforeSave()
Overrides:
beforeSave in class AbstractWsdlModelItem<com.eviware.soapui.config.ProjectConfig>

importWsdl

public WsdlInterface[] importWsdl(java.lang.String url,
                                  boolean createRequests)
                           throws SoapUIException
Throws:
SoapUIException

importWsdl

public WsdlInterface[] importWsdl(java.lang.String url,
                                  boolean createRequests,
                                  WsdlLoader wsdlLoader)
                           throws SoapUIException
Throws:
SoapUIException

importWsdl

public WsdlInterface[] importWsdl(java.lang.String url,
                                  boolean createRequests,
                                  javax.xml.namespace.QName bindingName,
                                  WsdlLoader wsdlLoader)
                           throws SoapUIException
Throws:
SoapUIException

addNewInterface

public WsdlInterface addNewInterface(java.lang.String name)

addProjectListener

public void addProjectListener(ProjectListener listener)
Specified by:
addProjectListener in interface Project

removeProjectListener

public void removeProjectListener(ProjectListener listener)
Specified by:
removeProjectListener in interface Project

fireInterfaceAdded

public void fireInterfaceAdded(WsdlInterface iface)

fireInterfaceRemoved

public void fireInterfaceRemoved(WsdlInterface iface)

fireInterfaceUpdated

public void fireInterfaceUpdated(WsdlInterface iface)

fireTestSuiteAdded

public void fireTestSuiteAdded(WsdlTestSuite testSuite)

fireTestSuiteRemoved

public void fireTestSuiteRemoved(WsdlTestSuite testSuite)

fireMockServiceAdded

public void fireMockServiceAdded(WsdlMockService mockService)

fireMockServiceRemoved

public void fireMockServiceRemoved(WsdlMockService mockService)

removeInterface

public void removeInterface(WsdlInterface iface)

removeTestSuite

public void removeTestSuite(WsdlTestSuite testSuite)

isDisabled

public boolean isDisabled()
Specified by:
isDisabled in interface Project

getTestSuiteCount

public int getTestSuiteCount()
Specified by:
getTestSuiteCount in interface Project

getTestSuiteAt

public WsdlTestSuite getTestSuiteAt(int index)
Specified by:
getTestSuiteAt in interface Project

getTestSuiteByName

public WsdlTestSuite getTestSuiteByName(java.lang.String testSuiteName)
Specified by:
getTestSuiteByName in interface Project

addNewTestSuite

public WsdlTestSuite addNewTestSuite(java.lang.String name)
Specified by:
addNewTestSuite in interface Project

isCacheDefinitions

public boolean isCacheDefinitions()

setCacheDefinitions

public void setCacheDefinitions(boolean cacheDefinitions)

saveTo

public boolean saveTo(java.lang.String fileName)
               throws java.io.IOException
Throws:
java.io.IOException

release

public void release()
Specified by:
release in interface Project
Overrides:
release in class AbstractWsdlModelItem<com.eviware.soapui.config.ProjectConfig>

addNewMockService

public WsdlMockService addNewMockService(java.lang.String name)
Specified by:
addNewMockService in interface Project

getMockServiceAt

public WsdlMockService getMockServiceAt(int index)
Specified by:
getMockServiceAt in interface Project

getMockServiceByName

public WsdlMockService getMockServiceByName(java.lang.String mockServiceName)
Specified by:
getMockServiceByName in interface Project

getMockServiceCount

public int getMockServiceCount()
Specified by:
getMockServiceCount in interface Project

removeMockService

public void removeMockService(WsdlMockService mockService)

getTestSuiteList

public java.util.List<TestSuite> getTestSuiteList()
Specified by:
getTestSuiteList in interface Project

getMockServiceList

public java.util.List<MockService> getMockServiceList()
Specified by:
getMockServiceList in interface Project

getInterfaceList

public java.util.List<Interface> getInterfaceList()
Specified by:
getInterfaceList in interface Project

getInterfaces

public java.util.Map<java.lang.String,Interface> getInterfaces()

getTestSuites

public java.util.Map<java.lang.String,TestSuite> getTestSuites()

getMockServices

public java.util.Map<java.lang.String,MockService> getMockServices()

reload

public void reload()
            throws SoapUIException
Throws:
SoapUIException

reload

public void reload(java.lang.String path)
            throws SoapUIException
Throws:
SoapUIException

hasNature

public boolean hasNature(java.lang.String natureId)
Specified by:
hasNature in interface Project

importInterface

public WsdlInterface importInterface(WsdlInterface iface,
                                     boolean importEndpoints,
                                     boolean createCopy)

importTestSuite

public WsdlTestSuite importTestSuite(WsdlTestSuite testSuite,
                                     java.lang.String name,
                                     boolean createCopy)

importMockService

public WsdlMockService importMockService(WsdlMockService mockService,
                                         java.lang.String name,
                                         boolean createCopy)

getEndpointStrategy

public EndpointStrategy getEndpointStrategy()
Specified by:
getEndpointStrategy in interface Project

isOpen

public boolean isOpen()
Specified by:
isOpen in interface Project

getChildren

public java.util.List<? extends ModelItem> getChildren()
Specified by:
getChildren in interface ModelItem

setAfterLoadScript

public void setAfterLoadScript(java.lang.String script)

getAfterLoadScript

public java.lang.String getAfterLoadScript()

setBeforeSaveScript

public void setBeforeSaveScript(java.lang.String script)

getBeforeSaveScript

public java.lang.String getBeforeSaveScript()

runAfterLoadScript

public java.lang.Object runAfterLoadScript()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

runBeforeSaveScript

public java.lang.Object runBeforeSaveScript()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

getContext

public PropertyExpansionContext getContext()

getWssContainer

public DefaultWssContainer getWssContainer()


Copyright © 2005-2007 eviware.com. All Rights Reserved.