org.netbeans.modules.xml.wsdl.model.impl
Class ParseWSDL

java.lang.Object
  extended by org.netbeans.modules.xml.wsdl.model.impl.ParseWSDL

public class ParseWSDL
extends java.lang.Object


Constructor Summary
ParseWSDL()
           
 
Method Summary
static java.util.List<java.lang.String> getAllOpName(java.lang.String fileName)
          get all operation names of given wsdl file
static javax.wsdl.Operation getDefOp(javax.wsdl.Definition def, java.lang.String opName)
          given operation name, and definition part of wsdl file get Operation
static java.lang.String getInputPartName(java.lang.String wsdlFile, java.lang.String operationName)
           
static java.util.List<java.lang.String> getMsElemName(javax.wsdl.Message ms)
          Given message , get the list of element name of all parts of the message
static java.lang.String getMsEleNSUri(java.lang.String wsdlFile)
           
static java.lang.String getOpInMsElemName(java.lang.String fileName, java.lang.String opName)
          given operation name, get a list of the element name of all parts of message of input of the operation
static java.util.List<java.lang.String> getOpInMsPartNameList(java.lang.String fileName, java.lang.String opName)
          get the name list of all parts of input of given operation
static java.lang.String getOpOutMsElemName(java.lang.String fileName, java.lang.String opName)
          given operation name, get a list of the element name of all parts of message of output of the operation
static java.util.List<java.lang.String> getOpOutMsPartNameList(java.lang.String fileName, java.lang.String opName)
          get the name list of all parats of output of given operation
static java.lang.String getOutputPartName(java.lang.String wsdlFile, java.lang.String operationName)
           
static java.lang.String getPortTypeName(java.lang.String wsdlFile)
           
static javax.wsdl.Definition getWsdlDef(java.lang.String fileName)
          return definition part of the wsdl file
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParseWSDL

public ParseWSDL()
Method Detail

getWsdlDef

public static javax.wsdl.Definition getWsdlDef(java.lang.String fileName)
                                        throws java.lang.Exception
return definition part of the wsdl file

Parameters:
fileName -
Returns:
Throws:
java.lang.Exception

getInputPartName

public static java.lang.String getInputPartName(java.lang.String wsdlFile,
                                                java.lang.String operationName)

getOutputPartName

public static java.lang.String getOutputPartName(java.lang.String wsdlFile,
                                                 java.lang.String operationName)

getMsEleNSUri

public static java.lang.String getMsEleNSUri(java.lang.String wsdlFile)

getPortTypeName

public static java.lang.String getPortTypeName(java.lang.String wsdlFile)

getDefOp

public static javax.wsdl.Operation getDefOp(javax.wsdl.Definition def,
                                            java.lang.String opName)
given operation name, and definition part of wsdl file get Operation

Parameters:
def -
opName -
Returns:

getAllOpName

public static java.util.List<java.lang.String> getAllOpName(java.lang.String fileName)
get all operation names of given wsdl file

Parameters:
fileName -
Returns:

getMsElemName

public static java.util.List<java.lang.String> getMsElemName(javax.wsdl.Message ms)
Given message , get the list of element name of all parts of the message

Parameters:
ms -
Returns:

getOpInMsElemName

public static java.lang.String getOpInMsElemName(java.lang.String fileName,
                                                 java.lang.String opName)
                                          throws java.lang.Exception
given operation name, get a list of the element name of all parts of message of input of the operation

Parameters:
fileName -
opName -
Returns:
Throws:
java.lang.Exception

getOpOutMsElemName

public static java.lang.String getOpOutMsElemName(java.lang.String fileName,
                                                  java.lang.String opName)
                                           throws java.lang.Exception
given operation name, get a list of the element name of all parts of message of output of the operation

Parameters:
fileName -
opName -
Returns:
Throws:
java.lang.Exception

getOpInMsPartNameList

public static java.util.List<java.lang.String> getOpInMsPartNameList(java.lang.String fileName,
                                                                     java.lang.String opName)
                                                              throws java.lang.Exception
get the name list of all parts of input of given operation

Parameters:
fileName -
opName -
Returns:
Throws:
java.lang.Exception

getOpOutMsPartNameList

public static java.util.List<java.lang.String> getOpOutMsPartNameList(java.lang.String fileName,
                                                                      java.lang.String opName)
                                                               throws java.lang.Exception
get the name list of all parats of output of given operation

Parameters:
fileName -
opName -
Returns:
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Parameters:
args -
Throws:
java.lang.Exception