org.objectweb.jonas_ws.deployment.api.WSDLFile Class Reference

List of all members.

Public Member Functions

 WSDLFile (ClassLoader cl, String name) throws WSDeploymentDescException
 WSDLFile (URL url, String name) throws WSDeploymentDescException
boolean hasPort (QName portQName)
boolean hasPort (String portName)
boolean hasService (QName srvQName)
boolean hasSOAPHeader (QName shQName)
boolean hasPortsIncludedIn (List portList)
boolean hasSOAPBinding (QName portQName)
Definition getDefinition ()
int getNbServices ()
QName getServiceQname ()
URL getLocation (QName portQName) throws WSDeploymentDescException
void setLocation (QName portQName, URL loc)
String getName ()
String toString ()
boolean equals (Object other)

Static Protected Member Functions

I18n getI18n ()

Detailed Description

Gives methods to get WSDL informations and to validate these one.
Author:
Xavier Delplanque

Guillaume Sauthier

Definition at line 56 of file WSDLFile.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ws.deployment.api.WSDLFile.WSDLFile ClassLoader  cl,
String  name
throws WSDeploymentDescException
 

Creates a new WSDLFile object.

Parameters:
cl ClassLoader to use
name wsdl file name
Exceptions:
WSDeploymentDescException when a parse error occurs

Definition at line 82 of file WSDLFile.java.

org.objectweb.jonas_ws.deployment.api.WSDLFile.WSDLFile URL  url,
String  name
throws WSDeploymentDescException
 

Creates a new WSDLFile object.

Parameters:
url URL to load
name wsdl file name
Exceptions:
WSDeploymentDescException when a parse error occurs

Definition at line 92 of file WSDLFile.java.


Member Function Documentation

boolean org.objectweb.jonas_ws.deployment.api.WSDLFile.equals Object  other  ) 
 

Return true if the 2 objects seems equals. Because the equals() method doesn't exist on Definition, it's hard to known if 2 Definition are equals in value. So we just test lists lengths. Use it ONLY in test/debug case. !!!

Parameters:
other the object to compare.
Returns:
true if the 2 objects seems equals.

Definition at line 379 of file WSDLFile.java.

References org.objectweb.jonas_ws.deployment.api.WSDLFile.getDefinition().

Referenced by org.objectweb.jonas_ws.deployment.api.ServiceRefDesc.equals().

Here is the call graph for this function:

Definition org.objectweb.jonas_ws.deployment.api.WSDLFile.getDefinition  ) 
 

return WSDL definition, null if it's undefined.

Returns:
WSDL definition.

Definition at line 211 of file WSDLFile.java.

Referenced by org.objectweb.jonas_ws.deployment.api.WSDLFile.equals(), and org.objectweb.jonas.ws.axis.QSUpdateServiceWSDLHandler.invoke().

I18n org.objectweb.jonas_ws.deployment.api.WSDLFile.getI18n  )  [static, protected]
 

Returns:
Returns the i18n.

Definition at line 414 of file WSDLFile.java.

URL org.objectweb.jonas_ws.deployment.api.WSDLFile.getLocation QName  portQName  )  throws WSDeploymentDescException
 

return the given port location, null if the port is undefined.

Parameters:
portQName the port QName identifying the port searched.
Returns:
portQname location.
Exceptions:
WSDeploymentDescException when port is not found

Definition at line 246 of file WSDLFile.java.

String org.objectweb.jonas_ws.deployment.api.WSDLFile.getName  ) 
 

Return wsdl file name

Returns:
wsdl file name

Definition at line 341 of file WSDLFile.java.

Referenced by org.objectweb.jonas.ws.axis.QSUpdateServiceWSDLHandler.invoke(), and org.objectweb.jonas_ws.deployment.api.WSDeploymentDesc.WSDeploymentDesc().

int org.objectweb.jonas_ws.deployment.api.WSDLFile.getNbServices  ) 
 

return the number of services defined inside the wsdl.

Returns:
the number of services defined inside the wsdl.

Definition at line 219 of file WSDLFile.java.

QName org.objectweb.jonas_ws.deployment.api.WSDLFile.getServiceQname  ) 
 

return the QName of the first service, null if no service is defined.

Returns:
the QName of the first service, null if no service is defined.

Definition at line 227 of file WSDLFile.java.

Referenced by org.objectweb.jonas_ws.deployment.api.ServiceRefDesc.ServiceRefDesc().

boolean org.objectweb.jonas_ws.deployment.api.WSDLFile.hasPort String  portName  ) 
 

return true if the port identified by portName is defined in WSDL ports.

Parameters:
portName the port to check.
Returns:
if the gived port is contained in the WSDL.definition.service.port.

Definition at line 131 of file WSDLFile.java.

boolean org.objectweb.jonas_ws.deployment.api.WSDLFile.hasPort QName  portQName  ) 
 

return true if the port identified by portQname is defined in WSDL ports.

Parameters:
portQName the port to check.
Returns:
if the gived Qname is contained in the WSDL.definition.service.port.

Definition at line 121 of file WSDLFile.java.

Referenced by org.objectweb.jonas_ws.deployment.api.ServiceDesc.ServiceDesc().

boolean org.objectweb.jonas_ws.deployment.api.WSDLFile.hasPortsIncludedIn List  portList  ) 
 

return true if all WSDL ports are defined in portList.

Parameters:
portList the ports List to check.
Returns:
true if all WSDL ports are defined in WSDL.definition.service.port.

Definition at line 175 of file WSDLFile.java.

Referenced by org.objectweb.jonas_ws.deployment.api.WSDeploymentDesc.WSDeploymentDesc().

boolean org.objectweb.jonas_ws.deployment.api.WSDLFile.hasService QName  srvQName  ) 
 

return true if the service identified by srvQName is defined in WSDL services.

Parameters:
srvQName the service to check.
Returns:
true if the given Qname is contained in the WSDL.definition.service.

Definition at line 142 of file WSDLFile.java.

boolean org.objectweb.jonas_ws.deployment.api.WSDLFile.hasSOAPBinding QName  portQName  ) 
 

return true if the port identified by portQname use a SOAP binding.

Parameters:
portQName the port to check.
Returns:
if the port identified by portQname use a SOAP binding. return false if the portQname is not defined in the WSDL file.

Definition at line 185 of file WSDLFile.java.

Referenced by org.objectweb.jonas_ws.deployment.api.ServiceDesc.ServiceDesc().

boolean org.objectweb.jonas_ws.deployment.api.WSDLFile.hasSOAPHeader QName  shQName  ) 
 

return true if shQName is defined in WSDL services.

Parameters:
shQName a soap header Qname that could be defined in the WSDL.
Returns:
true if SOAP Header has been found in WSDL Definition.

Definition at line 151 of file WSDLFile.java.

void org.objectweb.jonas_ws.deployment.api.WSDLFile.setLocation QName  portQName,
URL  loc
 

set the given port location if it exists.

Parameters:
portQName the port to set.
loc the port location.

Definition at line 276 of file WSDLFile.java.

Referenced by org.objectweb.jonas.ws.AbsWebServicesServiceImpl.doDeployWebServices().

String org.objectweb.jonas_ws.deployment.api.WSDLFile.toString  ) 
 

Returns:
Returns a String representation of this WSDLFile.

Definition at line 348 of file WSDLFile.java.

Referenced by org.objectweb.jonas.ws.axis.QSUpdateServiceWSDLHandler.invoke(), and org.objectweb.jonas_ws.deployment.api.ServiceDesc.toString().


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:13:38 2005 for JOnAS by  doxygen 1.3.9.1