org.globus.wsrf.tools.wsdl
Class WSDLPreprocessor

java.lang.Object
  extended byorg.globus.wsrf.tools.CommandLineTool
      extended byorg.globus.wsrf.tools.wsdl.WSDLPreprocessor
All Implemented Interfaces:
WSDLPreprocessorConstants

public class WSDLPreprocessor
extends CommandLineTool
implements WSDLPreprocessorConstants


Field Summary
private static org.apache.commons.logging.Log logger
           
private static int nameSpaceCounter
           
private static boolean quiet
           
private static boolean wsaImport
           
 
Fields inherited from class org.globus.wsrf.tools.CommandLineTool
 
Fields inherited from interface org.globus.wsrf.tools.wsdl.WSDLPreprocessorConstants
EXTENDS, RP, WSA_ACTION, WSA_NS, WSDL_NS, WSDLPP_NS, WSRP_NS, XSD_NS
 
Constructor Summary
WSDLPreprocessor()
           
 
Method Summary
private static void addImports(javax.wsdl.Definition definition, javax.wsdl.Definition parentDefinition)
           
private static void fixNameSpaces(javax.wsdl.PortType porttype, javax.wsdl.Definition definition)
           
private static javax.wsdl.PortType flatten(javax.wsdl.PortType portType, javax.wsdl.Definition definition, javax.wsdl.Definition parentDefinition, java.util.List portTypeNames, java.util.Map resourcePropertyElements, java.util.Map schemaDocumentLocations)
           
private static java.util.List getDependencies(javax.wsdl.PortType portType)
           
protected static java.lang.String getRelativePath(java.lang.String srcPathURI, java.lang.String destPathURI)
           
static java.util.Map getResourceProperties(javax.xml.namespace.QName resourceProperties, javax.wsdl.Definition def, java.util.Map documentLocations)
           
private static org.w3c.dom.Element getSchemaElement(javax.wsdl.Definition def)
           
private static org.apache.xerces.xs.XSModel loadSchema(org.w3c.dom.Element schema, javax.wsdl.Definition def)
           
static void main(java.lang.String[] args)
           
private static void populateLocations(org.apache.xerces.xs.XSModel schemaModel, java.util.Map documentLocations, javax.wsdl.Definition def)
           
 
Methods inherited from class org.globus.wsrf.tools.CommandLineTool
setNoExit, sysExit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nameSpaceCounter

private static int nameSpaceCounter

wsaImport

private static boolean wsaImport

logger

private static org.apache.commons.logging.Log logger

quiet

private static boolean quiet
Constructor Detail

WSDLPreprocessor

public WSDLPreprocessor()
Method Detail

main

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

flatten

private static javax.wsdl.PortType flatten(javax.wsdl.PortType portType,
                                           javax.wsdl.Definition definition,
                                           javax.wsdl.Definition parentDefinition,
                                           java.util.List portTypeNames,
                                           java.util.Map resourcePropertyElements,
                                           java.util.Map schemaDocumentLocations)

addImports

private static void addImports(javax.wsdl.Definition definition,
                               javax.wsdl.Definition parentDefinition)

getDependencies

private static java.util.List getDependencies(javax.wsdl.PortType portType)

getSchemaElement

private static org.w3c.dom.Element getSchemaElement(javax.wsdl.Definition def)

loadSchema

private static org.apache.xerces.xs.XSModel loadSchema(org.w3c.dom.Element schema,
                                                       javax.wsdl.Definition def)

populateLocations

private static void populateLocations(org.apache.xerces.xs.XSModel schemaModel,
                                      java.util.Map documentLocations,
                                      javax.wsdl.Definition def)

getResourceProperties

public static java.util.Map getResourceProperties(javax.xml.namespace.QName resourceProperties,
                                                  javax.wsdl.Definition def,
                                                  java.util.Map documentLocations)

fixNameSpaces

private static void fixNameSpaces(javax.wsdl.PortType porttype,
                                  javax.wsdl.Definition definition)

getRelativePath

protected static java.lang.String getRelativePath(java.lang.String srcPathURI,
                                                  java.lang.String destPathURI)