hu.soft4d.minerva.wsdl
Class WSDLModelImpl

java.lang.Object
  extended by hu.soft4d.minerva.wsdl.WSDLModelImpl
All Implemented Interfaces:
WSDLModel

public class WSDLModelImpl
extends java.lang.Object
implements WSDLModel

An implementation of WSDLModel. Represents the structure of a WSDL file.

Author:
Zsolt Kiss-Gere, 4DSoft Ltd.

Method Summary
 java.util.Map<javax.xml.namespace.QName,org.apache.axis.wsdl.symbolTable.DefinedType> getAllDefinedTypes()
          Get all defined types in this WSDL in a map keyed by their qualified name.
 stsimulator.types.Type getCreateSSMType(javax.xml.namespace.QName typeQName)
          Get the SSM type corresponding to this qualified type name.
 stsimulator.types.Type getCreateSSMType(org.apache.axis.wsdl.symbolTable.TypeEntry typeEntry)
          Return an SSM Type object corresponding to TypeEntry, using an internal Map for cache.
 org.apache.xerces.xs.XSModel[] getSchemaModels()
          Get all schemas defined or used by this WSDL in an array of XSModel-s.
 JService getService(java.lang.String serviceName)
          Get the service given by serviceName as a JService.
 java.util.Map<javax.xml.namespace.QName,JService> getServices()
          Get all services defined in this WSDL in a map keyed by their qualified name.
 java.util.Map<javax.xml.namespace.QName,stsimulator.types.Type> getSSMTypes()
          Get all SSM types defined in this WSDL, for which a getSSMType() method was already called.
 org.apache.axis.wsdl.symbolTable.SymbolTable getSymbolTable()
          Return the symbol table created by parsing the WSDL.
 java.lang.String getTargetNamespace()
          Get the WSDL target namespace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSymbolTable

public org.apache.axis.wsdl.symbolTable.SymbolTable getSymbolTable()
Description copied from interface: WSDLModel
Return the symbol table created by parsing the WSDL. For internal use.

Specified by:
getSymbolTable in interface WSDLModel

getService

public JService getService(java.lang.String serviceName)
                    throws java.lang.Exception
Description copied from interface: WSDLModel
Get the service given by serviceName as a JService.

Specified by:
getService in interface WSDLModel
Throws:
java.lang.Exception

getServices

public java.util.Map<javax.xml.namespace.QName,JService> getServices()
Description copied from interface: WSDLModel
Get all services defined in this WSDL in a map keyed by their qualified name.

Specified by:
getServices in interface WSDLModel

getAllDefinedTypes

public java.util.Map<javax.xml.namespace.QName,org.apache.axis.wsdl.symbolTable.DefinedType> getAllDefinedTypes()
Description copied from interface: WSDLModel
Get all defined types in this WSDL in a map keyed by their qualified name.

Specified by:
getAllDefinedTypes in interface WSDLModel

getSchemaModels

public org.apache.xerces.xs.XSModel[] getSchemaModels()
                                               throws java.lang.Exception
Description copied from interface: WSDLModel
Get all schemas defined or used by this WSDL in an array of XSModel-s.

Specified by:
getSchemaModels in interface WSDLModel
Throws:
java.lang.Exception

getTargetNamespace

public java.lang.String getTargetNamespace()
                                    throws java.lang.Exception
Description copied from interface: WSDLModel
Get the WSDL target namespace.

Specified by:
getTargetNamespace in interface WSDLModel
Throws:
java.lang.Exception

getCreateSSMType

public stsimulator.types.Type getCreateSSMType(javax.xml.namespace.QName typeQName)
                                        throws java.lang.Exception
Description copied from interface: WSDLModel
Get the SSM type corresponding to this qualified type name.

Specified by:
getCreateSSMType in interface WSDLModel
Throws:
java.lang.Exception

getCreateSSMType

public stsimulator.types.Type getCreateSSMType(org.apache.axis.wsdl.symbolTable.TypeEntry typeEntry)
                                        throws java.lang.Exception
Return an SSM Type object corresponding to TypeEntry, using an internal Map for cache.

If the type already exists in the map (key=typeEntry.qname), just return it.

Else construct a new Simple- or ComplexType, put it in the map and return it.

Traverses recursively the tree of embedded parameter types, constructing new types as needed.

Specified by:
getCreateSSMType in interface WSDLModel
Throws:
java.lang.Exception
See Also:
WSDLModel.getCreateSSMType(org.apache.axis.wsdl.symbolTable.TypeEntry)

getSSMTypes

public java.util.Map<javax.xml.namespace.QName,stsimulator.types.Type> getSSMTypes()
Description copied from interface: WSDLModel
Get all SSM types defined in this WSDL, for which a getSSMType() method was already called.

Specified by:
getSSMTypes in interface WSDLModel
See Also:
WSDLModel.getSSMTypes()