#include "NOContentStreamNavigator.h"
void NiXPSObjects::NOContentStreamNavigator::getNodeInfo | ( | NCommon::UInt32 & | lPos, | |
NCommon::UInt32 & | lLen | |||
) |
Get Position and Length of the current node
lPos | On return, the position of the current node | |
lLen | On return, the length of the current node |
NCommon::UInt32 NiXPSObjects::NOContentStreamNavigator::getNumberOfChilds | ( | ) | const |
bool NiXPSObjects::NOContentStreamNavigator::toChild | ( | const NCommon::UInt32 | pNum | ) |
Navigate to child node at given index
pNum | the index of the node to navigate to |
bool NiXPSObjects::NOContentStreamNavigator::toChild | ( | const NCommon::UTF8String & | pString, | |
const bool | pCaseSensitive = true , |
|||
const bool | pIgnorePrefix = true | |||
) |
Navigate to child node with given name, optionally ingnoring case and/or namespace
pString | The name of the node to go to | |
pCaseSensitive | Behave case sensitive. Defaults to true (case sensitive) | |
pIgnorePrefix | Ignore namespace prefixes. Defaults to true (ignore namespace prefixes) |
bool NiXPSObjects::NOContentStreamNavigator::toSibling | ( | ) |
Navigate to next sibling
const NCommon::UTF8String NiXPSObjects::NOContentStreamNavigator::getName | ( | ) | const |
Return the name of the current node as a UTF8String.
bool NiXPSObjects::NOContentStreamNavigator::hasAttributeValue | ( | const NCommon::UTF8String & | pAttributeName | ) | const |
Test for the presence of the given attribute
pAttributeName | The attribute name to test for |
const NCommon::UTF8String NiXPSObjects::NOContentStreamNavigator::getAttributeValue | ( | const NCommon::UTF8String & | pAttributeName | ) | const |
Get the value of an attribute of the current node
pAttributeName | The name of the attribute to get the value of |
bool NiXPSObjects::NOContentStreamNavigator::setAttributeValue | ( | const NCommon::UTF8String & | pAttributeName, | |
const NCommon::UTF8String & | pValue | |||
) |
Set the value of an attribute in the current node
pAttributeName | The name of the attribute to set the value of | |
pValue | The string to set the attribute value to |
bool NiXPSObjects::NOContentStreamNavigator::addAttribute | ( | const NCommon::UTF8String & | pKey, | |
const NCommon::UTF8String & | pValue | |||
) |
Adds an attribute to the current node
pAttributeName | The name of the attribute to set the value of | |
pValue | The string to set the attribute value to |
bool NiXPSObjects::NOContentStreamNavigator::toAttributeValue | ( | const NCommon::UTF8String & | pAttributeName | ) |
Navigate to the attribute value
pAttributeName | The name of the attribute to set the value of |
bool NiXPSObjects::NOContentStreamNavigator::hasCharacterData | ( | ) | const |
Check to see if the current element has character data.
const NCommon::UTF8String NiXPSObjects::NOContentStreamNavigator::getCharacterData | ( | ) | const |
Get the character data for the current node as a UTF8String.
bool NiXPSObjects::NOContentStreamNavigator::insertChild | ( | const NCommon::UTF8String & | pName, | |
NCommon::UInt32 | pPosition, | |||
bool | pToChild | |||
) |
Inserts a child in the current node
pName | The name of the element as a UTF8String | |
pPosition | The position of this inserted element | |
pToChild | Navigate to this freshly created child, or not |
bool NiXPSObjects::NOContentStreamNavigator::insertAsChild | ( | const NCommon::UTF8String & | pXML | ) |
Inserts XML as a child of the current node
pXML | The XML to insert as a UTF8String |
bool NiXPSObjects::NOContentStreamNavigator::insertAsChild | ( | NOContentStreamNavigator & | pNav | ) |
Inserts XML at the cursor of another content stream navigator as a child of the node at the cursor of this content stream navigator
pNav | the content stream navigator pointing to the XML node to insert as a child in the current content stream |