com.ebmwebsourcing.commons.wsdl.impl.wsdl20
Class DescriptionImpl

java.lang.Object
  extended by com.ebmwebsourcing.commons.wsdl.api.abstractElmt.AbstractWSDLElementImpl<E>
      extended by com.ebmwebsourcing.commons.wsdl.api.abstractElmt.AbstractDescriptionImpl<DescriptionType>
          extended by com.ebmwebsourcing.commons.wsdl.impl.wsdl20.DescriptionImpl
All Implemented Interfaces:
Description, WSDLElement, java.io.Serializable

public class DescriptionImpl
extends AbstractDescriptionImpl<DescriptionType>
implements Description

Author:
Nicolas Salatge - eBM WebSourcing
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ebmwebsourcing.commons.wsdl.api.abstractElmt.AbstractDescriptionImpl
baseURI, bindings, document, features, imports, includes, interfaces, namespaceContext, schemaLocations, services, types
 
Fields inherited from class com.ebmwebsourcing.commons.wsdl.api.abstractElmt.AbstractWSDLElementImpl
documentation, model
 
Constructor Summary
DescriptionImpl(java.net.URI baseURI, DescriptionType description, org.jdom.Document document, java.util.Map<WSDLReader.FeatureConstants,java.lang.Object> features)
           
 
Method Summary
 void addBinding(Binding binding)
          BindingImpl operation
 void addImport(Import importDef)
          ImportImpl operation
 void addInterface(InterfaceType interfaceType)
          Interface operation
 void addNamespace(java.lang.String prefix, java.lang.String namespaceURI)
          This is a way to add a namespace association to a definition.
 void addService(Service service)
          ServiceImpl operation
 Binding createBinding()
          Create a new binding.
 BindingFault createBindingFault()
          Create a new binding fault.
 BindingOperation createBindingOperation()
          Create a new binding operation.
 Endpoint createEndpoint()
          Create a new endpoint.
 Fault createFault()
          Create a new fault.
 Import createImport()
          Create a new import.
 Input createInput()
          Create a new input.
 InterfaceType createInterface()
          Create a new interface.
 Operation createOperation()
          Create a new operation.
 Output createOutput()
          Create a new output.
 Part createPart()
          Create a new part.
 Service createService()
          Create a new service.
 Types createTypes()
          Create a new types section.
 java.util.List<org.w3c.dom.Element> getOtherElements()
          Get all the extensibility elements defined here.
 javax.xml.namespace.QName getQName()
          Get the name of this definition.
 java.lang.String getTargetNamespace()
          Get the target namespace in which the WSDL elements are defined.
 Constants.WSDLVersionConstants getVersion()
          get the version of the wsdl
 Binding removeBinding(javax.xml.namespace.QName name)
          Remove the specified binding from this definition.
 Import removeImport(Import importDef)
          Remove an import from this WSDL description.
 Include removeInclude(Include includeDef)
          Remove an include from this WSDL description.
 InterfaceType removeInterface(javax.xml.namespace.QName name)
          Remove the specified portType from this definition.
 java.lang.String removeNamespace(java.lang.String prefix)
          Remove the namespace URI associated with this prefix.
 Service removeService(javax.xml.namespace.QName name)
          Remove the specified service from this definition.
 void setQName(javax.xml.namespace.QName name)
          Set the name of this definition.
 void setTargetNamespace(java.lang.String targetNamespace)
          Set the target namespace in which WSDL elements are defined.
 void setTypes(Types types)
          Set the types section.
 
Methods inherited from class com.ebmwebsourcing.commons.wsdl.api.abstractElmt.AbstractDescriptionImpl
addImportElementsInAllList, addInclude, addIncludeElementsInAllList, getBinding, getBindings, getDocument, getDocumentBaseURI, getFeatures, getFeatureValue, getImports, getImports, getIncludes, getIncludes, getInterface, getInterfaces, getNamespaces, getSchemaLocation, getService, getServices, getTypes, setDocument, setDocumentBaseURI, setFeatures, toString
 
Methods inherited from class com.ebmwebsourcing.commons.wsdl.api.abstractElmt.AbstractWSDLElementImpl
createDocumentation, createElementFromString, getDocumentation, getModel, getOtherAttributes, setDocumentation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ebmwebsourcing.commons.wsdl.api.Description
addInclude, getBinding, getBindings, getDocumentBaseURI, getImports, getImports, getIncludes, getIncludes, getInterface, getInterfaces, getNamespaces, getSchemaLocation, getService, getServices, getTypes, setDocumentBaseURI
 
Methods inherited from interface com.ebmwebsourcing.commons.wsdl.api.WSDLElement
createDocumentation, getDocumentation, getOtherAttributes, setDocumentation
 

Constructor Detail

DescriptionImpl

public DescriptionImpl(java.net.URI baseURI,
                       DescriptionType description,
                       org.jdom.Document document,
                       java.util.Map<WSDLReader.FeatureConstants,java.lang.Object> features)
                throws WSDLException
Throws:
WSDLException
Method Detail

addBinding

public void addBinding(Binding binding)
Description copied from class: AbstractDescriptionImpl
BindingImpl operation

Specified by:
addBinding in interface Description
Overrides:
addBinding in class AbstractDescriptionImpl<DescriptionType>
Parameters:
binding - the binding to be added

addImport

public void addImport(Import importDef)
Description copied from class: AbstractDescriptionImpl
ImportImpl operation

Specified by:
addImport in interface Description
Overrides:
addImport in class AbstractDescriptionImpl<DescriptionType>
Parameters:
importDef - the import to be added

addNamespace

public void addNamespace(java.lang.String prefix,
                         java.lang.String namespaceURI)
Description copied from interface: Description
This is a way to add a namespace association to a definition. It is similar to adding a namespace prefix declaration to the top of a <wsdl:definition> element. This has nothing to do with the <wsdl:import> element; there are separate methods for dealing with information described by <wsdl:import> elements.

Specified by:
addNamespace in interface Description
Parameters:
prefix - the prefix to use for this namespace (when rendering this information as XML). Use null or an empty string to describe the default namespace (i.e. xmlns="...").
namespaceURI - the namespace URI to associate the prefix with. If you use null, the namespace association will be removed.

addInterface

public void addInterface(InterfaceType interfaceType)
Description copied from class: AbstractDescriptionImpl
Interface operation

Specified by:
addInterface in interface Description
Overrides:
addInterface in class AbstractDescriptionImpl<DescriptionType>
Parameters:
interfaceType - the portType to be added

addService

public void addService(Service service)
Description copied from class: AbstractDescriptionImpl
ServiceImpl operation

Specified by:
addService in interface Description
Overrides:
addService in class AbstractDescriptionImpl<DescriptionType>
Parameters:
service - the service to be added

createBinding

public Binding createBinding()
Description copied from interface: Description
Create a new binding.

Specified by:
createBinding in interface Description
Returns:
the newly created binding

createBindingFault

public BindingFault createBindingFault()
Description copied from interface: Description
Create a new binding fault.

Specified by:
createBindingFault in interface Description
Returns:
the newly created binding fault

createBindingOperation

public BindingOperation createBindingOperation()
Description copied from interface: Description
Create a new binding operation.

Specified by:
createBindingOperation in interface Description
Returns:
the newly created binding operation

createFault

public Fault createFault()
Description copied from interface: Description
Create a new fault.

Specified by:
createFault in interface Description
Returns:
the newly created fault

createImport

public Import createImport()
Description copied from interface: Description
Create a new import.

Specified by:
createImport in interface Description
Returns:
the newly created import

createInput

public Input createInput()
Description copied from interface: Description
Create a new input.

Specified by:
createInput in interface Description
Returns:
the newly created input

createOperation

public Operation createOperation()
Description copied from interface: Description
Create a new operation.

Specified by:
createOperation in interface Description
Returns:
the newly created operation

createOutput

public Output createOutput()
Description copied from interface: Description
Create a new output.

Specified by:
createOutput in interface Description
Returns:
the newly created output

createPart

public Part createPart()
Description copied from interface: Description
Create a new part.

Specified by:
createPart in interface Description
Returns:
the newly created part

createEndpoint

public Endpoint createEndpoint()
Description copied from interface: Description
Create a new endpoint.

Specified by:
createEndpoint in interface Description
Returns:
the newly created endpoint

createInterface

public InterfaceType createInterface()
Description copied from interface: Description
Create a new interface.

Specified by:
createInterface in interface Description
Returns:
the newly created interface

createService

public Service createService()
Description copied from interface: Description
Create a new service.

Specified by:
createService in interface Description
Returns:
the newly created service

createTypes

public Types createTypes()
Description copied from interface: Description
Create a new types section.

Specified by:
createTypes in interface Description
Returns:
the newly created types section

getQName

public javax.xml.namespace.QName getQName()
                                   throws WSDLException
Description copied from interface: Description
Get the name of this definition.

Specified by:
getQName in interface Description
Returns:
the definition name
Throws:
WSDLException

getTargetNamespace

public java.lang.String getTargetNamespace()
Description copied from interface: Description
Get the target namespace in which the WSDL elements are defined.

Specified by:
getTargetNamespace in interface Description
Returns:
the target namespace

removeBinding

public Binding removeBinding(javax.xml.namespace.QName name)
Description copied from interface: Description
Remove the specified binding from this definition.

Specified by:
removeBinding in interface Description
Parameters:
name - the name of the binding to remove
Returns:
the binding previously associated with this qname, if there was one; may return null

removeImport

public Import removeImport(Import importDef)
Description copied from interface: Description
Remove an import from this WSDL description.

Specified by:
removeImport in interface Description
Parameters:
importDef - the import to be removed
Returns:
the removed ImportImpl

removeNamespace

public java.lang.String removeNamespace(java.lang.String prefix)
Description copied from interface: Description
Remove the namespace URI associated with this prefix.

Specified by:
removeNamespace in interface Description
Parameters:
prefix - the prefix of the namespace to be removed.
Returns:
the namespace URI which was removed.

removeInterface

public InterfaceType removeInterface(javax.xml.namespace.QName name)
Description copied from interface: Description
Remove the specified portType from this definition.

Specified by:
removeInterface in interface Description
Parameters:
name - the name of the portType to remove
Returns:
the portType previously associated with this qname, if there was one; may return null

removeService

public Service removeService(javax.xml.namespace.QName name)
Description copied from interface: Description
Remove the specified service from this definition.

Specified by:
removeService in interface Description
Parameters:
name - the name of the service to remove
Returns:
the service previously associated with this qname, if there was one; may return null

setQName

public void setQName(javax.xml.namespace.QName name)
              throws WSDLException
Description copied from interface: Description
Set the name of this definition.

Specified by:
setQName in interface Description
Parameters:
name - the desired name
Throws:
WSDLException

setTargetNamespace

public void setTargetNamespace(java.lang.String targetNamespace)
Description copied from interface: Description
Set the target namespace in which WSDL elements are defined.

Specified by:
setTargetNamespace in interface Description
Parameters:
targetNamespace - the target namespace

setTypes

public void setTypes(Types types)
Description copied from interface: Description
Set the types section.

Specified by:
setTypes in interface Description
Overrides:
setTypes in class AbstractDescriptionImpl<DescriptionType>

removeInclude

public Include removeInclude(Include includeDef)
Description copied from interface: Description
Remove an include from this WSDL description.

Specified by:
removeInclude in interface Description
Parameters:
includeDef - the include to be removed
Returns:
the removed include

getVersion

public Constants.WSDLVersionConstants getVersion()
Description copied from interface: Description
get the version of the wsdl

Specified by:
getVersion in interface Description

getOtherElements

public java.util.List<org.w3c.dom.Element> getOtherElements()
                                                     throws WSDLException
Description copied from class: AbstractWSDLElementImpl
Get all the extensibility elements defined here.

Specified by:
getOtherElements in interface WSDLElement
Overrides:
getOtherElements in class AbstractWSDLElementImpl<DescriptionType>
Throws:
WSDLException


Copyright © 2008 eBM WebSourcing. All Rights Reserved.