Link against: SenXml.LIB
None
#include <SenElement.h>
Inherits MSenElement.
Inherited by CSenBaseElement, and CSenXmlElement.
Public Member Functions | |
virtual const TDesC8 & | LocalName () const =0 |
Getter for local name. | |
virtual const TDesC8 & | NamespaceURI () const =0 |
Getter for namespace URI. | |
virtual void | SetNamespaceL (const TDesC8 &aNsUri)=0 |
Setter for Element's namespace URI. | |
virtual void | SetNamespaceL (const TDesC8 &aNsPrefix, const TDesC8 &aNsUri)=0 |
Setter for Element's namespace URI. | |
virtual const CSenNamespace * | AddNamespaceL (const TDesC8 &aPrefix, const TDesC8 &aUri)=0 |
Method for adding a namespace for the Element. | |
virtual const CSenNamespace * | Namespace ()=0 |
Getter for Element's namespace. | |
virtual const CSenNamespace * | Namespace (const TDesC8 &aNsPrefix)=0 |
virtual const CSenNamespace * | Namespace (const TDesC8 &aNsPrefix, const TDesC8 &aUri)=0 |
Get namespace that is declared for the given prefix and namespace URI within the scope of this element. | |
virtual const CSenNamespace * | Namespace (const TDesC8 &aNsPrefix, const TBool aCheckInParent)=0 |
virtual const TDesC8 & | NsPrefix () const =0 |
Getter for namespace prefix of this element. | |
virtual void | SetPrefixL (const TDesC8 &aPrefix)=0 |
Setter for namespace prefix of this element. | |
virtual TBool | HasContent () const =0 |
Method for checking if the element has any content within. | |
virtual TPtrC8 | Content () const =0 |
Getter for the content of the element. | |
virtual HBufC * | ContentUnicodeL () const =0 |
Getter for the content of the element, Unicode (UCS2) version. | |
virtual TPtrC8 | SetContentL (const TDesC8 &aContent)=0 |
Sets the content to the element. | |
virtual RWriteStream & | ContentWriteStreamL ()=0 |
Gets the write stream for the content for easy appending. | |
virtual TBool | ConsistsOfL (MSenElement &aCandidate)=0 |
Checks if element matches to another element by it's content and child elements. | |
virtual TInt | ElementsL (RPointerArray< CSenElement > &aElementArray, const TDesC8 &aNsUri, const TDesC8 &aLocalName)=0 |
Get a list of direct children element that have the given name and namespace. | |
virtual TInt | ElementsL (RPointerArray< CSenElement > &aElementArray, const TDesC8 &aLocalName)=0 |
Get a list of direct children element that have the given name and same namespace as this parent Element. | |
virtual RPointerArray< CSenElement > & | ElementsL ()=0 |
virtual const CSenNamespace * | AddNamespaceL (CSenNamespace &aNewNamespace, TBool aCheckInParent)=0 |
Adds a namespace declaration. | |
virtual const TDesC8 * | AttrValue (const TDesC8 &aName)=0 |
Gets the value of the given attribute. | |
virtual void | AddAttrL (const TDesC8 &aName, const TDesC8 &aValue)=0 |
Adds an attribute. | |
virtual RPointerArray< CSenBaseAttribute > & | AttributesL ()=0 |
Gets all the attributes of this element in an array. | |
virtual RPointerArray< CSenNamespace > & | NamespacesL ()=0 |
Gets all the namespaces of this element in an array. | |
virtual CSenElement * | Parent ()=0 |
Gets the parent element of this element. | |
virtual CSenElement * | SetParent (CSenElement *apParent)=0 |
From MSenElement Sets the parent element to this element. | |
virtual CSenElement * | DetachL ()=0 |
Detach the element from its parent. | |
virtual CSenElement * | Child (TInt aIndex)=0 |
Gets a child element from a specified index. | |
virtual MSenElement & | Root ()=0 |
Gets the root element. | |
virtual CSenElement * | Element (const TDesC8 &aLocalName)=0 |
Gets the child element with the specified local name. | |
virtual CSenElement * | Element (const TDesC8 &aNsUri, const TDesC8 &aLocalName)=0 |
Gets the child element with the specified local name and namespace URI. | |
virtual CSenElement * | CreateElementL (const TDesC8 &aNsPrefix, const TDesC8 &aLocalName)=0 |
Create a new element ready for adding or insertion. | |
virtual CSenElement & | InsertElementL (CSenElement &aInsertedElement, const CSenElement &aBeforeElement)=0 |
Insert an Element into the list of children elements so that the inserted Element is placed right before the aBeforeElement. | |
virtual CSenElement & | AddElementL (CSenElement &aElement)=0 |
Adds an Element to the children elements. | |
virtual CSenElement & | AddElementL (const TDesC8 &aNsUri, const TDesC8 &aLocalName)=0 |
Constructs and adds a new element to the children elements. | |
virtual CSenElement & | AddElementL (const TDesC8 &aNsUri, const TDesC8 &aLocalName, const TDesC8 &aQName)=0 |
Constructs and adds a new element to the children elements. | |
virtual CSenElement & | AddElementL (const TDesC8 &aLocalName)=0 |
Constructs and adds a new element to the children elements. | |
virtual CSenElement * | RemoveElement (CSenElement &aElement)=0 |
Remove an element from the childs. | |
virtual CSenElement * | RemoveElement (const TDesC8 &aNsUri, const TDesC8 &aLocalName)=0 |
Remove an element from the childs. | |
virtual CSenElement * | RemoveElement (const TDesC8 &aLocalName)=0 |
Remove a child element. | |
virtual CSenElement * | ReplaceElementL (CSenElement &aElement)=0 |
Replaces a child element with another element. | |
virtual HBufC8 * | AsXmlL ()=0 |
Gets the element as an XML buffer. | |
virtual HBufC * | AsXmlUnicodeL ()=0 |
Gets the element as an unicode (UCS2) XML buffer. | |
virtual void | WriteAsXMLToL (RWriteStream &aWriteStream)=0 |
Element writes itself to a write stream using UTF-8 character-set encoding. | |
virtual void | WriteNamespacesToL (RWriteStream &aWriteStream)=0 |
Element writes its namespaces to a write stream using UTF-8 character-set encoding. | |
virtual MSenElement * | AsElement ()=0 |
Offers the M-class interface pointer to this XML element. | |
virtual void | CopyFromL (CSenElement &aSource)=0 |
Copies content from given element to this element appending to the existing content if there is any. | |
virtual void | Set (const TDesC8 &aNamespaceURI, const TDesC8 &aLocalName, const TDesC8 &aQName)=0 |
(Re-) Set the name and namespace of this Element. | |
virtual void | AddAttributesL (const RAttributeArray &apAttrs)=0 |
Adds new attributes to the element. |
|
Adds new attributes to the element.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Adds an attribute. If attribute is already existing, the value of the attribute will be replaced.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Constructs and adds a new element to the children elements. Sets this element to be the new parent of the given element. Note: Element is created with no specific namespace, default namespace of some of the upper level elements are in effect if there is such a namespace.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Constructs and adds a new element to the children elements. Sets this element to be the new parent of the given element.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Constructs and adds a new element to the children elements. Sets this element to be the new parent of the given element.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Adds an Element to the children elements. Sets this element to be the new parent of the given element.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Adds a namespace declaration. If this element (or its parent if parameter aCheckInParent is ETrue) already has a namespace with the same prefix and URI the given namespace is not added.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Method for adding a namespace for the Element.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Offers the M-class interface pointer to this XML element.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Gets the element as an XML buffer. Buffer will contain all the child elements.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Gets the element as an unicode (UCS2) XML buffer. Buffer will contain all the child elements.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Gets all the attributes of this element in an array.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Gets the value of the given attribute.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Gets a child element from a specified index.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Checks if element matches to another element by it's content and child elements. Element can contain more data than the given pattern.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Getter for the content of the element.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Getter for the content of the element, Unicode (UCS2) version.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Gets the write stream for the content for easy appending. Writing 8-bit (UTF-8) string to the returned stream will be appended to the content.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Copies content from given element to this element appending to the existing content if there is any.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Create a new element ready for adding or insertion. If the given namespace prefix is not declared yet the element will not be created and NULL will be returned.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Detach the element from its parent. If the element, or one of its children, is dependent on a namespace declared in the scope of the parent copy those namespace declarations to this element.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Gets the child element with the specified local name and namespace URI.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Gets the child element with the specified local name. Assumes that namespace is the same as this parent element.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Get a list of direct children element that have the given name and same namespace as this parent Element.
Implemented in CSenBaseElement, and CSenXmlElement. |
|
Get a list of direct children element that have the given name and namespace.
Implemented in CSenBaseElement, and CSenXmlElement. |
|
Method for checking if the element has any content within.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Insert an Element into the list of children elements so that the inserted Element is placed right before the aBeforeElement. If aBeforeElement is not found, element will be appended to the last position. Function leaves if error occurs in inserting.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Getter for local name.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Get namespace that is declared for the given prefix and namespace URI within the scope of this element.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Getter for Element's namespace.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Gets all the namespaces of this element in an array.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Getter for namespace URI.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Getter for namespace prefix of this element.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Gets the parent element of this element.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Remove a child element.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Remove an element from the childs.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Remove an element from the childs.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Replaces a child element with another element. Element's local name and namespace URI will be used to check whether or not that element matches with any existing child. If no matching child element is found this method will add a new child element.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Gets the root element. If no parent element, returns this element.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
(Re-) Set the name and namespace of this Element. The element will be given the localName in the the given namespace. A prefix will be computed from the qualified name. This method should be used with care and is mainly intended for protected use in implementations.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Sets the content to the element. Old content is overwritten.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Setter for Element's namespace URI.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Setter for Element's namespace URI.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
From MSenElement Sets the parent element to this element. Notice that the element is not automatically added as a child of the parent. Parent's AddElementL() must be called to achieve that.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Setter for namespace prefix of this element.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Element writes itself to a write stream using UTF-8 character-set encoding.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |
|
Element writes its namespaces to a write stream using UTF-8 character-set encoding.
Implements MSenElement. Implemented in CSenBaseElement, and CSenXmlElement. |