org.apache.tuscany.sca.interfacedef.wsdl
Interface WSDLDefinition

All Superinterfaces:
Base
All Known Implementing Classes:
WSDLDefinitionImpl

public interface WSDLDefinition
extends Base

Represents a WSDL definition. WSDLDefinition


Method Summary
 Binding getBinding()
          Get the generated binding for a WSDLDefinition
 Definition getDefinition()
          Returns the WSDL definition model, if there are more than one WSDL definition under the same namespace, the definition will be a facade which imports all the physical WSDL definitions
 java.util.List<WSDLDefinition> getImportedDefinitions()
          Get the WSDL definitions imported by this definition
 java.net.URI getLocation()
          Get the location of the WSDL file
 java.lang.String getNamespace()
          Returns the namespace of this WSDL definition.
 java.net.URI getURI()
          Get the contribution artifact URI of the WSDL document
<T extends WSDLElement>
WSDLObject<T>
getWSDLObject(java.lang.Class<T> type, javax.xml.namespace.QName name)
          Get the WSDL object by type and name
 XmlSchemaElement getXmlSchemaElement(javax.xml.namespace.QName name)
          Get an XSD element by QName
 java.util.List<XSDefinition> getXmlSchemas()
          Get a list of inline XML schema definitions
 XmlSchemaType getXmlSchemaType(javax.xml.namespace.QName name)
          Get an XSD type by QName
 void setBinding(Binding binding)
          Set the generated binding for a WSDLDefinition
 void setDefinition(Definition definition)
          Sets the WSDL definition model
 void setLocation(java.net.URI url)
          Set the location of the WSDL file
 void setNamespace(java.lang.String namespace)
          Sets the namespace of this WSDL definition.
 void setURI(java.net.URI uri)
          Set the contribution artifact URI of the WSDL document
 
Methods inherited from interface org.apache.tuscany.sca.assembly.Base
isUnresolved, setUnresolved
 

Method Detail

getDefinition

Definition getDefinition()
Returns the WSDL definition model, if there are more than one WSDL definition under the same namespace, the definition will be a facade which imports all the physical WSDL definitions

Returns:
the WSDL definition model

setDefinition

void setDefinition(Definition definition)
Sets the WSDL definition model

Parameters:
definition - the WSDL definition model

getNamespace

java.lang.String getNamespace()
Returns the namespace of this WSDL definition.

Returns:
the namespace of this WSDL definition

setNamespace

void setNamespace(java.lang.String namespace)
Sets the namespace of this WSDL definition.

Parameters:
namespace - the namespace of this WSDL definition

getXmlSchemas

java.util.List<XSDefinition> getXmlSchemas()
Get a list of inline XML schema definitions

Returns:
A list of inline XML schema definitions

getLocation

java.net.URI getLocation()
Get the location of the WSDL file

Returns:
The location of the WSDL file

setLocation

void setLocation(java.net.URI url)
Set the location of the WSDL file

Parameters:
url -

getURI

java.net.URI getURI()
Get the contribution artifact URI of the WSDL document

Returns:
The URI of the WSDL document

setURI

void setURI(java.net.URI uri)
Set the contribution artifact URI of the WSDL document

Parameters:
uri -

getImportedDefinitions

java.util.List<WSDLDefinition> getImportedDefinitions()
Get the WSDL definitions imported by this definition

Returns:
A list of imported WSDL definitions

getXmlSchemaElement

XmlSchemaElement getXmlSchemaElement(javax.xml.namespace.QName name)
Get an XSD element by QName

Parameters:
name -
Returns:

getXmlSchemaType

XmlSchemaType getXmlSchemaType(javax.xml.namespace.QName name)
Get an XSD type by QName

Parameters:
name -
Returns:

getWSDLObject

<T extends WSDLElement> WSDLObject<T> getWSDLObject(java.lang.Class<T> type,
                                                    javax.xml.namespace.QName name)
Get the WSDL object by type and name

Type Parameters:
T -
Parameters:
type - javax.wsdl.Service/PortType/Binding/Message.class
name - The QName of the object
Returns:
WSDLObject

getBinding

Binding getBinding()
Get the generated binding for a WSDLDefinition

Returns:
the WSDL binding

setBinding

void setBinding(Binding binding)
Set the generated binding for a WSDLDefinition

Parameters:
binding - the WSDL binding