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

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

public class DescriptionImpl
extends AbstractDescriptionImpl<TDefinitions,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
bindings, documentURI, features, imports, includes, interfaces, namespaceMapper, services, types
 
Fields inherited from class org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaElementImpl
documentation, model, parent
 
Constructor Summary
DescriptionImpl()
           
DescriptionImpl(java.net.URI baseURI, TDefinitions definition, org.ow2.easywsdl.schema.api.extensions.NamespaceMapperImpl namespaceMapper, org.ow2.easywsdl.schema.api.extensions.SchemaLocatorImpl schemaLocator, java.util.Map<WSDLReader.FeatureConstants,java.lang.Object> features, java.util.Map<java.net.URI,AbsItfDescription> descriptionImports, java.util.Map<java.net.URI,org.ow2.easywsdl.schema.api.absItf.AbsItfSchema> schemaImports, WSDLReaderImpl reader)
           
 
Method Summary
 void addBinding(Binding binding)
          BindingImpl operation
 void addImport(Import impt)
          ImportImpl operation
 void addInclude(Include incl)
          IncludeImpl operation
 void addInterface(InterfaceType interfaceType)
          Interface operation
 void addOtherElements(org.w3c.dom.Element elmt)
           
 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<MessageImpl> findAllMessages(AbsItfDescription parent)
           
 MessageImpl getMessage(javax.xml.namespace.QName name)
           
 java.util.List<MessageImpl> getMessages()
           
 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
 void removeAllMessages()
           
 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 setMessages(java.util.List<MessageImpl> messages)
           
 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, addIncludeElementsInAllList, addNamespace, findEndpointsImplementingInterface, getBinding, getBindings, getDocumentBaseURI, getFeatures, getFeatureValue, getImports, getImports, getInclude, getIncludes, getInterface, getInterfaces, getNamespaces, getSchemaLocation, getSchemaLocator, getService, getServices, getTypes, setDocumentBaseURI, setFeatures, toString
 
Methods inherited from class org.ow2.easywsdl.wsdl.api.abstractElmt.AbstractWSDLElementImpl
createDocumentation, getDocumentation, getModel, getOtherAttributes, getOtherElements, setDocumentation
 
Methods inherited from class org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaElementImpl
equals, getParent, getSchema, getTopParent, hashCode, setParent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfDescription
addNamespace, findEndpointsImplementingInterface, getBinding, getBindings, getDocumentBaseURI, getImports, getImports, getInclude, getIncludes, getInterface, getInterfaces, getNamespaces, getSchemaLocation, getService, getServices, getTypes, setDocumentBaseURI
 
Methods inherited from interface org.ow2.easywsdl.schema.api.XMLElement
getOtherElements
 
Methods inherited from interface org.ow2.easywsdl.schema.api.SchemaElement
createDocumentation, equals, getDocumentation, getOtherAttributes, hashCode, setDocumentation
 

Constructor Detail

DescriptionImpl

public DescriptionImpl(java.net.URI baseURI,
                       TDefinitions definition,
                       org.ow2.easywsdl.schema.api.extensions.NamespaceMapperImpl namespaceMapper,
                       org.ow2.easywsdl.schema.api.extensions.SchemaLocatorImpl schemaLocator,
                       java.util.Map<WSDLReader.FeatureConstants,java.lang.Object> features,
                       java.util.Map<java.net.URI,AbsItfDescription> descriptionImports,
                       java.util.Map<java.net.URI,org.ow2.easywsdl.schema.api.absItf.AbsItfSchema> schemaImports,
                       WSDLReaderImpl reader)
                throws WSDLException,
                       WSDLImportException
Throws:
WSDLException
WSDLImportException

DescriptionImpl

public DescriptionImpl()
                throws WSDLException
Throws:
WSDLException
Method Detail

findAllMessages

public java.util.List<MessageImpl> findAllMessages(AbsItfDescription parent)

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<TDefinitions,Service,Endpoint,Binding,InterfaceType,Include,Import,Types>
Parameters:
binding - the binding to be added

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<TDefinitions,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<TDefinitions,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()
                    throws WSDLException,
                           WSDLImportException
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
Throws:
WSDLException
WSDLImportException - if the import can't be correctly parsed

addImport

public void addImport(Import impt)
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<TDefinitions,Service,Endpoint,Binding,InterfaceType,Include,Import,Types>
Parameters:
impt - the import to be added

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

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

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<TDefinitions,Service,Endpoint,Binding,InterfaceType,Include,Import,Types>

getQName

public javax.xml.namespace.QName getQName()
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

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)
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

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

addInclude

public void addInclude(Include incl)
                throws WSDLException
Description copied from class: AbstractDescriptionImpl
IncludeImpl operation

Specified by:
addInclude in interface AbsItfDescription<Service,Endpoint,Binding,InterfaceType,Include,Import,Types>
Overrides:
addInclude in class AbstractDescriptionImpl<TDefinitions,Service,Endpoint,Binding,InterfaceType,Include,Import,Types>
Parameters:
incl - the include to be added
Throws:
WSDLException

removeInclude

public Include removeInclude(Include includeDef)
                      throws WSDLException
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
Throws:
WSDLException

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>

getMessages

public java.util.List<MessageImpl> getMessages()
Returns:
the messages

getMessage

public MessageImpl getMessage(javax.xml.namespace.QName name)

removeAllMessages

public void removeAllMessages()

setMessages

public void setMessages(java.util.List<MessageImpl> messages)
Parameters:
messages - the messages to set

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>

addOtherElements

public void addOtherElements(org.w3c.dom.Element elmt)
Specified by:
addOtherElements in interface org.ow2.easywsdl.schema.api.XMLElement
Overrides:
addOtherElements in class AbstractWSDLElementImpl<TDefinitions>


Copyright © 2008-2010 Petals Link (previously EBM WebSourcing). All Rights Reserved.