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

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.AbstractBindingImpl<TBinding,InterfaceType,BindingOperation>
                  extended by org.ow2.easywsdl.wsdl.impl.wsdl11.BindingImpl
All Implemented Interfaces:
java.io.Serializable, org.ow2.easywsdl.schema.api.SchemaElement, org.ow2.easywsdl.schema.api.XMLElement, AbsItfBinding<InterfaceType,BindingOperation>, Binding, WSDLElement

public class BindingImpl
extends AbstractBindingImpl<TBinding,InterfaceType,BindingOperation>
implements Binding

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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfBinding
AbsItfBinding.BindingConstants, AbsItfBinding.StyleConstant
 
Field Summary
 
Fields inherited from class org.ow2.easywsdl.wsdl.api.abstractElmt.AbstractBindingImpl
bindingOperations, desc, itf
 
Fields inherited from class org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaElementImpl
documentation, model, parent
 
Constructor Summary
BindingImpl(TBinding binding, DescriptionImpl desc)
           
 
Method Summary
 void addBindingOperation(BindingOperation bindingOperation)
          Add an operation binding to binding.
 BindingOperation createBindingOperation()
          create binding operation
 java.lang.String getHttpContentEncodingDefault()
           
 java.lang.String getHttpDefaultMethod()
           
 java.lang.String getHttpQueryParameterSeparatorDefault()
           
 javax.xml.namespace.QName getQName()
          Get the name of this binding.
 AbsItfBinding.StyleConstant getStyle()
          get style
 java.lang.String getTransportProtocol()
          get the transport protocol
 AbsItfBinding.BindingConstants getTypeOfBinding()
          get type of binding
 java.lang.String getVersion()
          get the version of soap binding
 boolean isHttpCookies()
           
 BindingOperation removeBindingOperation(java.lang.String name)
          Remove the specified operation binding.
static TBinding replaceDOMElementByTBinding(WSDLElement parent, org.w3c.dom.Element childToReplace, WSDLReaderImpl reader)
           
 void setInterface(InterfaceType interfaceType)
          Set the port type this is a binding for.
 void setQName(javax.xml.namespace.QName name)
          Set the name of this binding.
 void setTransportProtocol(java.lang.String transportProtocol)
          set the transport protocol
 
Methods inherited from class org.ow2.easywsdl.wsdl.api.abstractElmt.AbstractBindingImpl
getBindingOperation, getBindingOperations, getDescription, getInterface
 
Methods inherited from class org.ow2.easywsdl.wsdl.api.abstractElmt.AbstractWSDLElementImpl
addOtherElements, createDocumentation, getDocumentation, getModel, getOtherAttributes, getOtherElements, setDocumentation, toString
 
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.AbsItfBinding
getBindingOperation, getBindingOperations, getInterface
 
Methods inherited from interface org.ow2.easywsdl.schema.api.XMLElement
addOtherElements, getOtherElements
 
Methods inherited from interface org.ow2.easywsdl.schema.api.SchemaElement
createDocumentation, getDocumentation, getOtherAttributes, setDocumentation
 

Constructor Detail

BindingImpl

public BindingImpl(TBinding binding,
                   DescriptionImpl desc)
Method Detail

addBindingOperation

public void addBindingOperation(BindingOperation bindingOperation)
Description copied from interface: AbsItfBinding
Add an operation binding to binding.

Specified by:
addBindingOperation in interface AbsItfBinding<InterfaceType,BindingOperation>
Overrides:
addBindingOperation in class AbstractBindingImpl<TBinding,InterfaceType,BindingOperation>
Parameters:
bindingOperation - the operation binding to be added

getQName

public javax.xml.namespace.QName getQName()
Description copied from interface: AbsItfBinding
Get the name of this binding.

Specified by:
getQName in interface AbsItfBinding<InterfaceType,BindingOperation>
Returns:
the binding name

removeBindingOperation

public BindingOperation removeBindingOperation(java.lang.String name)
Description copied from interface: AbsItfBinding
Remove the specified operation binding. Note that operation names can be overloaded within a PortType. Usage of the input and output message name parameters is as described for the getBindingOperation method.

Specified by:
removeBindingOperation in interface AbsItfBinding<InterfaceType,BindingOperation>
Parameters:
name - the name of the operation binding to be removed.
See Also:
AbsItfBinding.getBindingOperation(String)

setInterface

public void setInterface(InterfaceType interfaceType)
Description copied from interface: AbsItfBinding
Set the port type this is a binding for.

Specified by:
setInterface in interface AbsItfBinding<InterfaceType,BindingOperation>
Parameters:
interfaceType - the port type associated with this binding

setQName

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

Specified by:
setQName in interface AbsItfBinding<InterfaceType,BindingOperation>
Parameters:
name - the desired name

getTransportProtocol

public java.lang.String getTransportProtocol()
Description copied from interface: AbsItfBinding
get the transport protocol

Specified by:
getTransportProtocol in interface AbsItfBinding<InterfaceType,BindingOperation>

setTransportProtocol

public void setTransportProtocol(java.lang.String transportProtocol)
Description copied from interface: AbsItfBinding
set the transport protocol

Specified by:
setTransportProtocol in interface AbsItfBinding<InterfaceType,BindingOperation>
Parameters:
transportProtocol - TODO

getStyle

public AbsItfBinding.StyleConstant getStyle()
Description copied from interface: AbsItfBinding
get style

Specified by:
getStyle in interface AbsItfBinding<InterfaceType,BindingOperation>

getTypeOfBinding

public AbsItfBinding.BindingConstants getTypeOfBinding()
Description copied from interface: AbsItfBinding
get type of binding

Specified by:
getTypeOfBinding in interface AbsItfBinding<InterfaceType,BindingOperation>

getVersion

public java.lang.String getVersion()
Description copied from interface: AbsItfBinding
get the version of soap binding

Specified by:
getVersion in interface AbsItfBinding<InterfaceType,BindingOperation>
Returns:

getHttpContentEncodingDefault

public java.lang.String getHttpContentEncodingDefault()
Specified by:
getHttpContentEncodingDefault in interface AbsItfBinding<InterfaceType,BindingOperation>

getHttpDefaultMethod

public java.lang.String getHttpDefaultMethod()
Specified by:
getHttpDefaultMethod in interface AbsItfBinding<InterfaceType,BindingOperation>

getHttpQueryParameterSeparatorDefault

public java.lang.String getHttpQueryParameterSeparatorDefault()
Specified by:
getHttpQueryParameterSeparatorDefault in interface AbsItfBinding<InterfaceType,BindingOperation>

isHttpCookies

public boolean isHttpCookies()
Specified by:
isHttpCookies in interface AbsItfBinding<InterfaceType,BindingOperation>

createBindingOperation

public BindingOperation createBindingOperation()
Description copied from interface: AbsItfBinding
create binding operation

Specified by:
createBindingOperation in interface AbsItfBinding<InterfaceType,BindingOperation>
Returns:

replaceDOMElementByTBinding

public static TBinding replaceDOMElementByTBinding(WSDLElement parent,
                                                   org.w3c.dom.Element childToReplace,
                                                   WSDLReaderImpl reader)
                                            throws WSDLException
Throws:
WSDLException


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