ch.sahits.codegen.xml
Class WSDLParser

java.lang.Object
  extended by ch.sahits.codegen.input.XMLJDomParser
      extended by ch.sahits.codegen.xml.WSDLParser

public final class WSDLParser
extends XMLJDomParser

This WSDL Parser can be used to extract the types defined in a WSDL file

Since:
1.2.0
Author:
Andi Hotz, Sahits GmbH

Field Summary
 
Fields inherited from class ch.sahits.codegen.input.XMLJDomParser
document, root
 
Constructor Summary
WSDLParser(java.lang.String inputFile)
          Construct the parser on the wsdl file
 
Method Summary
 java.lang.String getTargetNamespace()
          Retrieve the target namespace of the WSDL-File
 java.lang.String getTargetNamespace(java.lang.String type)
          Retrieve the target namespace of a type
 java.util.List<java.lang.String> getTypes()
          Retrieve the types of the WSDL
 
Methods inherited from class ch.sahits.codegen.input.XMLJDomParser
getAllAttributes, getAllElements, getAttributeValue, getFileExtension, getFirstElement, getParserName, getPredecessor, getRanking, hasChild, hasChild, hasText, init, lookup, parse, setNamespace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSDLParser

public WSDLParser(java.lang.String inputFile)
           throws JDOMException,
                  java.io.IOException
Construct the parser on the wsdl file

Parameters:
inputFile -
Throws:
JDOMException
java.io.IOException
Method Detail

getTypes

public java.util.List<java.lang.String> getTypes()
Retrieve the types of the WSDL

Returns:
the types

getTargetNamespace

public java.lang.String getTargetNamespace(java.lang.String type)
Retrieve the target namespace of a type

Parameters:
type - for which the target namespace is to be looked up
Returns:
target namespace of the type or target namespace of the WSDL file

getTargetNamespace

public java.lang.String getTargetNamespace()
Retrieve the target namespace of the WSDL-File

Returns:
target namespace