CXdmDocumentNode Class Reference
class CXdmDocumentNode : public CBase |
Constructor & Destructor Documentation
CXdmDocumentNode(CXdmEngine &, MXdmNodeFactory &, CXdmDocumentNode *)
C++ constructor, for derived classes
CXdmDocumentNode(CXdmEngine &, MXdmNodeFactory &)
IMPORT_C | CXdmDocumentNode | ( | CXdmEngine & | aXdmEngine, |
| MXdmNodeFactory & | aNodeFactory |
| ) | [protected] |
CC++ constructor, for derived classes
Parameters
CXdmEngine & aXdmEngine | |
MXdmNodeFactory & aNodeFactory | |
CXdmDocumentNode(const TBool, CXdmEngine &, MXdmNodeFactory &, CXdmDocumentNode *)
C++ constructor, for derived classes
~CXdmDocumentNode()
IMPORT_C | ~CXdmDocumentNode | ( | ) | |
Member Functions Documentation
AppendChileNodeL(CXdmDocumentNode *)
Attribute(TInt)
Reference an attribute of this element specified by the position of the attribute
Attribute(const TDesC &)
Reference an attribute of this element specified by the position of the attribute
Parameters
const TDesC & aAttributeName | |
AttributeCount()
IMPORT_C TInt | AttributeCount | ( | ) | const |
Returns the number of attributes of this element
BaseConstructL(const TDesC &)
IMPORT_C void | BaseConstructL | ( | const TDesC & | aNodeName | ) | [protected] |
Symbian OS constructor for derived classes.
ChileNode(TInt)
Returns a child node specified by its position among the descendants of an element
ConstructAttributesL(const CXdmDocumentNode &)
Copy the attributes of another element.
ConstructChildrenL(const CXdmDocumentNode &)
Copy the child nodes of another element.
CopyConstructL(const CXdmDocumentNode &, const CXdmDocumentNode &)
CreateAttributeL(const TDesC &)
Parameters
const TDesC & aAttributeName | |
CreateChileNodeL()
Create a new child element
CreateChileNodeL(const TDesC &)
Create a new child element
DoFind(const TDesC &, RPointerArray< CXdmDocumentNode > &)
Search for nodes which match the specified name
DoFind(const CXdmDocumentNode &, RPointerArray< CXdmDocumentNode > &)
Search for nodes which match the specified node
DoFind(const TDesC &, RPointerArray< CXdmDocumentNode > &, const RPointerArray< SXdmAttribute16 > &)
Search for nodes which match the specified name & attributes
EightBitNodeNameLC()
IMPORT_C HBufC8 * | EightBitNodeNameLC | ( | ) | const |
ElementDataLC()
IMPORT_C HBufC8 * | ElementDataLC | ( | ) | const |
Returns the contents of a single element without any brackets and pushes the buffer onto the CleanupStack.
For instance:
'element attribute1 = "value" attribute2 = "another value"'
ElementType()
The type of this element: an element or an attribute
EscapeDescLC(const TDesC8 &)
HBufC8 * | EscapeDescLC | ( | const TDesC8 & | aDescriptor | ) | const [protected] |
Escape-code the specified string
EscapeLeafNodeContentLC()
IMPORT_C HBufC8 * | EscapeLeafNodeContentLC | ( | ) | const |
Return the contents of a leaf element escape-coded, if needed
Find(const TDesC &, RPointerArray< CXdmDocumentNode > &)
Search for nodes which match the specified name
Find(const CXdmDocumentNode &, RPointerArray< CXdmDocumentNode > &)
Search for nodes which match the specified node
Find(const TDesC &, RPointerArray< CXdmDocumentNode > &, const RPointerArray< SXdmAttribute16 > &)
Search for nodes which match the specified name & attributes
HasAttribute(const TDesC &)
IMPORT_C TBool | HasAttribute | ( | const TDesC & | aAttributeName | ) | const |
The type of this element: an element or an attribute
Parameters
const TDesC & aAttributeName | |
HasAttribute(const CXdmNodeAttribute &)
Check whether an element has the specified attribute
HasAttribute(const SXdmAttribute16 &)
Check whether an element has the specified attribute
HasAttributeL(const SXdmAttribute8 &)
Check whether an element has the specified attribute
InsertChileNodeL(TInt, CXdmDocumentNode *)
Insert a child node to the given position
IsEmptyNode()
IMPORT_C TBool | IsEmptyNode | ( | ) | const |
Report whether or not this element is empty
IsLeafNode()
IMPORT_C TBool | IsLeafNode | ( | ) | const |
Report whether or not this is a leaf element
LeafNodeContent()
IMPORT_C TPtrC8 | LeafNodeContent | ( | ) | const |
Return the contents of a leaf element
Match(const CXdmDocumentNode &)
The type of this element: an element or an attribute
Match(const TDesC &, const RPointerArray< SXdmAttribute8 > &)
The type of this element: an element or an attribute
NextNode()
Return the next node in the list
NodeCount()
IMPORT_C TInt | NodeCount | ( | ) | const |
Returns the number of child & lealf elements
NodeName()
IMPORT_C TPtrC | NodeName | ( | ) | const |
Parent()
Return the parent node of this element
Print()
Print the contents of this node to the log file
RemoveChileNodeL(CXdmDocumentNode *)
RemoveNamespaceAttributes()
void | RemoveNamespaceAttributes | ( | ) | [private] |
Remove namespace attributes from this element. Namespaces must not be used when comparing two elements, which is why these attributes need to be removed before the comparison.
ReplaceChileNodeL(CXdmDocumentNode *, CXdmDocumentNode *)
SetEmptyNode(TBool)
IMPORT_C void | SetEmptyNode | ( | TBool | aIsEmptyNode | ) | |
Define this node to be empty. Default value is EFalse, so this method only needs to be called when the client wants to indicate that a node does not/will not have children. The operation can be reverted if needed.
NOTE: An attempt to create children on an empty node will result in a panic being raised. Respectively, if a client application wants to revert the state of a node from non-empty to empty, all children that may have been created will be removed.
SetLeafNode(TBool)
IMPORT_C void | SetLeafNode | ( | TBool | aIsLeafNode | ) | |
Define this node to be a leaf node. Default value is EFalse, so this method only needs to be called when the client wants to define a node a leaf node. The operation can, of course, be reverted if needed.
SetLeafNodeContentL(const TDesC &)
IMPORT_C void | SetLeafNodeContentL | ( | const TDesC & | aLeafContent | ) | |
Set the contents of a leaf node. Fails if this element is not a leaf element.
<leaf>leafnodecontent</leaf>
Parameters
const TDesC & aLeafContent | |
SetLeafNodeContentL(const TDesC8 &)
IMPORT_C void | SetLeafNodeContentL | ( | const TDesC8 & | aLeafContent | ) | |
Set the contents of a leaf node. Fails if this element is not a leaf element.
<leaf>leafnodecontent</leaf>
SetNameL(const TDesC &)
IMPORT_C void | SetNameL | ( | const TDesC & | aNodeName | ) | |
(Re-)Set the name of this element
SetNameL(const TDesC8 &)
IMPORT_C void | SetNameL | ( | const TDesC8 & | aNodeName | ) | |
(Re-)Set the name of this element
SetNextNode(CXdmDocumentNode *)
Set the next node in the list
operator==(const CXdmDocumentNode &)
Member Data Documentation
RPointerArray< CXdmNodeAttribute > iAttributes
RPointerArray< CXdmDocumentNode > iChildren
TBool
iEmptyNode
TBool
| iEmptyNode | [protected] |
HBufC8 * iLeafContent
HBufC8 * | iLeafContent | [protected] |
TBool
iLeafNode
TBool
| iLeafNode | [protected] |
CXdmDocumentNode * iNextNode
MXdmNodeFactory & iNodeFactory
MXdmNodeFactory & | iNodeFactory | [protected] |
HBufC * iNodeName
HBufC * | iNodeName | [protected] |
CXdmDocumentNode * iParentNode
TInt
iPosition
TInt
| iPosition | [protected] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.