#include <mw/SenElement.h>
class CSenElement : public CBase |
void | AddAttributesL | ( | const RAttributeArray & | apAttrs | ) | [pure virtual] |
CSenElement & | AddElementL | ( | CSenElement & | aElement | ) | [pure virtual] |
Returns: the added Element
CSenElement & | AddElementL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName | |||
) | [pure virtual] |
Parameter | Description |
---|---|
aNsUri | namespace URI of the new element |
aLocalName | local name of the new element |
Returns: the added Element Leave codes: KErrSenInvalidCharacters if aLocalName contains illegal characters. KErrSenZeroLengthDescriptor if aLocalName is zero length.
CSenElement & | AddElementL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName, | |||
const TDesC8 & | aQName | |||
) | [pure virtual] |
Parameter | Description |
---|---|
aNsUri | namespace URI of the new element |
aLocalName | local name of the new element |
aQName | qualified name of the new element |
Returns: the added Element Leave codes: KErrSenInvalidCharacters if aLocalName or aQName contain illegal characters.
CSenElement & | AddElementL | ( | const TDesC8 & | aLocalName | ) | [pure virtual] |
Parameter | Description |
---|---|
aLocalName | local name of the new element |
Returns: the added Element Leave codes: KErrSenInvalidCharacters if aLocalName contains illegal characters.
const CSenNamespace * | AddNamespaceL | ( | const TDesC8 & | aPrefix, |
const TDesC8 & | aUri | |||
) | [pure virtual] |
Returns: the added Namespace, or the equivalent pre-existing one.
const CSenNamespace * | AddNamespaceL | ( | CSenNamespace & | aNewNamespace, |
TBool | aCheckInParent | |||
) | [pure virtual] |
Returns: the added Namespace, or the equivalent pre-existing one.
MSenElement * | AsElement | ( | ) | [pure virtual] |
Returns: the current object as element. Ownership is NOT transferred.
HBufC8 * | AsXmlL | ( | ) | [pure virtual] |
Returns: element as XML. Caller takes ownership.
HBufC * | AsXmlUnicodeL | ( | ) | [pure virtual] |
Returns: element as XML. Caller takes ownership.
RPointerArray< CSenBaseAttribute > & | AttributesL | ( | ) | [pure virtual] |
Returns: array of attributes. Array will be empty if element has no attributes.
CSenElement * | Child | ( | TInt | aIndex | ) | [pure virtual] |
Returns: child element from a current index. NULL if no child in given index is found
TBool | ConsistsOfL | ( | MSenElement & | aCandidate | ) | [pure virtual] |
Parameter | Description |
---|---|
aCandidate | The pattern to be matched. Must contain same or less data for match to come true. |
Returns: ETrue if content and possible children match exactly to given pattern. EFalse otherwise.
TPtrC8 | Content | ( | ) | const [pure virtual] |
Returns: the content or KNullDesC8 if empty.
HBufC * | ContentUnicodeL | ( | ) | const [pure virtual] |
Returns: content as Unicode. Ownership is transferred to the caller.
RWriteStream & | ContentWriteStreamL | ( | ) | [pure virtual] |
Returns: reference to the RWriteStream.
void | CopyFromL | ( | CSenElement & | aSource | ) | [pure virtual] |
Parameter | Description |
---|---|
aSource | The source element. |
CSenElement * | CreateElementL | ( | const TDesC8 & | aNsPrefix, |
const TDesC8 & | aLocalName | |||
) | [pure virtual] |
Returns: the new Element just created, or NULL if given prefix was not declared yet. Ownership is transferred to the caller. Leave codes: KErrSenInvalidCharacters if aLocalName contain illegal characters. KErrSenZeroLengthDescriptor if aLocalName is zero length.
CSenElement * | DetachL | ( | ) | [pure virtual] |
Returns: this Element. Ownership is NOT transferred to the caller. or NULL if no parent was set, and nothing was detached.
CSenElement * | Element | ( | const TDesC8 & | aLocalName | ) | [pure virtual] |
Parameter | Description |
---|---|
aLocalName | is the XML localname of the requested child element |
Returns: the child element or NULL if the child with the specified local name is not found. Ownership is NOT transferred.
CSenElement * | Element | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName | |||
) | [pure virtual] |
Parameter | Description |
---|---|
aNsUri | is the XML namespace of the requested child element |
aLocalName | is the XML localname of the requested child element |
Returns: the child element or NULL if the child with the specified criterias is not found. Ownership is NOT transferred.
TInt | ElementsL | ( | RPointerArray< CSenElement > & | aElementArray, |
const TDesC8 & | aNsUri, | |||
const TDesC8 & | aLocalName | |||
) | [pure virtual] |
Parameter | Description |
---|---|
aElementArray | RPointerArray that will hold matching elements |
Returns: KErrNone or some system-wide error code, if an error has occurred.
TInt | ElementsL | ( | RPointerArray< CSenElement > & | aElementArray, |
const TDesC8 & | aLocalName | |||
) | [pure virtual] |
Parameter | Description |
---|---|
aElementArray | RPointerArray that will hold matching elements |
Returns: KErrNone or some system-wide error code, if an error has occurred.
RPointerArray< CSenElement > & | ElementsL | ( | ) | [pure virtual] |
Returns: an array of child elements. This is an empty array if there are no children. Any modifications made on the returned array modify the element object.
TBool | HasContent | ( | ) | const [pure virtual] |
Returns: ETrue if has content, EFalse if not.
CSenElement & | InsertElementL | ( | CSenElement & | aInsertedElement, |
const CSenElement & | aBeforeElement | |||
) | [pure virtual] |
Parameter | Description |
---|---|
aInsertedElement | the element to be inserted. Ownership is transferred. |
aBeforeElement | the element which will be right next to the element just inserted. |
Returns: the inserted Element
const TDesC8 & | LocalName | ( | ) | const [pure virtual] |
Returns: KNullDesC if not set (argumentless constructor).
const CSenNamespace * | Namespace | ( | ) | [pure virtual] |
Returns: const pointer to the CSenNamespace object of this Element. Returns NULL, if not set.
const CSenNamespace * | Namespace | ( | const TDesC8 & | aNsPrefix | ) | [pure virtual] |
Returns: the namespace that is declared for the given prefix within the scope of this Element. If no such prefix is declared return NULL.
const CSenNamespace * | Namespace | ( | const TDesC8 & | aNsPrefix, |
const TDesC8 & | aUri | |||
) | [pure virtual] |
Parameter | Description |
---|---|
aNsPrefix | The prefix used to search |
aUri | The namespace URI used to search. |
Returns: the found namespace that is declared for the given prefix and namespace URI within the scope of this Element or NULL if not found.
const CSenNamespace * | Namespace | ( | const TDesC8 & | aNsPrefix, |
const TBool | aCheckInParent | |||
) | [pure virtual] |
Parameter | Description |
---|---|
aNsPrefix | The prefix used to search |
aCheckInParent | The flag indicating whether to check parent's namespaces too if not found in the current element. ETrue to check, EFalse for not to check. |
Returns: the found Namespace that is declared for the given prefix and namespace URI within the scope of this Element or NULL if not found
const TDesC8 & | NamespaceURI | ( | ) | const [pure virtual] |
Returns: KNullDesC if not set.
RPointerArray< CSenNamespace > & | NamespacesL | ( | ) | [pure virtual] |
Returns: array of namespaces. Array will be empty if element has no namespaces.
const TDesC8 & | NsPrefix | ( | ) | const [pure virtual] |
Returns: namespace prefix or KNullDesC8 if not set.
CSenElement * | Parent | ( | ) | [pure virtual] |
Returns: the parent element or NULL if no parent set. Ownership is NOT transferred to the caller.
CSenElement * | RemoveElement | ( | CSenElement & | aElement | ) | [pure virtual] |
Returns: The removed element. May be NULL if nothing was removed (if child element was not found). The caller TAKES OWNERSHIP of the removed element.
CSenElement * | RemoveElement | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName | |||
) | [pure virtual] |
Returns: The removed element. May be NULL if nothing was removed (if child element was not found). The caller TAKES OWNERSHIP of the removed element.
CSenElement * | RemoveElement | ( | const TDesC8 & | aLocalName | ) | [pure virtual] |
Returns: The removed element. May be NULL if nothing was removed (if child element was not found).
CSenElement * | ReplaceElementL | ( | CSenElement & | aElement | ) | [pure virtual] |
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.
Returns: The old element. May be NULL if nothing was replaced (if element was not found from the childs). The caller TAKES OWNERSHIP of the old element.
MSenElement & | Root | ( | ) | [pure virtual] |
Returns: the root of the tree. Ownership is not transferred.
Parameter | Description |
---|---|
aNamespaceURI | The new namespace URI. |
aLocalName | The new local name. |
aQName | The new qualified name. |
void | SetNamespaceL | ( | const TDesC8 & | aNsUri | ) | [pure virtual] |
CSenElement * | SetParent | ( | CSenElement * | apParent | ) | [pure virtual] |
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.
Returns: the parent element
void | SetPrefixL | ( | const TDesC8 & | aPrefix | ) | [pure virtual] |
void | WriteAsXMLToL | ( | RWriteStream & | aWriteStream | ) | [pure virtual] |
Parameter | Description |
---|---|
aWriteStream | The stream to write to. |
void | WriteNamespacesToL | ( | RWriteStream & | aWriteStream | ) | [pure virtual] |
Parameter | Description |
---|---|
aWriteStream | The stream to write to. |