org.apache.tuscany.sca.interfacedef.wsdl.impl
Class WSDLDefinitionImpl

java.lang.Object
  extended by org.apache.tuscany.sca.interfacedef.wsdl.impl.WSDLDefinitionImpl
All Implemented Interfaces:
Base, WSDLDefinition

public class WSDLDefinitionImpl
extends java.lang.Object
implements WSDLDefinition

Represents a WSDL definition.


Constructor Summary
protected WSDLDefinitionImpl()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 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
 int hashCode()
           
 boolean isUnresolved()
          Returns true if the model element is unresolved.
 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 setUnresolved(boolean undefined)
          Sets whether the model element is unresolved.
 void setURI(java.net.URI uri)
          Set the contribution artifact URI of the WSDL document
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSDLDefinitionImpl

protected WSDLDefinitionImpl()
Method Detail

getDefinition

public Definition getDefinition()
Description copied from interface: WSDLDefinition
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

Specified by:
getDefinition in interface WSDLDefinition
Returns:
the WSDL definition model

setDefinition

public void setDefinition(Definition definition)
Description copied from interface: WSDLDefinition
Sets the WSDL definition model

Specified by:
setDefinition in interface WSDLDefinition
Parameters:
definition - the WSDL definition model

isUnresolved

public boolean isUnresolved()
Description copied from interface: Base
Returns true if the model element is unresolved.

Specified by:
isUnresolved in interface Base
Returns:
true if the model element is unresolved.

setUnresolved

public void setUnresolved(boolean undefined)
Description copied from interface: Base
Sets whether the model element is unresolved.

Specified by:
setUnresolved in interface Base
Parameters:
undefined - whether the model element is unresolved

getNamespace

public java.lang.String getNamespace()
Description copied from interface: WSDLDefinition
Returns the namespace of this WSDL definition.

Specified by:
getNamespace in interface WSDLDefinition
Returns:
the namespace of this WSDL definition

setNamespace

public void setNamespace(java.lang.String namespace)
Description copied from interface: WSDLDefinition
Sets the namespace of this WSDL definition.

Specified by:
setNamespace in interface WSDLDefinition
Parameters:
namespace - the namespace of this WSDL definition

getXmlSchemas

public java.util.List<XSDefinition> getXmlSchemas()
Description copied from interface: WSDLDefinition
Get a list of inline XML schema definitions

Specified by:
getXmlSchemas in interface WSDLDefinition
Returns:
A list of inline XML schema definitions
See Also:
WSDLDefinition.getXmlSchemas()

getLocation

public java.net.URI getLocation()
Description copied from interface: WSDLDefinition
Get the location of the WSDL file

Specified by:
getLocation in interface WSDLDefinition
Returns:
The location of the WSDL file
See Also:
WSDLDefinition.getLocation()

setLocation

public void setLocation(java.net.URI url)
Description copied from interface: WSDLDefinition
Set the location of the WSDL file

Specified by:
setLocation in interface WSDLDefinition
See Also:
WSDLDefinition.setLocation(java.net.URI)

getURI

public java.net.URI getURI()
Description copied from interface: WSDLDefinition
Get the contribution artifact URI of the WSDL document

Specified by:
getURI in interface WSDLDefinition
Returns:
The URI of the WSDL document
See Also:
WSDLDefinition.getURI()

setURI

public void setURI(java.net.URI uri)
Description copied from interface: WSDLDefinition
Set the contribution artifact URI of the WSDL document

Specified by:
setURI in interface WSDLDefinition
See Also:
WSDLDefinition.setURI(java.net.URI)

getImportedDefinitions

public java.util.List<WSDLDefinition> getImportedDefinitions()
Description copied from interface: WSDLDefinition
Get the WSDL definitions imported by this definition

Specified by:
getImportedDefinitions in interface WSDLDefinition
Returns:
A list of imported WSDL definitions
See Also:
WSDLDefinition.getImportedDefinitions()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

getXmlSchemaElement

public XmlSchemaElement getXmlSchemaElement(javax.xml.namespace.QName name)
Description copied from interface: WSDLDefinition
Get an XSD element by QName

Specified by:
getXmlSchemaElement in interface WSDLDefinition
Returns:
See Also:
WSDLDefinition.getXmlSchemaElement(javax.xml.namespace.QName)

getXmlSchemaType

public XmlSchemaType getXmlSchemaType(javax.xml.namespace.QName name)
Description copied from interface: WSDLDefinition
Get an XSD type by QName

Specified by:
getXmlSchemaType in interface WSDLDefinition
Returns:
See Also:
WSDLDefinition.getXmlSchemaType(javax.xml.namespace.QName)

getWSDLObject

public <T extends WSDLElement> WSDLObject<T> getWSDLObject(java.lang.Class<T> type,
                                                           javax.xml.namespace.QName name)
Description copied from interface: WSDLDefinition
Get the WSDL object by type and name

Specified by:
getWSDLObject in interface WSDLDefinition
Parameters:
type - javax.wsdl.Service/PortType/Binding/Message.class
name - The QName of the object
Returns:
WSDLObject

getBinding

public Binding getBinding()
Description copied from interface: WSDLDefinition
Get the generated binding for a WSDLDefinition

Specified by:
getBinding in interface WSDLDefinition
Returns:
the WSDL binding

setBinding

public void setBinding(Binding binding)
Description copied from interface: WSDLDefinition
Set the generated binding for a WSDLDefinition

Specified by:
setBinding in interface WSDLDefinition
Parameters:
binding - the WSDL binding