This class serializes data types into a dom tree and vice versa. More...
#include <libppbase/base_soap/SOAPSerializer.h>
Static Public Member Functions | |
static SOAPStruct * | add (xercesc::DOMDocument *doc, xercesc::DOMElement *node, const base::String &name, SOAPTranscoder *transcoder=NULL) |
Adds a parameter of type soap struct to the given document node. | |
static void | add (xercesc::DOMDocument *doc, xercesc::DOMElement *node, const base::String &name, bool value) |
Adds a parameter of type bool to the given document node. | |
static void | add (xercesc::DOMDocument *doc, xercesc::DOMElement *node, const base::String &name, const base::DateTime &value) |
Adds a parameter of type base::DateTime to the given document node. | |
static void | add (xercesc::DOMDocument *doc, xercesc::DOMElement *node, const base::String &name, double value) |
Adds a parameter of type double to the given document node. | |
static void | add (xercesc::DOMDocument *doc, xercesc::DOMElement *node, const base::String &name, int value) |
Adds a parameter of type int to the given document node. | |
static void | add (xercesc::DOMDocument *doc, xercesc::DOMElement *node, const base::String &name, unsigned int value) |
Adds a parameter of type unsigned int to the given document node. | |
static void | add (xercesc::DOMDocument *doc, xercesc::DOMElement *node, const base::String &name, long value) |
Adds a parameter of type long to the given document node. | |
static void | add (xercesc::DOMDocument *doc, xercesc::DOMElement *node, const base::String &name, unsigned long value) |
Adds a parameter of type unsigned long to the given document node. | |
static void | add (xercesc::DOMDocument *doc, xercesc::DOMElement *node, const base::String &name, base::longlong_t value) |
Adds a parameter of type longlong_t to the given document node. | |
static void | add (xercesc::DOMDocument *doc, xercesc::DOMElement *node, const base::String &name, base::u_longlong_t value) |
Adds a parameter of type u_longlong_t to the given document node. | |
static void | add (xercesc::DOMDocument *doc, xercesc::DOMElement *node, const base::String &name, const char *value, SOAPTranscoder *transcoder=NULL) |
Adds a parameter of type const char* to the given document node. | |
static void | add (xercesc::DOMDocument *doc, xercesc::DOMElement *node, const base::String &name, const base::String &value, SOAPTranscoder *transcoder=NULL) |
Adds a parameter of type base::String to the given document node. | |
static void | add (xercesc::DOMDocument *doc, xercesc::DOMElement *node, const std::vector< base::String > &names, const std::vector< base::String > &values, SOAPTranscoder *transcoder=NULL) |
Adds all fields from vectors names and values the given document node. | |
static void | add (xercesc::DOMDocument *doc, xercesc::DOMElement *node, const base::String &name, const std::vector< base::String > &names, const std::vector< base::String > &values, SOAPTranscoder *transcoder=NULL) |
Adds vectors names and values to the given document node. | |
static void | add (xercesc::DOMDocument *doc, xercesc::DOMElement *node, const base::String &name, const std::vector< std::pair< base::String, base::String > > &value, bool lower=true, SOAPTranscoder *transcoder=NULL) |
Adds a list of variable=value pairs (record) to the given document node. | |
static void | add (xercesc::DOMDocument *doc, xercesc::DOMElement *node, const base::String &name, const std::map< base::String, base::String > &value, bool lower=true, SOAPTranscoder *transcoder=NULL) |
Adds a list of variable=value pairs (record) to the given document node. | |
static void | add (xercesc::DOMDocument *doc, xercesc::DOMElement *node, const base::String &name, const std::vector< base::String > &value, SOAPTranscoder *transcoder=NULL) |
Adds an array of Strings to the given document node. | |
static void | add (xercesc::DOMDocument *doc, xercesc::DOMElement *node, const base::String &name, const std::vector< std::map< base::String, base::String > > &value, bool lower=true, SOAPTranscoder *transcoder=NULL) |
Adds an array of lists of variable=value pairs (array of records) to the given document node. | |
static void | add (xercesc::DOMDocument *doc, xercesc::DOMElement *node, const SOAPException &exception) |
Adds a soap exception to the given document node. | |
static xercesc::DOMDocument * | createDocument (xercesc::DOMImplementation *impl, const base::String &qname, const base::String &nsuri="") |
Creates a DOM document. | |
static xercesc::DOMElement * | createElement (xercesc::DOMDocument *doc, const base::String &name, bool lower=false) |
Creates a DOM element with attributes. | |
static xercesc::DOMElement * | createElementNode (xercesc::DOMDocument *doc, const base::String &name) |
Creates a DOM element node. | |
static xercesc::DOMText * | createTextNode (xercesc::DOMDocument *doc, const char *value, SOAPTranscoder *transcoder=NULL) |
Creates a DOM text node. | |
static bool | deserializeBool (const xercesc::DOMNode *node, const base::String &name, bool *isnull=NULL) |
Deserializes the DOM node into a bool. | |
static base::DateTime | deserializeDateTime (const xercesc::DOMNode *node, const base::String &name, bool *isnull=NULL) |
Deserializes the DOM node into a base::DateTime. | |
static double | deserializeDouble (const xercesc::DOMNode *node, const base::String &name, bool *isnull=NULL) |
Deserializes the DOM node into a double. | |
static int | deserializeInt (const xercesc::DOMNode *node, const base::String &name, bool *isnull=NULL) |
Deserializes the DOM node into an int. | |
static unsigned int | deserializeUInt (const xercesc::DOMNode *node, const base::String &name, bool *isnull=NULL) |
Deserializes the DOM node into an unsigned int. | |
static long | deserializeLong (const xercesc::DOMNode *node, const base::String &name, bool *isnull=NULL) |
Deserializes the DOM node into a long. | |
static unsigned long | deserializeULong (const xercesc::DOMNode *node, const base::String &name, bool *isnull=NULL) |
Deserializes the DOM node into an unsigned long. | |
static base::longlong_t | deserializeLongLong (const xercesc::DOMNode *node, const base::String &name, bool *isnull=NULL) |
Deserializes the DOM node into a longlong_t. | |
static base::u_longlong_t | deserializeULongLong (const xercesc::DOMNode *node, const base::String &name, bool *isnull=NULL) |
Deserializes the DOM node into an u_longlong_t. | |
static base::String | deserializeString (const xercesc::DOMNode *node, bool *isnull=NULL, SOAPTranscoder *transcoder=NULL) |
Deserializes the DOM node into a base::String. | |
static std::vector< SOAPStruct * > | deserializeStructArray (xercesc::DOMDocument *doc, const xercesc::DOMNode *node, const base::String &name, SOAPTranscoder *transcoder=NULL) |
Deserializes the DOM node into an array of structs. | |
static std::map< base::String, base::String > * | deserializeMap (const xercesc::DOMNode *node, const base::String &name, SOAPTranscoder *transcoder=NULL) |
Deserializes the DOM node into a map. | |
static std::vector< std::pair < base::String, base::String > > * | deserializeVectorOfPairs (const xercesc::DOMNode *node, const base::String &name, SOAPTranscoder *transcoder=NULL) |
Deserializes the DOM node into a vector of pairs. | |
static std::vector < base::String > * | deserializeVectorOfStrings (const xercesc::DOMNode *node, const base::String &name, SOAPTranscoder *transcoder=NULL) |
Deserializes the DOM node into a vector of strings. | |
static std::vector< std::map < base::String, base::String > > * | deserializeVectorOfMaps (const xercesc::DOMNode *root, const base::String &name, SOAPTranscoder *transcoder=NULL) |
Deserializes the DOM node into an vector of maps. | |
static xercesc::DOMNode * | get (const xercesc::DOMNode *node, const base::String &name, bool *exists=NULL, bool *isnull=NULL, enum xercesc::DOMNode::NodeType type=xercesc::DOMNode::TEXT_NODE) |
Finds DOM node. | |
static bool | getBool (const xercesc::DOMNode *node, const base::String &name, bool *exists=NULL, bool *isnull=NULL) |
Gets a parameter of type bool. | |
static xercesc::DOMImplementation * | getDOMImplementation (const base::String &name) |
Gets a DOM implementation. | |
static base::DateTime | getDateTime (const xercesc::DOMNode *node, const base::String &name, bool *exists=NULL, bool *isnull=NULL) |
Gets a parameter of type base::DateTime. | |
static double | getDouble (const xercesc::DOMNode *node, const base::String &name, bool *exists=NULL, bool *isnull=NULL) |
Gets a parameter of type double. | |
static int | getInt (const xercesc::DOMNode *node, const base::String &name, bool *exists=NULL, bool *isnull=NULL) |
Gets a parameter of type int. | |
static xercesc::DOMNode * | getNamedItem (xercesc::DOMNamedNodeMap *list, const char *name) |
Gets a named node. | |
static base::String | getNodeName (const xercesc::DOMNode *node) |
Gets the name of a node. | |
static base::String | getNodeValue (const xercesc::DOMNode *node, SOAPTranscoder *transcoder=NULL) |
Gets the value of a node. | |
static unsigned int | getUInt (const xercesc::DOMNode *node, const base::String &name, bool *exists=NULL, bool *isnull=NULL) |
Gets a parameter of type unsigned int. | |
static long | getLong (const xercesc::DOMNode *node, const base::String &name, bool *exists=NULL, bool *isnull=NULL) |
Gets a parameter of type long. | |
static unsigned long | getULong (const xercesc::DOMNode *node, const base::String &name, bool *exists=NULL, bool *isnull=NULL) |
Gets a parameter of type unsigned long. | |
static base::longlong_t | getLongLong (const xercesc::DOMNode *node, const base::String &name, bool *exists=NULL, bool *isnull=NULL) |
Gets a parameter of type longlong_t. | |
static base::u_longlong_t | getULongLong (const xercesc::DOMNode *node, const base::String &name, bool *exists=NULL, bool *isnull=NULL) |
Gets a parameter of type u_longlong_t. | |
static std::map< base::String, base::String > * | getMap (const xercesc::DOMNode *node, const base::String &name, bool *exists=NULL, SOAPTranscoder *transcoder=NULL) |
Gets a parameter (record). | |
static base::String | getString (const xercesc::DOMNode *node, const base::String &name, bool *exists=NULL, bool *isnull=NULL, SOAPTranscoder *transcoder=NULL) |
Gets a parameter of type base::String. | |
static SOAPStruct * | getStruct (xercesc::DOMDocument *doc, const xercesc::DOMNode *node, const base::String &name, bool *exists=NULL, SOAPTranscoder *transcoder=NULL) |
Gets a parameter of type soap struct. | |
static std::vector< SOAPStruct * > | getStructArray (xercesc::DOMDocument *doc, const xercesc::DOMNode *node, const base::String &name, bool *exists=NULL, SOAPTranscoder *transcoder=NULL) |
Gets a parameter of type soap struct array. | |
static std::vector< std::pair < base::String, base::String > > * | getVectorOfPairs (const xercesc::DOMNode *node, const base::String &name, bool *exists=NULL, SOAPTranscoder *transcoder=NULL) |
Gets a parameter (record). | |
static std::vector < base::String > * | getVectorOfStrings (const xercesc::DOMNode *node, const base::String &name, bool *exists=NULL, SOAPTranscoder *transcoder=NULL) |
Gets a parameter (array). | |
static std::vector< std::map < base::String, base::String > > * | getVectorOfMaps (const xercesc::DOMNode *root, const base::String &name, bool *exists=NULL, SOAPTranscoder *transcoder=NULL) |
Gets a parameter (array of records). | |
static void | renameNode (xercesc::DOMDocument *doc, xercesc::DOMNode *node, const base::String &qname, const base::String &nsuri="", SOAPTranscoder *transcoder=NULL) |
Renames a node. | |
static xercesc::DOMElement * | serialize (xercesc::DOMDocument *doc, const base::String &name, bool value) |
Serializes the given parameter of type bool into a DOM node. | |
static xercesc::DOMElement * | serialize (xercesc::DOMDocument *doc, const base::String &name, const base::DateTime &value) |
Serializes the given parameter of type base::DateTime into a DOM node. | |
static xercesc::DOMElement * | serialize (xercesc::DOMDocument *doc, const base::String &name, double value) |
Serializes the given parameter of type double into a DOM node. | |
static xercesc::DOMElement * | serialize (xercesc::DOMDocument *doc, const base::String &name, int value) |
Serializes the given parameter of type int into a DOM node. | |
static xercesc::DOMElement * | serialize (xercesc::DOMDocument *doc, const base::String &name, unsigned int value) |
Serializes the given parameter of type unsigned int into a DOM node. | |
static xercesc::DOMElement * | serialize (xercesc::DOMDocument *doc, const base::String &name, long value) |
Serializes the given parameter of type long into a DOM node. | |
static xercesc::DOMElement * | serialize (xercesc::DOMDocument *doc, const base::String &name, unsigned long value) |
Serializes the given parameter of type unsigned long into a DOM node. | |
static xercesc::DOMElement * | serialize (xercesc::DOMDocument *doc, const base::String &name, base::longlong_t value) |
Serializes the given parameter of type longlong_t into a DOM node. | |
static xercesc::DOMElement * | serialize (xercesc::DOMDocument *doc, const base::String &name, base::u_longlong_t value) |
Serializes the given parameter of type u_longlong_t into a DOM node. | |
static xercesc::DOMElement * | serialize (xercesc::DOMDocument *doc, const base::String &name, const char *value, SOAPTranscoder *transcoder=NULL) |
Serializes the given parameter of type const char* into a DOM node. | |
static xercesc::DOMElement * | serialize (xercesc::DOMDocument *doc, const base::String &name, const base::String &value, SOAPTranscoder *transcoder=NULL) |
Serializes the given parameter of type base::String into a DOM node. | |
static void | serialize (xercesc::DOMDocument *doc, xercesc::DOMElement *elem, const std::vector< base::String > &names, const std::vector< base::String > &values, SOAPTranscoder *transcoder=NULL) |
Serializes all fields from vectors names and values into a DOM node. | |
static xercesc::DOMElement * | serialize (xercesc::DOMDocument *doc, const base::String &name, const std::vector< base::String > &names, const std::vector< base::String > &values, SOAPTranscoder *transcoder=NULL) |
Serializes vectors names and values into a DOM node. | |
static xercesc::DOMElement * | serialize (xercesc::DOMDocument *doc, const base::String &name, const std::vector< std::pair< base::String, base::String > > &value, bool lower, SOAPTranscoder *transcoder=NULL) |
Serializes a list of variable=value pairs (record) into a DOM node. | |
static xercesc::DOMElement * | serialize (xercesc::DOMDocument *doc, const base::String &name, const std::map< base::String, base::String > &value, bool lower, SOAPTranscoder *transcoder=NULL) |
Serializes a list of variable=value pairs (record) into a DOM node. | |
static xercesc::DOMElement * | serialize (xercesc::DOMDocument *doc, const base::String &name, const std::vector< base::String > &value, SOAPTranscoder *transcoder=NULL) |
Serializes an array of Strings into a DOM node. | |
static xercesc::DOMElement * | serialize (xercesc::DOMDocument *doc, const base::String &name, const std::vector< std::map< base::String, base::String > > &value, bool lower, SOAPTranscoder *transcoder=NULL) |
Serializes an array of lists of variable=value pairs (array of records) into a DOM node. | |
static xercesc::DOMElement * | serialize (xercesc::DOMDocument *doc, const base::String &name, const SOAPException &exception, SOAPTranscoder *transcoder=NULL) |
Serializes a soap exception into a DOM node. | |
static void | setAttribute (xercesc::DOMElement *elem, const base::String &name, const base::String &value, SOAPTranscoder *transcoder=NULL) |
Sets a node attribute. | |
static void | setNodeValue (xercesc::DOMNode *node, const base::String &value, SOAPTranscoder *transcoder=NULL) |
Sets a node value. | |
static base::String | toString (const xercesc::DOMNode *node) |
Serializes a subtree into a string. |
This class serializes data types into a dom tree and vice versa.
static SOAPStruct* base_soap::SOAPSerializer::add | ( | xercesc::DOMDocument * | doc, | |
xercesc::DOMElement * | node, | |||
const base::String & | name, | |||
SOAPTranscoder * | transcoder = NULL | |||
) | [static] |
Adds a parameter of type soap struct to the given document node.
doc | the dom document | |
node | the parent node | |
name | the new node name | |
transcoder | the transcoder to use for all string transcodings |