myDataMapping.xml
Class JdomParser

java.lang.Object
  extended by myDataMapping.xml.JdomParser

public class JdomParser
extends java.lang.Object


Field Summary
static org.jdom.Namespace sawsdlNS
           
 
Constructor Summary
JdomParser()
           
 
Method Summary
static org.jdom.Element getNode(java.lang.String wsdlFile, java.lang.String xpath)
          get first node element of given xpath
static org.jdom.Element getSchemaElem(java.lang.String fileName)
          given wsdl file name, retrive whole schema Element
static java.util.List<java.lang.String> getSubelemList(java.lang.String fileName, java.lang.String eleName)
          given element name for xmlschema if it's complex type, then return a list of all sub element name
static java.util.Map<java.lang.String,java.lang.String> getSubelemXpathMap(java.lang.String fileName, java.lang.String eleName)
          get the subelement and xpath map of given element in the given wsdl-schema 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
 

Field Detail

sawsdlNS

public static org.jdom.Namespace sawsdlNS
Constructor Detail

JdomParser

public JdomParser()
Method Detail

getSchemaElem

public static org.jdom.Element getSchemaElem(java.lang.String fileName)
given wsdl file name, retrive whole schema Element

Parameters:
fileName -
Returns:

getSubelemList

public static java.util.List<java.lang.String> getSubelemList(java.lang.String fileName,
                                                              java.lang.String eleName)
given element name for xmlschema if it's complex type, then return a list of all sub element name

Parameters:
fileName -
eleName -
Returns:

getSubelemXpathMap

public static java.util.Map<java.lang.String,java.lang.String> getSubelemXpathMap(java.lang.String fileName,
                                                                                  java.lang.String eleName)
get the subelement and xpath map of given element in the given wsdl-schema file

Parameters:
fileName -
eleName -
Returns:

getNode

public static org.jdom.Element getNode(java.lang.String wsdlFile,
                                       java.lang.String xpath)
get first node element of given xpath

Parameters:
wsdlFile -
xpath -
Returns:

main

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