#include <OMNode.h>

Public Member Functions | |
| OMNode () | |
| virtual | ~OMNode () |
| WSF_EXTERN void | setAxiomNode (axiom_node_t *node) |
| WSF_EXTERN axiom_node_t * | getAxiomNode () |
| virtual WSF_EXTERN std::string | toString () |
| virtual std::string | subTreeToString () |
| virtual void | freeTree () |
| virtual bool | insertSiblingAfter (OMNode *to_insert) |
| virtual bool | insertSiblingBefore (OMNode *to_insert) |
| virtual OMNode * | detach () |
| virtual OMNode * | getParent () |
| virtual void | setParent (OMNode *parent) |
| virtual OMNode * | getPreviousSibling () |
| virtual OMNode * | getNextSibling () |
| virtual axiom_types_t | nodeType ()=0 |
Protected Attributes | |
| OMNode * | _parent |
Friends | |
| WSF_EXTERN std::ostream & | operator<< (std::ostream &str, OMNode const &node) |
| WSF_EXTERN std::ostream & | operator<< (std::ostream &str, OMNode const *node) |
| wso2wsf::OMNode::OMNode | ( | ) |
Creates a node object.
| virtual wso2wsf::OMNode::~OMNode | ( | ) | [virtual] |
destructor that can be overridden.
| virtual OMNode* wso2wsf::OMNode::detach | ( | ) | [virtual] |
Detaches given node from the parent and reset the links.
| virtual void wso2wsf::OMNode::freeTree | ( | ) | [virtual] |
Frees an om node and all of its children.
Reimplemented in wso2wsf::OMElement.
| WSF_EXTERN axiom_node_t* wso2wsf::OMNode::getAxiomNode | ( | ) |
Method to get the reference to the axiom_node struct.
| virtual OMNode* wso2wsf::OMNode::getNextSibling | ( | ) | [virtual] |
get next sibling.
| virtual OMNode* wso2wsf::OMNode::getParent | ( | ) | [virtual] |
get parent of node.
| virtual OMNode* wso2wsf::OMNode::getPreviousSibling | ( | ) | [virtual] |
get the previous sibling.
| virtual bool wso2wsf::OMNode::insertSiblingAfter | ( | OMNode * | to_insert | ) | [virtual] |
Inserts a sibling node after this node.
| to_insert | the node to be inserted. Cannot be NULL. |
Reimplemented in wso2wsf::OMElement.
| virtual bool wso2wsf::OMNode::insertSiblingBefore | ( | OMNode * | to_insert | ) | [virtual] |
Inserts a sibling node before this current node.
| to_insert | the node to be inserted. Cannot be NULL. |
Reimplemented in wso2wsf::OMElement.
| virtual axiom_types_t wso2wsf::OMNode::nodeType | ( | ) | [pure virtual] |
get the node type of this element. Node type can be one of AXIOM_ELEMENT, AXIOM_COMMENT, AXIOM_TEXT AXIOM_DOCTYPE, AXIOM_PROCESSING_INSTRUCTION.
Implemented in wso2wsf::OMElement, and wso2wsf::OMText.
| WSF_EXTERN void wso2wsf::OMNode::setAxiomNode | ( | axiom_node_t * | node | ) |
Method to set the reference to the axiom_node struct.
| node | axiom_node reference. |
| virtual void wso2wsf::OMNode::setParent | ( | OMNode * | parent | ) | [virtual] |
Set Parent of this Node.If the child node already has a parent which is different to the parent being set, the child will be detached first.
| parent | Parent element to be set |
| virtual std::string wso2wsf::OMNode::subTreeToString | ( | ) | [virtual] |
Converts sub tree starting from given node to string.
| virtual WSF_EXTERN std::string wso2wsf::OMNode::toString | ( | ) | [virtual] |
Converts this node to a string.
| WSF_EXTERN std::ostream& operator<< | ( | std::ostream & | str, | |
| OMNode const * | node | |||
| ) | [friend] |
Overloaded insertion operator, is used for printing the node onto a console.
| str | existing stream. | |
| node | OMNode object. |
| WSF_EXTERN std::ostream& operator<< | ( | std::ostream & | str, | |
| OMNode const & | node | |||
| ) | [friend] |
Overloaded insertion operator, is used for printing the node onto a console.
| str | existing stream. | |
| node | OMNode object. |
OMNode* wso2wsf::OMNode::_parent [protected] |
_parent variable holds reference for the parent of this node.
1.5.7.1