org.ow2.easywsdl.wsdl.impl.wsdl20
Class DescriptionImpl

java.lang.Object
  extended by org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaElementImpl<E>
      extended by org.ow2.easywsdl.xml.impl.AbstractXMLElementImpl<E>
          extended by org.ow2.easywsdl.wsdl.api.abstractElmt.AbstractWSDLElementImpl<E>
              extended by org.ow2.easywsdl.wsdl.api.abstractElmt.AbstractDescriptionImpl<DescriptionType,Service,Endpoint,Binding,InterfaceType,Include,Import,Types>
                  extended by org.ow2.easywsdl.wsdl.impl.wsdl20.DescriptionImpl
All Implemented Interfaces:
java.io.Serializable, org.ow2.easywsdl.schema.api.SchemaElement, AbsItfDescription<Service,Endpoint,Binding,InterfaceType,Include,Import,Types>, Description, WSDLElement, org.ow2.easywsdl.xml.api.XMLElement

public class DescriptionImpl
extends AbstractDescriptionImpl<DescriptionType,Service,Endpoint,Binding,InterfaceType,Include,Import,Types>
implements Description

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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfDescription
AbsItfDescription.WSDLVersionConstants
 
Field Summary
 
Fields inherited from class org.ow2.easywsdl.wsdl.api.abstractElmt.AbstractDescriptionImpl
baseURI, bindings, document, features, imports, includes, interfaces, namespaceContext, schemaLocations, services, types
 
Fields inherited from class org.ow2.easywsdl.wsdl.api.abstractElmt.AbstractWSDLElementImpl
documentation
 
Fields inherited from class org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaElementImpl
model, parent
 
Constructor Summary
DescriptionImpl()
           
DescriptionImpl(java.net.URI baseURI, DescriptionType description, org.jdom.Document document, java.util.Map<WSDLReader.FeatureConstants,java.lang.Object> features, java.util.Map<java.net.URI,javax.xml.transform.dom.DOMSource> imports)
           
 
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.
 Binding createDefaultSoapBinding(java.lang.String bindingName, Endpoint endpoint, InterfaceType itf)
          Create default soap binding
 Import createImport()
          Create a new import.
 InterfaceType createInterface()
          Create a new interface.
 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.
 AbsItfDescription.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 org.ow2.easywsdl.wsdl.api.abstractElmt.AbstractDescriptionImpl
addImportElementsInAllList, addInclude, addIncludeElementsInAllList, findEndpointsImplementingInterface, 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 org.ow2.easywsdl.wsdl.api.abstractElmt.AbstractWSDLElementImpl
createDocumentation, createElementFromString, getDocumentation, getModel, getOtherAttributes, setDocumentation
 
Methods inherited from class org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaElementImpl
getParent, getSchema, getTopParent, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfDescription
addInclude, findEndpointsImplementingInterface, getBinding, getBindings, getDocumentBaseURI, getImports, getImports, getIncludes, getIncludes, getInterface, getInterfaces, getNamespaces, getSchemaLocation, getService, getServices, getTypes, setDocumentBaseURI
 
Methods inherited from interface org.ow2.easywsdl.schema.api.SchemaElement
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,
                       java.util.Map<java.net.URI,javax.xml.transform.dom.DOMSource> imports)
                throws WSDLException
Throws:
WSDLException

DescriptionImpl

public DescriptionImpl()
                throws WSDLException
Throws:
WSDLException
Method Detail

addBinding

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

Specified by:
addBinding in interface AbsItfDescription<Service,Endpoint,Binding,InterfaceType,Include,Import,Types>
Overrides:
addBinding in class AbstractDescriptionImpl<DescriptionType,Service,Endpoint,Binding,InterfaceType,Include,Import,Types>
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 AbsItfDescription<Service,Endpoint,Binding,InterfaceType,Include,Import,Types>
Overrides:
addImport in class AbstractDescriptionImpl<DescriptionType,Service,Endpoint,Binding,InterfaceType,Include,Import,Types>
Parameters:
importDef - the import to be added

addNamespace

public void addNamespace(java.lang.String prefix,
                         java.lang.String namespaceURI)
Description copied from interface: AbsItfDescription
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 AbsItfDescription<Service,Endpoint,Binding,InterfaceType,Include,Import,Types>
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 AbsItfDescription<Service,Endpoint,Binding,InterfaceType,Include,Import,Types>
Overrides:
addInterface in class AbstractDescriptionImpl<DescriptionType,Service,Endpoint,Binding,InterfaceType,Include,Import,Types>

addService

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

Specified by:
addService in interface AbsItfDescription<Service,Endpoint,Binding,InterfaceType,Include,Import,Types>
Overrides:
addService in class AbstractDescriptionImpl<DescriptionType,Service,Endpoint,Binding,InterfaceType,Include,Import,Types>
Parameters:
service - the service to be added

createBinding

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

Specified by:
createBinding in interface AbsItfDescription<Service,Endpoint,Binding,InterfaceType,Include,Import,Types>
Returns:
the newly created binding

createImport

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

Specified by:
createImport in interface AbsItfDescription<Service,Endpoint,Binding,InterfaceType,Include,Import,Types>
Returns:
the newly created import

createInterface

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

Specified by:
createInterface in interface AbsItfDescription<Service,Endpoint,Binding,InterfaceType,Include,Import,Types>
Returns:
the newly created interface

createService

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

Specified by:
createService in interface AbsItfDescription<Service,Endpoint,Binding,InterfaceType,Include,Import,Types>
Returns:
the newly created service

setTypes

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

Specified by:
setTypes in interface AbsItfDescription<Service,Endpoint,Binding,InterfaceType,Include,Import,Types>
Overrides:
setTypes in class AbstractDescriptionImpl<DescriptionType,Service,Endpoint,Binding,InterfaceType,Include,Import,Types>

createTypes

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

Specified by:
createTypes in interface AbsItfDescription<Service,Endpoint,Binding,InterfaceType,Include,Import,Types>
Returns:
the newly created types section

getQName

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

Specified by:
getQName in interface AbsItfDescription<Service,Endpoint,Binding,InterfaceType,Include,Import,Types>
Returns:
the definition name
Throws:
WSDLException

getTargetNamespace

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

Specified by:
getTargetNamespace in interface AbsItfDescription<Service,Endpoint,Binding,InterfaceType,Include,Import,Types>
Returns:
the target namespace

removeBinding

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

Specified by:
removeBinding in interface AbsItfDescription<Service,Endpoint,Binding,InterfaceType,Include,Import,Types>
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: AbsItfDescription
Remove an import from this WSDL description.

Specified by:
removeImport in interface AbsItfDescription<Service,Endpoint,Binding,InterfaceType,Include,Import,Types>
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: AbsItfDescription
Remove the namespace URI associated with this prefix.

Specified by:
removeNamespace in interface AbsItfDescription<Service,Endpoint,Binding,InterfaceType,Include,Import,Types>
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: AbsItfDescription
Remove the specified portType from this definition.

Specified by:
removeInterface in interface AbsItfDescription<Service,Endpoint,Binding,InterfaceType,Include,Import,Types>
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: AbsItfDescription
Remove the specified service from this definition.

Specified by:
removeService in interface AbsItfDescription<Service,Endpoint,Binding,InterfaceType,Include,Import,Types>
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: AbsItfDescription
Set the name of this definition.

Specified by:
setQName in interface AbsItfDescription<Service,Endpoint,Binding,InterfaceType,Include,Import,Types>
Parameters:
name - the desired name
Throws:
WSDLException

setTargetNamespace

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

Specified by:
setTargetNamespace in interface AbsItfDescription<Service,Endpoint,Binding,InterfaceType,Include,Import,Types>
Parameters:
targetNamespace - the target namespace

removeInclude

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

Specified by:
removeInclude in interface AbsItfDescription<Service,Endpoint,Binding,InterfaceType,Include,Import,Types>
Parameters:
includeDef - the include to be removed
Returns:
the removed include

getVersion

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

Specified by:
getVersion in interface AbsItfDescription<Service,Endpoint,Binding,InterfaceType,Include,Import,Types>

getOtherElements

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

Specified by:
getOtherElements in interface org.ow2.easywsdl.xml.api.XMLElement
Overrides:
getOtherElements in class AbstractWSDLElementImpl<DescriptionType>
Throws:
org.ow2.easywsdl.schema.api.XmlException

createDefaultSoapBinding

public Binding createDefaultSoapBinding(java.lang.String bindingName,
                                        Endpoint endpoint,
                                        InterfaceType itf)
Description copied from interface: AbsItfDescription
Create default soap binding

Specified by:
createDefaultSoapBinding in interface AbsItfDescription<Service,Endpoint,Binding,InterfaceType,Include,Import,Types>


Copyright © 2008 eBM WebSourcing. All Rights Reserved.