Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

WsdlPull::WsdlParser Class Reference

#include <WsdlParser.h>

Collaboration diagram for WsdlPull::WsdlParser:

Collaboration graph
[legend]
List of all members.

Various Getter methods

typedef std::list< Service
* >::iterator 
ServiceIterator
std::string getNamespace (void)
std::string getName ()
const std::string * getDocumentation ()
const Binding * getBinding ()
const Binding * getBinding (const Qname &q)
bool getBindings (Binding::cBindingIterator &begin, Binding::cBindingIterator &end) const
const ServicegetService ()
const ServicegetService (const Qname &q)
void getServices (ServiceIterator &from, ServiceIterator &to)
const PortTypegetPortType ()
const PortTypegetPortType (const Qname &q)
bool getPortTypes (PortType::cPortTypeIterator &begin, PortType::cPortTypeIterator &end) const
bool getOperations (const Qname &portType, Operation::cOpIterator &begin, Operation::cOpIterator &end)
const OperationgetOperation (const Qname &portType, const Qname &q)
const MessagegetMessage ()
const MessagegetMessage (const Qname &q)
std::list< const Message * > & getMessages ()
void WsdlParser::getSchemaParsers (std::vector< SchemaParser * >::iterator &from, std::vector< SchemaParser * >::iterator &to)
int getNumSchemas () const
const SchemaParsergetSchemaParser (std::string targetNamespace) const
bool status () const
std::string wsdlPath () const
std::ostream & logger ()
std::string & getWsdlFileName ()

Public Types

enum  {
  NONE,
  START,
  DEFINITION,
  DOCUMENTATION,
  ANNOTATION,
  IMPORT,
  SCHEMA,
  TYPES,
  MESSAGE,
  PART,
  PORT_TYPE,
  OPERATION,
  INPUT,
  OUTPUT,
  FAULT,
  BINDING,
  EXTENSIBILITY,
  SERVICE,
  PORT,
  END
}

Public Member Functions

void setSchemaPath (const std::string &schemaPath)
const SchemaParsergetSchemaParser (int schemaId) const
Constructors and Destructors
 WsdlParser (std::istream &in=std::cin, std::ostream &out=std::cout, const std::string &schemaPath="")
 WsdlParser (const std::string &Uri, std::ostream &out=std::cout, const std::string &schemaPath="")
 ~WsdlParser ()
methods used for parsing
int getNextElement ()
int getEventType ()
Extensibility handler methods
void addExtensibilityHandler (WsdlExtension *ext)
WsdlExtensiongetExtensibilityHandler (const std::string &ns)
WsdlExtensiongetExtensibilityHandler (int extId)
Miscellaneous methods
bool setFeature (int feature_id)

Member Typedef Documentation

typedef std::list<Service*>::iterator WsdlPull::WsdlParser::ServiceIterator
 

getService.

Parameters:
Qname refering to the service element
Returns:
reference to the Service element
Exceptions:
WsdlException 


Member Enumeration Documentation

anonymous enum
 

The various states of the Wsdl Parser

Enumeration values:
NONE 
START 
DEFINITION 
DOCUMENTATION 
ANNOTATION 
IMPORT 
SCHEMA 
TYPES 
MESSAGE 
PART 
PORT_TYPE 
OPERATION 
INPUT 
OUTPUT 
FAULT 
BINDING 
EXTENSIBILITY 
SERVICE 
PORT 
END 


Constructor & Destructor Documentation

WsdlPull::WsdlParser::WsdlParser std::istream &  in = std::cin,
std::ostream &  out = std::cout,
const std::string &  schemaPath = ""
 

The default constructor for WsdlParser

Parameters:
input stream for the wsdl file
output stream for any error outputs
schemaPath path to directory containing XML schema files

WsdlPull::WsdlParser::WsdlParser const std::string &  Uri,
std::ostream &  out = std::cout,
const std::string &  schemaPath = ""
 

WsdlPull::WsdlParser::~WsdlParser  ) 
 


Member Function Documentation

void WsdlPull::WsdlParser::setSchemaPath const std::string &  schemaPath  ) 
 

setSchemaPath Set path to location of XML schema files, used by parser.

int WsdlPull::WsdlParser::getNextElement  )  [inline]
 

getNextElement processes the next Wsdl ELement in the stream and returns the type of the root Wsdl element parsed.

Returns:
one of START,DEFINITION,DOCUMENTATION,ANNOTATION, TYPES,MESSAGE,PORT_TYPE,BINDING,SERVICE,IMPORT

int WsdlPull::WsdlParser::getEventType  )  [inline]
 

getEventType returns the type Wsdl element parsed.

Returns:
one of the Wsdl event types

std::string WsdlPull::WsdlParser::getNamespace void   )  [inline]
 

getTargetNamespace

Returns:
target namespace of the wsdl document

std::string WsdlPull::WsdlParser::getName  )  [inline]
 

getName

Returns:
name of the wsdl document

const std::string * WsdlPull::WsdlParser::getDocumentation  )  [inline]
 

getDocumentation Returns the documentation string for the WSDL file This method must be called after getEventType returns DOCUMENT

Returns:
documentation std::string .

const Binding * WsdlPull::WsdlParser::getBinding  ) 
 

getBinding .This method must be called after getEventType returns BINDING

Returns:
reference to the Binding element just parsed.
Exceptions:
WsdlException 

const Binding * WsdlPull::WsdlParser::getBinding const Qname q  ) 
 

getBinding .

Parameters:
Qname refering to the binding element
Returns:
reference to the Binding element
Exceptions:
WsdlException 

bool WsdlPull::WsdlParser::getBindings Binding::cBindingIterator &  begin,
Binding::cBindingIterator &  end
const
 

getBindings

Returns:
iterator to a list of binding elements
Exceptions:
WsdlException 

const Service * WsdlPull::WsdlParser::getService  ) 
 

getService .This method must be called after getEventType returns SERVICE

Returns:
reference to the Binding element just parsed.
Exceptions:
WsdlException 

const Service * WsdlPull::WsdlParser::getService const Qname q  ) 
 

void WsdlPull::WsdlParser::getServices ServiceIterator from,
ServiceIterator to
 

const PortType * WsdlPull::WsdlParser::getPortType  ) 
 

getPortType .This method must be called after getEventType returns PORT_TYPE

Returns:
reference to the port type element just parsed.
Exceptions:
WsdlException 

const PortType * WsdlPull::WsdlParser::getPortType const Qname q  ) 
 

getPortType

Parameters:
Qname refering to the port type element
Returns:
reference to the port type element
Exceptions:
WsdlException 

bool WsdlPull::WsdlParser::getPortTypes PortType::cPortTypeIterator begin,
PortType::cPortTypeIterator end
const
 

getPortTypes

Returns:
iterators to a container of port types
Exceptions:
WsdlException 

bool WsdlPull::WsdlParser::getOperations const Qname portType,
Operation::cOpIterator begin,
Operation::cOpIterator end
 

getOperations

Parameters:
Qname refering to the port type element
Returns:
true if the port type is found. returns the start and ending iterators to operations
Exceptions:
WsdlException 

const Operation * WsdlPull::WsdlParser::getOperation const Qname portType,
const Qname q
 

getOperation

Parameters:
Qname refering to the port type element
Qname refering to the operation element
Returns:
reference to the operation element
Exceptions:
WsdlException 

const Message * WsdlPull::WsdlParser::getMessage  ) 
 

getMessage .This method must be called after getEventType returns MESSAGE

Returns:
reference to the message element just parsed.
Exceptions:
WsdlException 

const Message * WsdlPull::WsdlParser::getMessage const Qname q  ) 
 

getMessage .

Parameters:
Qname of the message element
Returns:
reference to the message element
Exceptions:
WsdlException 

std::list< const Message * > & WsdlPull::WsdlParser::getMessages  )  [inline]
 

getMessages

Returns:
list of all messages parsed.
Exceptions:
WsdlException 

void WsdlPull::WsdlParser::WsdlParser::getSchemaParsers std::vector< SchemaParser * >::iterator &  from,
std::vector< SchemaParser * >::iterator &  to
 

getSchemaParsers

Returns:
iterators to list of schema parsers the first element is the start of the list second being the end of it
Exceptions:
WsdlException 

int WsdlPull::WsdlParser::getNumSchemas  )  const
 

getNumSchemas

Returns:
number of schemas in the wsdl document
Exceptions:
WsdlException 

const SchemaParser * WsdlPull::WsdlParser::getSchemaParser std::string  targetNamespace  )  const
 

getSchemaParser

Parameters:
target namespace of the schema
Returns:
pointer to the schema parser for the namespace
Exceptions:
WsdlException 

bool WsdlPull::WsdlParser::status  )  const [inline]
 

to query the status of wsdl parsing

std::string WsdlPull::WsdlParser::wsdlPath  )  const [inline]
 

std::ostream & WsdlPull::WsdlParser::logger  )  [inline]
 

std::string& WsdlPull::WsdlParser::getWsdlFileName  )  [inline]
 

void WsdlPull::WsdlParser::addExtensibilityHandler WsdlExtension ext  ) 
 

addExtensibilityHandler Registers an extensibility handler for Wsdl extensibility namespaces

Parameters:
pointer to the instance of WsdlExtension
Exceptions:
WsdlException 

WsdlExtension * WsdlPull::WsdlParser::getExtensibilityHandler const std::string &  ns  ) 
 

getExtensibilityHandler returns theextensibility handler for the namespaces

Parameters:
namespace 
Exceptions:
WsdlException 

WsdlExtension * WsdlPull::WsdlParser::getExtensibilityHandler int  extId  ) 
 

bool WsdlPull::WsdlParser::setFeature int  feature_id  ) 
 

setFeature enables one of the features of the parser

Returns:
true or false

const SchemaParser * WsdlPull::WsdlParser::getSchemaParser int  schemaId  )  const [inline]
 

getSchemaParser

Parameters:
index of the schema parser .index:0..getNumSchemas-1
Returns:
pointer to the schema parser for the namespace
Exceptions:
WsdlException 


The documentation for this class was generated from the following files:
Generated on Wed Apr 12 18:51:56 2006 for wsdlpull by  doxygen 1.3.9.1