kaos.tools.webServiceTool
Class ParseWithDOM

java.lang.Object
  extended by kaos.tools.webServiceTool.ParseWithDOM

public class ParseWithDOM
extends java.lang.Object

Date: May 21, 2010 Time: 3:46:41 PM

Author:
Maggie Breedy

Field Summary
protected static java.lang.String _configPath
           
protected  java.util.Map<java.lang.String,java.util.Map> _fileInfo
           
protected  java.util.Map<java.lang.String,java.util.Vector> _wsdlFileInfo
           
protected  java.lang.String _wsdlURL
           
 
Constructor Summary
ParseWithDOM()
           
 
Method Summary
protected  java.lang.StringBuffer getFileBufStream(java.io.File file)
          Reads the information from the wsdl file contained in the file system into a string buffer.
 java.util.Map getFileInfo()
          Returns a map of the wsdl file read.
 java.lang.StringBuffer getStreamByURL(java.lang.String wsdlURL)
          Reads the information from a wsdl URL from a website into a string buffer.
 void init(java.lang.String str)
          Reads the wsdl file and store the information in a hashtable which the key is the name of the operation and the value is a map of attributes.
 void init2(java.lang.String str)
           
static void main(java.lang.String[] args)
           
 void writeAnnotations(java.lang.String str, java.lang.String serviceType, java.lang.String serviceFileName, java.lang.String filePath)
          Add anotations to the node elements in the wsdl files that represent the operations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_configPath

protected static java.lang.String _configPath

_wsdlURL

protected java.lang.String _wsdlURL

_wsdlFileInfo

protected java.util.Map<java.lang.String,java.util.Vector> _wsdlFileInfo

_fileInfo

protected java.util.Map<java.lang.String,java.util.Map> _fileInfo
Constructor Detail

ParseWithDOM

public ParseWithDOM()
Method Detail

init

public void init(java.lang.String str)
Reads the wsdl file and store the information in a hashtable which the key is the name of the operation and the value is a map of attributes.

Parameters:
str: - wsdl file path.

init2

public void init2(java.lang.String str)

writeAnnotations

public void writeAnnotations(java.lang.String str,
                             java.lang.String serviceType,
                             java.lang.String serviceFileName,
                             java.lang.String filePath)
                      throws java.lang.Exception
Add anotations to the node elements in the wsdl files that represent the operations.

Parameters:
str -
serviceType -
serviceFileName -
filePath -
Throws:
java.lang.Exception

getFileInfo

public java.util.Map getFileInfo()
Returns a map of the wsdl file read.

Returns:
_fileInfo

getStreamByURL

public java.lang.StringBuffer getStreamByURL(java.lang.String wsdlURL)
Reads the information from a wsdl URL from a website into a string buffer.

Parameters:
wsdlURL -
Returns:
buf

getFileBufStream

protected java.lang.StringBuffer getFileBufStream(java.io.File file)
Reads the information from the wsdl file contained in the file system into a string buffer.

Parameters:
file - the wsdl file
Returns:
buf

main

public static void main(java.lang.String[] args)