Groovy Documentation

com.predic8.wsdl
[Groovy] Class Definitions

java.lang.Object
  com.predic8.soamodel.XMLElement
      com.predic8.wsdl.WSDLElement
          com.predic8.wsdl.Definitions

class Definitions
extends WSDLElement

Field Summary
static JQName ELEMENTNAME

 
Fields inherited from class XMLElement
namespaces
 
Property Summary
def baseDir

List imports

List localBindings

List localMessages

List localPortTypes

List localServices

Types localTypes

The local-prefix indicates that the elements are defined in this WSDL document.

def lookup

Map policies

Registry registry

If there are imported WSDLs, the complete information about the WSDL elements should be collected from the WSDLs in the registry.

def resourceResolver

String targetNamespace

 
Constructor Summary
Definitions()

Definitions(String tns, String name)

 
Method Summary
void addSchema(Schema schema)

void create(AbstractCreator creator, CreatorContext ctx)

List getAllWSDLs()

String getAsString()

Binding getBinding(GQName qname)

Binding getBinding(String name)

List getBindings()

List getBindings(def protocol)

Element getElement(String elementPN)

Element getElement(GQName qname)

Element getElementForOperation(String operationName, def portTypeName)

@param portTypeName Can be the portType name as a String or the fully qualified name as a QName

def getHTTPBinding(def name)

List getLocalSchemas()

Message getMessage(String name)

Message getMessage(GQName qname)

List getMessages()

Operation getOperation(String operationName, String portTypeName)

Operation getOperation(String name, GQName portType)

List getOperations()

PortType getPortType(String name)

PortType getPortType(GQName qname)

List getPortTypes()

Schema getSchema(String ns)

Schema getSchemaLoadKnownSchemaIfNeeded(String ns)

TypeDefinition getSchemaType(String name)

TypeDefinition getSchemaType(GQName qname)

List getSchemas()

def getService(GQName qname)

List getServices()

def getSoap11Binding(def name)

def getSoap12Binding(def name)

String getTargetNamespacePrefix()

List getTypes()

All the getter methods return the local elements and elements defined in other WSDLs with the same namespace.

Boolean isConcrete()

Binding newBinding(String name)

Message newMessage(String name)

PortType newPortType(String name)

Service newService(String name)

protected def parseAttributes(def token, WSDLParserContext ctx)

protected def parseChildren(def token, def child, WSDLParserContext ctx)

void setTypes(Types types)

String toString()

List validate(WSDLParserContext ctx)

 
Methods inherited from class WSDLElement
create, getElementName, getNamespaceUri, getPrefix, getQName, parseChildren
 
Methods inherited from class XMLElement
getElementName, getNamespace, getNamespaceContext, getNamespaceUri, getPrefix, getPrefix, getQNameForPN, getTypeQName, getTypeString, parse, parseAttributes, parseChildren, parseNamespaces, parseText
 

Field Detail

ELEMENTNAME

public static final JQName ELEMENTNAME


 
Property Detail

baseDir

def baseDir


imports

List imports


localBindings

List localBindings


localMessages

List localMessages


localPortTypes

List localPortTypes


localServices

List localServices


localTypes

Types localTypes
The local-prefix indicates that the elements are defined in this WSDL document. Calling e.g. getBindings will return all the bindings in an wsdl:import hierarchy


lookup

def lookup


policies

Map policies


registry

Registry registry
If there are imported WSDLs, the complete information about the WSDL elements should be collected from the WSDLs in the registry.


resourceResolver

def resourceResolver


targetNamespace

String targetNamespace


 
Constructor Detail

Definitions

Definitions()


Definitions

Definitions(String tns, String name)


 
Method Detail

addSchema

void addSchema(Schema schema)


create

void create(AbstractCreator creator, CreatorContext ctx)


getAllWSDLs

List getAllWSDLs()


getAsString

String getAsString()


getBinding

Binding getBinding(GQName qname)


getBinding

Binding getBinding(String name)


getBindings

List getBindings()


getBindings

List getBindings(def protocol)


getElement

Element getElement(String elementPN)


getElement

Element getElement(GQName qname)


getElementForOperation

Element getElementForOperation(String operationName, def portTypeName)
Parameters:
portTypeName - Can be the portType name as a String or the fully qualified name as a QName
Returns:
The part element of the soap:body in the soap11 binding for the given operation, if there is one.


getHTTPBinding

def getHTTPBinding(def name)


getLocalSchemas

List getLocalSchemas()


getMessage

Message getMessage(String name)


getMessage

Message getMessage(GQName qname)


getMessages

List getMessages()


getOperation

Operation getOperation(String operationName, String portTypeName)


getOperation

Operation getOperation(String name, GQName portType)


getOperations

List getOperations()


getPortType

PortType getPortType(String name)


getPortType

PortType getPortType(GQName qname)


getPortTypes

List getPortTypes()


getSchema

Schema getSchema(String ns)


getSchemaLoadKnownSchemaIfNeeded

Schema getSchemaLoadKnownSchemaIfNeeded(String ns)


getSchemaType

TypeDefinition getSchemaType(String name)


getSchemaType

TypeDefinition getSchemaType(GQName qname)


getSchemas

List getSchemas()


getService

def getService(GQName qname)


getServices

List getServices()


getSoap11Binding

def getSoap11Binding(def name)


getSoap12Binding

def getSoap12Binding(def name)


getTargetNamespacePrefix

String getTargetNamespacePrefix()


getTypes

List getTypes()
All the getter methods return the local elements and elements defined in other WSDLs with the same namespace.


isConcrete

Boolean isConcrete()


newBinding

Binding newBinding(String name)


newMessage

Message newMessage(String name)


newPortType

PortType newPortType(String name)


newService

Service newService(String name)


parseAttributes

protected def parseAttributes(def token, WSDLParserContext ctx)


parseChildren

protected def parseChildren(def token, def child, WSDLParserContext ctx)


setTypes

void setTypes(Types types)


toString

String toString()


validate

List validate(WSDLParserContext ctx)


 

Groovy Documentation