wsdlpull svntrunk
Loading...
Searching...
No Matches
WsdlPull::Binding Class Reference

#include <Binding.h>

Inheritance diagram for WsdlPull::Binding:
WsdlPull::WsdlElement

Public Types

typedef std::list< Binding * >::iterator BindingIterator
 
typedef std::list< Binding * >::const_iterator cBindingIterator
 

Public Member Functions

 Binding (WsdlParser &w)
 
 ~Binding ()
 
Various Getter methods
std::string getName () const
 
const std::string getDocumentation () const
 
getExtensibilityElements/getExtensibilityAttributes

return the extensibility elements/attributes belonging to a given namespace @params namspace uri @params reference to a vector<int>

Returns
true if any extensibility elements were found
bool getExtensibilityElements (const std::string &namespc, std::vector< int > &ids)
 
bool getExtensibilityAttributes (const std::string &namespc, std::vector< int > &ids)
 

Various Getter methods

int getBindingInfo () const
 
const PortTypegetPortType () const
 
int getServiceExtId () const
 
int numOps (void) const
 
const OperationgetOperation (int index) const
 
std::string getBindingMethod () const
 
int getOpBinding (int index, const int *&bindings) const
 
int getOutputBinding (int index, const int *&bindings) const
 
int getInputBinding (int index, const int *&bindings) const
 
int getFaultBinding (int index, const int *&bindings) const
 
void setPortType (const PortType *pt)
 
void setBindingInfo (int id)
 
void setBindingMethod (const std::string &ns)
 
void addServiceExtId (int id)
 
int addOperation (const Operation *op)
 
void addOpBinding (int index, int oBn)
 
void addOutputBinding (int index, int opBn)
 
void addInputBinding (int index, int ipBn)
 
void addFaultBinding (int index, int fBn)
 
int getOperationIndex (const Qname &name) const
 

Various Setter methods

void setName (std::string nam)
 
void addExtElement (int ident)
 
void addExtAttribute (int ident)
 
void setDocumentation (std::string *s)
 
virtual void print (std::ostream &out)
 
std::string name_
 
int id_
 
std::vector< int > extElems_
 
std::vector< int > extAttributes_
 
std::string * doc_
 
WsdlParserwParser_
 

Detailed Description

Definition at line 32 of file Binding.h.

Member Typedef Documentation

◆ BindingIterator

typedef std::list<Binding*>::iterator WsdlPull::Binding::BindingIterator

The default constructor for Wsdl Binding

Definition at line 39 of file Binding.h.

◆ cBindingIterator

typedef std::list<Binding*>::const_iterator WsdlPull::Binding::cBindingIterator

Definition at line 40 of file Binding.h.

Constructor & Destructor Documentation

◆ Binding()

WsdlPull::Binding::Binding ( WsdlParser & w)
inline

Definition at line 286 of file Binding.h.

◆ ~Binding()

WsdlPull::Binding::~Binding ( )
inline

Definition at line 294 of file Binding.h.

Member Function Documentation

◆ getBindingInfo()

int WsdlPull::Binding::getBindingInfo ( ) const
inline

getBindingInfo

Returns
the extensibility element id of the main binding extension element. In case of soap it would be the id of the soap:binding element

Definition at line 157 of file Binding.h.

◆ getPortType()

const PortType * WsdlPull::Binding::getPortType ( ) const
inline

getPortType

Returns
the wsdl port type associated with this binding

Definition at line 164 of file Binding.h.

◆ getServiceExtId()

int WsdlPull::Binding::getServiceExtId ( ) const
inline

getServiceExtId

Returns
the id of the service element assocaited with this binding

Definition at line 171 of file Binding.h.

◆ numOps()

int WsdlPull::Binding::numOps ( void ) const
inline

numOps

Returns
number of operations in this binding

Definition at line 181 of file Binding.h.

◆ getOperation()

const Operation * WsdlPull::Binding::getOperation ( int index) const
inline

getOperation

Parameters
theindex of the operation (index ranges from 0 to Ops_.size()-1)
Returns
pointer to the operation

Definition at line 188 of file Binding.h.

◆ getBindingMethod()

std::string WsdlPull::Binding::getBindingMethod ( ) const
inline

getBindingMethod

Parameters
void
Returns
The namespace of the binding protocol example "http://schemas.xmlsoap.org/wsdl/soap/"

Definition at line 307 of file Binding.h.

◆ getOpBinding()

int WsdlPull::Binding::getOpBinding ( int index,
const int *& bindings ) const
inline

getBinding

Returns
The number of binding extensibility elements assocated with each message of the operation whose index is given returns a pointer to a list of extensibility binding ids

Definition at line 195 of file Binding.h.

◆ getOutputBinding()

int WsdlPull::Binding::getOutputBinding ( int index,
const int *& bindings ) const
inline

getBindingInfo

Returns
the extensibility element id of the main binding extension element. In case of soap it would be the id of the soap:binding element

Definition at line 203 of file Binding.h.

◆ getInputBinding()

int WsdlPull::Binding::getInputBinding ( int index,
const int *& bindings ) const
inline

getBindingInfo

Returns
the extensibility element id of the main binding extension element. In case of soap it would be the id of the soap:binding element

Definition at line 211 of file Binding.h.

◆ getFaultBinding()

int WsdlPull::Binding::getFaultBinding ( int index,
const int *& bindings ) const
inline

getBindingInfo

Returns
the extensibility element id of the main binding extension element. In case of soap it would be the id of the soap:binding element

Definition at line 219 of file Binding.h.

◆ setPortType()

void WsdlPull::Binding::setPortType ( const PortType * pt)
inline

Their descriptions are similar to the corresponding getter methods

Definition at line 227 of file Binding.h.

◆ setBindingInfo()

void WsdlPull::Binding::setBindingInfo ( int id)
inline

getBindingInfo

Returns
the extensibility element id of the main binding extension element. In case of soap it would be the id of the soap:binding element

Definition at line 234 of file Binding.h.

References WsdlPull::WsdlElement::addExtElement().

◆ setBindingMethod()

void WsdlPull::Binding::setBindingMethod ( const std::string & ns)
inline

getBindingInfo

Returns
the extensibility element id of the main binding extension element. In case of soap it would be the id of the soap:binding element

Definition at line 300 of file Binding.h.

◆ addServiceExtId()

void WsdlPull::Binding::addServiceExtId ( int id)
inline

getBindingInfo

Returns
the extensibility element id of the main binding extension element. In case of soap it would be the id of the soap:binding element

Definition at line 242 of file Binding.h.

◆ addOperation()

int WsdlPull::Binding::addOperation ( const Operation * op)
inline

Add an operation to the binding .The index returned is to be used to add more bindings to the operation

Definition at line 249 of file Binding.h.

◆ addOpBinding()

void WsdlPull::Binding::addOpBinding ( int index,
int oBn )
inline

getBindingInfo

Returns
the extensibility element id of the main binding extension element. In case of soap it would be the id of the soap:binding element

Definition at line 259 of file Binding.h.

◆ addOutputBinding()

void WsdlPull::Binding::addOutputBinding ( int index,
int opBn )
inline

getBindingInfo

Returns
the extensibility element id of the main binding extension element. In case of soap it would be the id of the soap:binding element

Definition at line 266 of file Binding.h.

◆ addInputBinding()

void WsdlPull::Binding::addInputBinding ( int index,
int ipBn )
inline

getBindingInfo

Returns
the extensibility element id of the main binding extension element. In case of soap it would be the id of the soap:binding element

Definition at line 272 of file Binding.h.

◆ addFaultBinding()

void WsdlPull::Binding::addFaultBinding ( int index,
int fBn )
inline

getBindingInfo

Returns
the extensibility element id of the main binding extension element. In case of soap it would be the id of the soap:binding element

Definition at line 279 of file Binding.h.

◆ getOperationIndex()

int WsdlPull::Binding::getOperationIndex ( const Qname & name) const
inline

getBindingInfo

Returns
the extensibility element id of the main binding extension element. In case of soap it would be the id of the soap:binding element

Definition at line 313 of file Binding.h.

References Qname::getLocalName().

◆ getName()

std::string WsdlPull::WsdlElement::getName ( ) const
inlineinherited

◆ getDocumentation()

const std::string WsdlPull::WsdlElement::getDocumentation ( ) const
inlineinherited

getDocumentation

Definition at line 117 of file WsdlElement.h.

References WsdlPull::WsdlElement::doc_.

◆ getExtensibilityElements()

bool WsdlPull::WsdlElement::getExtensibilityElements ( const std::string & namespc,
std::vector< int > & ids )
inherited

◆ getExtensibilityAttributes()

bool WsdlPull::WsdlElement::getExtensibilityAttributes ( const std::string & namespc,
std::vector< int > & ids )
inherited

◆ setName()

void WsdlPull::WsdlElement::setName ( std::string nam)
inlineinherited

Definition at line 127 of file WsdlElement.h.

References WsdlPull::WsdlElement::name_.

◆ addExtElement()

void WsdlPull::WsdlElement::addExtElement ( int ident)
inlineinherited

Definition at line 140 of file WsdlElement.h.

References WsdlPull::WsdlElement::extElems_.

Referenced by setBindingInfo().

◆ addExtAttribute()

void WsdlPull::WsdlElement::addExtAttribute ( int ident)
inlineinherited

Definition at line 147 of file WsdlElement.h.

References WsdlPull::WsdlElement::extAttributes_.

◆ setDocumentation()

void WsdlPull::WsdlElement::setDocumentation ( std::string * s)
inlineinherited

Definition at line 133 of file WsdlElement.h.

References WsdlPull::WsdlElement::doc_.

◆ print()

void WsdlPull::WsdlElement::print ( std::ostream & out)
virtualinherited

Member Data Documentation

◆ name_

std::string WsdlPull::WsdlElement::name_
protectedinherited

◆ id_

int WsdlPull::WsdlElement::id_
protectedinherited

Definition at line 86 of file WsdlElement.h.

Referenced by WsdlPull::Operation::print().

◆ extElems_

std::vector<int> WsdlPull::WsdlElement::extElems_
protectedinherited

◆ extAttributes_

std::vector<int> WsdlPull::WsdlElement::extAttributes_
protectedinherited

◆ doc_

std::string* WsdlPull::WsdlElement::doc_
protectedinherited

◆ wParser_

WsdlParser& WsdlPull::WsdlElement::wParser_
protectedinherited

The documentation for this class was generated from the following file: